Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why is my character not using my jump and fall animation?

basically. whenever my Roblox character jumps he stands still flat and when he lands he plays the idle animation and everything else but for some reason, the jump animation is bugged I wish I could post some pictures but I can't.

edit: I FORGOT TO SAY MY FALL ANIMATION won't WORK EITHER

another edit: just saying I used the animate local script Roblox automatically puts in your character

4 comments

0

One question: is it your animation LIKE you uploaded it to roblox.

0

yes it is

0

Make sure the animation is in r50 and you game is in the same. There might be a animation script that doesnt have a animation id in the script.

0

what is r50?

1 answer

Since you're making this a jump animation, check the Y velocity to ensure that it works at the right moment, you could also do this with the Jump state on the Humanoid but I usually use velocity on a LocalScript because it's more precise.

Keep in mind, I made this script while not on studio so I might've made a mistake but this should be enough information to tell you how to do it.

-- This was created as a LocalScript in StarterCharacterScripts

local LocalPlayer = game:GetService("Players").LocalPlayer
local Character = LocalPlayer.Character
local Humanoid = Character:FindFirstChildWhichIsA("Humanoid") or Character:WaitForChild("Humanoid")

local RootPart = Humanoid.RootPart
local Animation = Instance.new("Animation")
Animation.AnimationId = string.format("rbxassetid://%s", 0) -- Your AnimationId goes here.
local AnimationTrack = Humanoid:LoadAnimation(Animation)
AnimationTrack.AnimationPriority = Enum.AnimationPriority.Core
AnimationTrack.Looped = false

game:GetService("RunService").Stepped:Connect(function()
	if RootPart.Velocity.Y > 28 then
		if AnimationTrack.IsPlaying == false then
			AnimationTrack:Play()
		end
	else
		AnimationTrack:Stop()
	end
end)

1 comment

0

yeah your script wont work. pretty weird bug i have

This discussion is preserved as it was. New answers, comments, and votes are closed.