so I tried using this script:
for i,v in pairs(player.Character.Humanoid.Animator:GetPlayingAnimationTracks()) do
v:Stop()
wait()
print(v)
end
and by using it on command bar by client it works but not on server side. It doesnt show any errors it just doesnt stop the animations. What causes this issue?
How did you get the player value?
I get it from OnServerEvent() but I tested with putting my workspace character as the player.Character and it still doesnt work that way
Could you send the whole script?
The part that I sent is the only part that is about the animations and the player value is correct because the rest of the script works
does it not stop the animations when using on the server? if that’s the case the reason is probably because most animations are played by the client and will therefore only actually be in “PlayingAnimations” on the client
If they don’t stop on the server it means that the animations are playing on client, so just make this code run on client instead
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.