Character is acting weird after morphing; also not morphing into the rig model

Hi! So I’m currently making a Morph GUI but for some reason the Character is acting weird after morphing:


Code:

local morphPart = workspace.Morphpart
local morph = game.ReplicatedStorage.morphInto
local touched = false

local function makeBodyPartsInvisible(char)
	for i,v in next, char:GetChildren() do
		if v:IsA("BasePart") or v:IsA("Decal") then
			v.Transparency = 1
		end
 	end
end

local function morphInto(morph, char)
	--make the morph get in the same position as the char's parts
	for i,v in next, morph:GetDescendants() do
		if v:IsA("BasePart") then
			v.Parent = char:FindFirstChild(v.Name).Parent
			v.CFrame = char:FindFirstChild(v.Name).CFrame
		end
	end
end

morphPart.Touched:Connect(function(hit)
		local hum = hit.Parent:FindFirstChild("Humanoid") or hit.Parent.Parent:FindFirstChild("Humanoid")
		if hum then
		local char = hum.Parent
		local plr = game.Players:GetPlayerFromCharacter(char)
		makeBodyPartsInvisible(char)
		morphInto(morph, char)		
	end
end)

I’ve locked the game to R6 and this is the morphInto rig:
image

Since you have two heads, two HumanoidRootParts, and two Torsos there is a conflict with the other parts. You might have to try removing all of the things that isn’t part of the morph besides the humanoid.

2 Likes