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!