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)
This is supposed to make a player a morph I made but the problem is that it is fine in studio but online the player dies from becoming the morph.

2 comments
From a first look I'd say its something to do with the change. I don't know why it works in studio, but try something different rather than completely changing the character.
Is your Morph just a default character model with some extra parts? Try welding all of the parts to the morphs body parts, and then welding the morphs body parts to the players body parts.