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

My animation does not load in the game?

Asked by
SpiralRBX 224 Moderation Voter
5 years ago

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

0
Do you own the animation? DinozCreates 1070 — 5y
0
yes SpiralRBX 224 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

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!)

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 SpiralRBX 224 — 5y
Ad

Answer this question