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

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

Asked by 7 years ago

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?

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 1000anton 38 — 7y

1 answer

Log in to vote
0
Answered by
Validark 1580 Snack Break Moderation Voter
7 years ago

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.

Ad

Answer this question