Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how to make animation play even when foward is pressed?

Asked by 5 years ago

my animation stops when foward is pressed.

plr = game.Players.LocalPlayer local CrashAnim = Instance.new("Animation", plr.Character) CrashAnim.AnimationId = "http://www.roblox.com/asset/?id=2296730026" local humanoid = plr.Character:WaitForChild("Humanoid") local playanim = humanoid:LoadAnimation(CrashAnim) playanim:Play() print("done")

1 answer

Log in to vote
0
Answered by 5 years ago

This is because your animation priority is something other than Action. Import your animation and set the priority to Action (Edit -> Set Priority -> Action) and it should work.

Also, on this site, you can put a Lua code block around your code to allow it to be easier to read.

If this helped you, please accept the answer.

Ad

Answer this question