Default animation script not working on custom rig

I want the animations to load on a custom rig I made.

The issue is that the animation script keeps detecting the first character.
I have tried to not enable it until changing it’s parent to the new character.
This is the code that I am having issues with:

function morphPlayer(morph, Morph ,player)
	
	player.Character.Animate.Disabled = true
	player.Character.Animate.Parent = Morph
	Morph.Name = player.Name
	Morph.Parent = game.Workspace
	local event = game.ReplicatedStorage:WaitForChild("SetCam")
	Morph.HumanoidRootPart.CFrame = player.Character.HumanoidRootPart.CFrame
	Morph.HumanoidRootPart.Anchored = false
	player.Character = Morph
	player.Character.Animate.Disabled = false
	event:FireClient(player, Morph)
	print("Works!")

end

Its because it is not the same as the default character you need to make your own animations for that rig

Or I could just do a custom script but use the same animation id’s I am guessing.