RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"make a jump animation"
-- local script for jump animation local Players = game:GetService("Players") local player = Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local humanoid = character:WaitForChild("Humanoid") local animation = Instance.new("Animation") animation.AnimationId = "rbxassetid://your_animation_id_here" -- Replace with your jump animation ID local jumpAnimation = humanoid:LoadAnimation(animation) humanoid.StateChanged:Connect(function(oldState, newState) if newState == Enum.HumanoidStateType.Jumping then jumpAnimation:Play() elseif oldState == Enum.HumanoidStateType.Jumping and newState ~= Enum.HumanoidStateType.Freefall then jumpAnimation:Stop() end end)