How to replicate AnimationTrack to the server?
The problem is that my animation is only looping on the client but not on the server (animation priority too). I have tried using remote events but animationTrack turns out to be nil on a server script. I think I am seriously overlooking something. Is there an easy approach to this?
02 | local player = game:GetService( "Players" ).LocalPlayer |
04 | repeat wait() until player.Character |
06 | local humanoid = player.Character:WaitForChild( "Humanoid" ) |
08 | local animation = Instance.new( "Animation" ) |
11 | local animationTrack = humanoid:LoadAnimation(animation) |
12 | animationTrack.Priority = Enum.AnimationPriority.Idle |
13 | animationTrack.Looped = true |