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")
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.