So I've made a morph in-studio and it morphs you into the character just fine. The problem is you can't move and are inside the original model you were supposed to morph into. Can anyone help? Here's the code used for the morph:

local pad = script.Parent local characterName = "Slenderman" local character = pad.Parent:WaitForChild(characterName)

local debounce = true pad.Touched:Connect(function(obj) local plr = game.Players:GetPlayerFromCharacter(obj.Parent) if plr and debounce == true then debounce = false

    pad.BrickColor = BrickColor.new("Really red")
   
    local charClone = character:Clone()
    charClone.Name = plr.Name
    plr.Character = charClone
   
    local rootPart = charClone:FindFirstChild("HumanoidRootPart") or charClone:FindFirstChild("Torso")
	        local plrRoot = obj.Parent:FindFirstChild("HumanoidRootPart") or obj.Parent:FindFirstChild("Torso")
	
	local rootPart = charClone:FindFirstChild("HumanoidRootPart") or charClone:FindFirstChild("Head")
	        local plrRoot = obj.Parent:FindFirstChild("HumanoidRootPart") or obj.Parent:FindFirstChild("Head")
	
	local rootPart = charClone:FindFirstChild("HumanoidRootPart") or charClone:FindFirstChild("Tentacle")
	        local plrRoot = obj.Parent:FindFirstChild("HumanoidRootPart") or obj.Parent:FindFirstChild("Tentacle")
	
	local rootPart = charClone:FindFirstChild("HumanoidRootPart") or charClone:FindFirstChild("Left Arm")
	        local plrRoot = obj.Parent:FindFirstChild("HumanoidRootPart") or obj.Parent:FindFirstChild("Left Arm")
	
	local rootPart = charClone:FindFirstChild("HumanoidRootPart") or charClone:FindFirstChild("Right Arm")
	        local plrRoot = obj.Parent:FindFirstChild("HumanoidRootPart") or obj.Parent:FindFirstChild("Right Arm")
	
	local rootPart = charClone:FindFirstChild("HumanoidRootPart") or charClone:FindFirstChild("Right Leg")
	        local plrRoot = obj.Parent:FindFirstChild("HumanoidRootPart") or obj.Parent:FindFirstChild("Right Leg")
	
	local rootPart = charClone:FindFirstChild("HumanoidRootPart") or charClone:FindFirstChild("Left Leg")
    local plrRoot = obj.Parent:FindFirstChild("HumanoidRootPart") or obj.Parent:FindFirstChild("Left Leg")
   
    if rootPart and plrRoot then
        rootPart.CFrame = plrRoot.CFrame
    end
   
    charClone.Parent = workspace
   
    wait(.5)
   
    pad.BrickColor = BrickColor.new("Lime green")
    debounce = true
end

end)

1 comment

0

make sure its unanchored.