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

My animation does not load in the game?

I have altered the script and edited it several times. I have no clue why this doesn't work. Inside of the script is the Animation, and it doesn't play in-game, but does when I use "Run" mode in studio.

local animation = script:WaitForChild('Animation')
local humanoid = script.Parent:WaitForChild('Humanoid')
local anim = humanoid:LoadAnimation(animation)
anim:Play()

Image of Error

2 comments

0

Do you own the animation?

0

yes

1 answer

The most likely reason is, in fact, you do not own the animation. If you do not own the animation, then it won't load. This happened to me one time when I was the noobiest scripter in all of Roblox, and it wasn't very long ago (like only six months ago lol). So the point is, the most likely reason is that you do not own the animation or you own it but your game is a group game or maybe vice versa. or actually you might have to own the animation to play it in a group game IDK because it has been a long time since I have messed with animations. Just telling you right now, there is like a 99.99% chance that it isn'y your script but instead it is that you do not own the animation. that is my point I hope this helps you Sincerely, DominusInfinitus (keep developing games!)

1 comment

0

I do own the animation. I custom-made it for a mesh I made to make a satellite turn and move. ANIMATION: https://web.roblox.com/library/2759705175

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