The player also dies after a while. This does not happen in studio which confuses me.
local Player=game.Players.LocalPlayer script.Parent.MouseButton1Down:connect(function() script.Parent.Parent.Visible = false local Morph=game.ReplicatedStorage.Gray:Clone() Morph.Parent=workspace Morph.PrimaryPart=Morph:FindFirstChild("Torso") Morph:SetPrimaryPartCFrame(Player.Character.Torso.CFrame) Morph:MakeJoints() Player.Character=Morph workspace.CurrentCamera.CameraSubject=Morph end)
It works in studio but not in the real roblox.