Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I get this so it stops killing the player?

Asked by 7 years ago
Edited 7 years ago

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!

0
it gets detached from the head which kills them abnotaddable 920 — 7y
0
I figured that but How would I attach them again? Using a weld? if so How do I create this weld? GuestRealization 102 — 7y
0
I believe this wiki post should be helpful than. It's about welding. http://wiki.roblox.com/index.php?title=Weld Troidit 253 — 7y

Answer this question