Help with Morph/Load Custom Character Script

Followed a tutorial, added in a test dummy and still does’t work, any suggestions?

local debounce = true
	
	if self._player and debounce then
		debounce = false
		local character = self._player.CharacterAdded:Wait()

		local NewCharacter = egg:Clone()
		NewCharacter.Name = self._player.Name
		character = NewCharacter

		local rootPart = NewCharacter:FindFirstChild("HumanoidRootPart") or NewCharacter:findFirstChild("Torso")
		local plrRoot = character:FindFirstChild("HumanoidRootPart") or character:findFirstChild("Torso")

		if rootPart and plrRoot then
			rootPart.CFrame = plrRoot.CFrame
		end

		NewCharacter.Parent = workspace
		debounce = true
	end

edit: it’s in the loadchar function btw

You have spelt ‘SetPrimaryPartCFrame()’ wrong, try respelling it.

Unfortunately, it still doesn’t work. The camera is looking at the moon and the character isn’t in the workspace

Edit: I wonder whether it’s about to bad custom character I made

1 Like