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

How to load a Animation Into a player?

Asked by 3 years ago

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)
0
For Examples, I just did it client-sided Finty_james 269 — 3y
0
put it in StarterPlayerScripts epic_hen9 27 — 3y
0
You can load animation on client and on server, client animation is FE (all see it) rkdss 25 — 3y
0
Thanks! Finty_james 269 — 3y

1 answer

Log in to vote
0
Answered by
rkdss 25
3 years ago

You can use this

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

Answer this question