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

How do I make my animations load in-game?

Asked by 5 years ago

I was in Roblox Studio working on my game, I made animations for some rigs but when I published and joined the game the animations did not load. I got an error message saying something about the animations not being able to load in. Any help im scared...

Script for animations:

local animation = script:WaitForChild('Animation')
local humanoid = script.Parent:WaitForChild('Humanoid')
local caught = humanoid:LoadAnimation(animation)
caught:play()
0
Are you using a local scripts or server script to do this? Make sure 'Animation' is the animation object with the AnimationId set to the id you want. xPolarium 1388 — 5y
0
I am using a Server script and it is the one i want. OneDelectableFruit 7 — 5y
0
Use a LocalScript and use :Play() not :play(). Rheines 661 — 5y
0
:Play() is the answer LoganboyInCO 150 — 5y
View all comments (3 more)
0
I tried that and now they don't even work in studio. OneDelectableFruit 7 — 5y
0
I tried changing it back to a server script and tested in studio it worked. I join the game animations still failed to load. OneDelectableFruit 7 — 5y
0
At this point if I can't get anything to work i'm just going to give up. OneDelectableFruit 7 — 5y

Answer this question