I am trying to make a morph gui, I have no experience making a morph. Anyways Everytime I resize the characters torso it instantly kills the player.
local player = game.Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() function onClick1() local rl = character.Humanoid.Parent:FindFirstChild("Right Leg") if rl then rl:Destroy() end local ll = character.Humanoid.Parent:FindFirstChild("Left Leg") if ll then ll:Destroy() end local ra = character.Humanoid.Parent:FindFirstChild("Right Arm") if ra then ra:Destroy() end local la = character.Humanoid.Parent:FindFirstChild("Left Arm") if la then la:Destroy() end local torso = character.Humanoid.parent:FindFirstChild("Torso") if torso then torso.Size = Vector3.new(4, 3.8, 4.5) end end script.Parent.MouseButton1Down:connect(onClick1)
Is there a way to not kill the player?
UPDATE: I used a mesh to resize the player how I wanted, but would still like to know how to do this for the future!