Changing Animation ID using Module Script

Hi, I’m trying to make custom walking and idle animations when they equip a certain weapons.

I use a module script located in ServerScriptService to change the animation ID located inside the Animate Script in a player’s character. Here is a code example:

module.Equip = function(player, character)
    character.Animate.walk.WalkAnim.AnimationId = "rbxassetid://10665918905"
	character.Animate.idle.IdleAnim.AnimationId = "rbxassetid://10126179097"
end)
module.UnEquip = function(player, character)
    character.Animate.walk.WalkAnim.AnimationId = "rbxassetid://10047801664"
	character.Animate.idle.IdleAnim.AnimationId = "http://www.roblox.com/asset/?id=180435571"
end)

The problem is that the animations doesn’t replicated properly to other players. Here is a video of it:

Nvm, i figured it out, I just have to stop all the animations that’s playing and then change the animation ID.