My animations will only load on current players, and will not be visible for others. However, sometimes you can see other players with animations?
wait()
local RunService = game:GetService(“RunService”)
local Player = game.Players.LocalPlayer
local Character = workspace:WaitForChild(Player.Name)
local Humanoid = Character:WaitForChild(“Humanoid”)
local Root = Character:WaitForChild(“HumanoidRootPart”)
local animsFolder = script:WaitForChild("AnimsFolder")
function newAnim(name)
local a = Humanoid:LoadAnimation(animsFolder:WaitForChild(name))
a.Priority = Enum.AnimationPriority.Core
return a
end
local anims = {
Run = newAnim("Run");
WalkForward = newAnim("WalkForward");
WalkBackward = newAnim("WalkBackward");
WalkLeft = newAnim("WalkLeft");
WalkRight = newAnim("WalkRight");
Jump = newAnim("Jump");
Fall = newAnim("Fall");
Climb = newAnim("Climb");
Idle = newAnim("Idle");
Seated = newAnim("Seated");
}
Am I doing something wrong? I’ve never had this replication issue before.
It appears to be played in a LocalScript, which means only the LocalPlayer can see the animation. I suggest a RemoteEvent to play the animation on the client side.
That doesn’t make sense, you could always play animations via the client that can’t be the problem. 20+ players running around firing events for animations that are meant to replicate anyway is just not worth it.