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

How to load a Animation Into a player?

Can someone tell me how to load an animation into a player? Also should I do it client-side, or server-side? here is my code:

local player = game:GetService("Players").LocalPlayer
local character = player.Character

script.Parent.Activated:Connect(function()
local Track = character.Humanoid.Animator:LoadAnimation(script.Parent.Animation)
Track:Play()
wait(0.5)
Track:Stop()
end)

4 comments

0

For Examples, I just did it client-sided

0

put it in StarterPlayerScripts

0

You can load animation on client and on server, client animation is FE (all see it)

0

Thanks!

1 answer

✓ Accepted answer

You can use this

Track = character.Humanoid:LoadAnimation(script.Parent.Animation)

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