Hi, I need to play animations and i forgot how, so from what I readed on hub, i made script, but idk why it dont work
while wait(10)do
local a=Instance.new("Animation")
a.AnimationId="290bac2af86ba8e946b06cbbc294f43d"
local anim = workspace.elektrarna.Worker.Humanoid:LoadAnimation(a)
anim:Play()
print(anim)
end
Did you make sure to upload the animation to Roblox from the animation editor? Otherwise, you will get a temporary ID from the animation editor plugin that doesn’t actually work.
That’s not a valid animation ID, so it’d be best if you found the actual animation ID. When you export the animation to Roblox, you should find the ID by going into Create → Animations → the animation, and copy the number in the URL (for example, it should be like 4322343 or something). That’s the correct animation ID, and using it should prevent any funky errors.
Good job finding the error.
Regardless, please try to use the accurate animation ID from now on, as using any other variants could result in complications later on.