Hello, today I was making some animations and loading them on npc. However I faced one strange issue: the animation that I loaded in wasn’t playing for me (client), while it was playing for the server (if i switched to server in studio). What could be the thing that causes this issue?
My script:
local animation = script:WaitForChild("Animation")
local humanoid = script.Parent.Humanoid
local animationTrack = humanoid:LoadAnimation(animation)
animationTrack.Looped = true
animationTrack:Play()
print(animationTrack.Length)
If an Animator is a descendant of a Humanoid or AnimationController in a Player’s Character then animations started on that Player’s client will be replicated to the server and other clients.
If the Animator is not a descendant of a player character, its animations must be loaded and started on the server to replicate.