If its executing by a local script, make sure to add a remote event, which fires whenever a its is called!
Let me show you an example;
(LocalScript)
local hi = "Hello! "..game.Players.LocalPlayer.Name
game.ReplicatedStorage.EVENT:FireServer(hi)
(ServerScript)
-- Fires whenever EVENT is called
game.ReplicatedStorage.EVENT.OnServerEvent:Connect(function(player,hi)
print(hi) -- Will print "Hello! "..{user} and will be seen for everyone
end)
…this is the game, reply back if you still need help!
I understand you, but the problem is that the animation works perfectly on the client, but it does not replicate well on the server, apart from the fact that when I die I get an error and the animations stop working.
You are correct in stating that you do not need remote events to allow the server to see the animations. Animations should automatically replicate to the server. I have also started experiencing this problem as of recently.
Yes, everything seems to work fine on the client, the problem is that the animations are not replicated correctly on the server, apart from that when I die I get an error.
OMG I found an issue for you. Infinite yield possible means it is stuck on finding that specific instance that was stated in the script. Use FindFirstChild, because if it returns nil, it returns nil instead of erroring!