for some reason my animations are only playing locally. when me and my friend test the game I can see it playing on my character, and he can see it playing on his but we can’t see eachother doing it. I tried using both humanoid:LoadAnimation and animator:LoadAnimation, as well as creating the animations in the script and also having them in replicated storage but nothing changed. I don’t understand because the animations should be replicating from the client to server and we can both load them fine on our clients.
Scripting Support you should probably move this to there
I should probably move what to what??
Two questions., where is the code (local script in starterPlayerCharacter or in starterPlayer) and can we see the code?
the code is in a local script in StarterPlayerScripts
(RE is replicated storage)
idleanimationTrack = humanoid:LoadAnimation(RE:WaitForChild(“idle”))
idleanimationTrack.Looped = true
idleanimationTrack.Priority = Enum.AnimationPriority.Action4
local function playAnimationLoop()
idleanimationTrack:Play()
end
script.RemoteEvent.OnClientEvent:Connect(playAnimationLoop())
this should be in Scripting Support and its because you called the function instead of passing the reference
just do:
script.RemoteEvent.OnClientEvent:Connect(playAnimationLoop)
my apologies I’ll move this to script support