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

[UNSOLVED] Why does my roblox animation stop when I jump or walk?

I've had some problems with my ROBLOX animation where the animation will stop when I walk or jump. Does anyone know how to fix this? - sjw25

1 comment

0

dude it solved

1 answer

Change the animation priority to Movement by doing this

local Player = game.Players.LocalPlayer
local Animation = Instance.new("Animation")
Animation.AnimationId = "rbxassetid://1234567890"
local AnimationTrack = Player.Character.Humanoid:LoadAnimation(Animation)
AnimationTrack.Priority = Enum.AnimationPriority.Movement

10 comments

0

Oh, thank you! I'm kind of a "noobie" when it comes to scripting. I'll try that right away!

0

I tried that but it didnt work for me I dont know if I did it wrong or what.

0

This is my script I dont know if i placed it wrong or what.

0

I edited the code above to show you an example of what i meant.

0

I'm using a tool animation will that work with it?

0

Yea just change local Animation to the tools animation

0

this is my script : anime = script.Parent.name.Value script.Parent.Selected:connect(function(m) m.Button1Down:connect(function() hum = game.Players.LocalPlayer.Character.Humanoid anim_feet = hum:LoadAnimation(script.Parent.Animation) current = anim_feet current:Play() AnimationTrack.Priority = Enum.AnimationPriority.Movement end) end)

0

Sorry if I'm being annoying im aparently not advanced as you a friend had to help me with it.

0

Its fine but on a tool you can just do tool.Activated to do what youre trying to accomplish

0

where at?

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