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

plz help me. the animation did only work the first time? but now it wont work again!

wait(3)

ani = Instance.new("Animation") ani.AnimationId = "http//www.roblox.com/Asset?ID=400"

lol = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(ani)

lol:Play()

this worked the first time i played in studio but not ever again. i tryed to save and publish the game but it didnt work. i have tryed to make a loadanimation with a animation already inserted to the game. can someone tell me why it doesnt work?

1 comment

0

and this is the output: 17:19:45.965 - Animation "https://www.roblox.com//asset/?id=400&serverplaceid=0" failed to load in "Workspace.Animation.AnimationId": Animation failed to load

1 answer

✓ Accepted answer

Please use the little blue Lua circle button to put your code inside a Code Block, in the future.

You should always be referring to Roblox Asset Id's via rbxassetid://NUMBER_HERE

Also, 400 is not a valid Animation id. It's the wrong id.

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