I have made a morph script (using a click detector) in ROBLOX. Everything is working, except for one thing. It won't let the player walk.
local morph = game.ServerStorage:FindFirstChild("Vision")
print(1)
function onMouseClick(p)
print(2)
if p.Character.ClassName == "Model" then
print(3)
local humanoid = p.Character:FindFirstChild("Humanoid")
print(4)
if humanoid then
print(7)
local clone = morph:Clone()
print(8)
clone.Name = p.Name
print(9)
clone.Parent = game.Workspace
print(10)
clone:SetPrimaryPartCFrame(p.Character.PrimaryPart.CFrame)
print(11)
p.Character = clone
print(12)
game.Workspace.Camera.CameraSubject = morph[""].Humanoid
print(13)
end
end
end
script.Parent.ClickDetector.MouseClick:Connect(onMouseClick)
As you can see, I was trying to print debug. Anybody have an answer to this question?

1 comment
They are unanchored.