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

will everyone see the animation if it is played in a local script?

Asked by 3 years ago

the title is my question so if I play an animation in a local script, will every player see it? im just looking for a y/n answer

2 answers

Log in to vote
3
Answered by
Raccoonyz 1092 Donator Moderation Voter
3 years ago

Yes.

And even though you asked for Y/N I need rep, so here you go.

ROBLOX characters have control of all of the parts in their character, on the client side. This means that if they move the parts on the client, it is replicated to the server, which is replicated to all clients.

Ad
Log in to vote
4
Answered by
Optikk 499 Donator Moderation Voter
3 years ago
Edited 3 years ago

Yes. Animations played on the client are automatically replicated (meaning the server and other players will see the animation), but there's a gotcha. If you load the animation on the humanoid before the Animator is instantiated, animations don't replicate. It's recommended that you wait for the Animator and load animations on it directly, as Humanoid:LoadAnimation() is deprecated and suffers the aforementioned issue.

local Animator = Humanoid:WaitForChild('Animator')
local AnimationTrack = Animator:LoadAnimation(Animation)

Answer this question