Morphing doesn't work

Don’t know why it doesn’t work. I suspect because the morph I’m using doesn’t half HRP as a child but I might be wrong. Any ideas?

My code:

game.Players.PlayerAdded:Connect(function(player: Player)
	local char = player.CharacterAdded:Wait()
	
	if char then
		local morph = workspace:FindFirstChild("104th D"):FindFirstChild("Minor Officer"):Clone()
		local humanoid = Instance.new("Humanoid")
		humanoid.Parent = morph
		
		for i = 5, 1, -1 do
			print(i)
			wait(1)
		end
		
		morph.PrimaryPart.Anchored = false
		morph:PivotTo(char.HumanoidRootPart.CFrame)
		
		player.Character = morph
		morph.Parent = workspace
	end
end)

image

what exactly doesn’t work? did it not “morph” you? or can’t you move with the morph?

judging by the structure of the “Minor Officer”, I suppose that it doesn’t recognize the morph as a “character” because the limbs are made out of Model instead of the usual BasePart. Try reloading the player’s character after setting the character:

-- ...
morph.Parent = workspace

player.Character = morph
player:LoadCharacter()
1 Like

What I mean is that the player essentially just vanishes into nothing and all you can move is the camera. Tried your code, but adding the “LoadCharacter” bit just turns the player back to their original character for some reason.

game.Players.PlayerAdded:Connect(function(player: Player)
	local char = player.CharacterAdded:Wait()

	if char then
		local morph = workspace:FindFirstChild("104th D"):FindFirstChild("Minor Officer"):Clone()
		local humanoid = Instance.new("Humanoid")
		humanoid.Parent = morph

		for i = 5, 1, -1 do
			print(i)
			wait(1)
		end

		morph.PrimaryPart.Anchored = false
		morph:PivotTo(char.HumanoidRootPart.CFrame)

		morph.Parent = workspace
		
		player.Character = morph
		player:LoadCharacter()
	end
end)

Is your morph all models?? If that’s the case I’d just recommend welding the model to the character’s body parts and going from there.

Wouldn’t the models parts and the player’s parts overlap, though?

No, that’s what CollisionGroups are for

Like wouldn’t the textures overlap?

That’s why you turn the player invisible

And how do I turn the player invisible