Swim animation replacement working for me but not others

I have a custom rig that involves removing a player legs when they join and replacing them with a mermaid tail, then rigging the tail to the player and replacing the default swim animation to an animation I created for the rig.

I’m trying to replace the default swim animation using this code:

--rigging the tail
local connection = Instance.new("Motor6D")
	connection.Parent = char.LowerTorso
	connection.Part0 = char.LowerTorso
	connection.Part1 = tail.TailBase
	connection.C1 = CFrame.new(0, 2.1418, 0) * CFrame.Angles(0,math.rad(90),0)
	connection.Name = "Tail"
	tail.Parent = char
	
    --loading the animation
	local animateScript = char:WaitForChild("Animate")
	animateScript.swim.Swim.AnimationId = "rbxassetid://6004313162"	 

It works well, but it works only for me. It’s not an issue of client-server replication; when I join it loads in just fine and everyone else can see me using it, but whenever any other player joins it doesn’t load at all and the character is just stiff. There is no errors or warnings in the output and the code definitely runs.

Some things I’ve tried:
The animation & the game are both published by me, not a group or another player.

I do have team create enabled, so I copied the game to a file that doesn’t have team create enabled and the issue still persists.

The settings of the game is set to R15 (which is what the animation was made for) & standard animation.

I also tried copying the animate script and putting it into StarterCharacterScripts and changing both the value in the script, and the string value beneath the animate script, the issue still persists.

I’m really hoping there is something obvious that I’ve missed!

When in game does your humanoid have an animator in it? as I had a similar problem that only fixed when adding N animator into the humanoid.

1 Like

Yeah it does, its just a normal R15 character with a tail instead of legs. The animation does work, but only for me.

I woke up this morning and it worked, it still doesn’t work for other players in studio, but when they join the published game it works. I did most of the testing in studio, so I don’t know exactly what fixed it