How to stop a loop animation?

It didn’t work, thank you for trying though.

No sorry, I can’t because if I do it might get copied very easily. :sweat_smile:

@boatbomber I am extremely sorry for the ping, but I have been trying to fix this problem, but no one has been able to come up with a solution, can you please help?

instead of using remote events for unequip and equip, use

script.Parent.Unequipped:Connect(function()
1 Like

This is in a local script inside the Tool.

local player = game.Players.LocalPlayer

repeat wait() until player.Character

local EquipAnimation = "rbxasset://PUT NUM HERE"

local EquipAnimationTrack = player.Character.Humanoid:LoadAnimation(EquipAnimation)

local IdleAnimation = "rbxasset://PUT NUM HERE"

local IdleAnimationTrack = player.Character.Humanoid:LoadAnimation(IdleAnimation)

local UnequipAnimation = "rbxasset://PUT NUM HERE"

local UnequipAnimationTrack = player.Character.Humanoid:LoadAnimation(UnequipAnimation)

local Tool = script.Parent

Tool.Equipped:Connect(function()

EquipAnimationTrack:Play()

wait(2)

IdleAnimationTrack:Play()

end)

Tool.Unequipped:Connect(function()

IdleAnimationTrack:Stop()

UnequipAnimationTrack:Stop()

end)

This should work. It is better to use equip and unequip events instead of making RemoteEvents.

1 Like

Have some patience in yourself, and try something for your side too instead of just depending on others to solve the problem.

And your post says you have wrote a script, it would be good if we could the script & its content so its useful for us to debug it and help you.

Yes, but I want the animation to play on the server side.

Also, I am using unequipped and equipped events on the local script which sends it to the server.

If you play an animation on the Player Humanoid’s Animation Controller, I believe it is replicated to the server automatically?

If you play an animation on the Player Humanoid’s Animation Controller either via local or server script it will be replicated to server like WaterJamesPlough said.

1 Like

Ok! I will try that, also I really appreciate everyone’s help!

Why you need to play the animation from the server, everyone can still see animations playing within local script.

Not replicated on if it’s parented on

  • PlayerGui

It’s kinda rare to see someone is using AnimationTrack to play with regular script for player.