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

Help with Character size?

Asked by 9 years ago

So I want to make my character's size bigger with a script which is in a hopper bin.I don't get any error and it makes it bigger, but I die when it does that.

wait(3)
Player = script.Parent.Parent.Parent
c = Player.Character
n = script.Parent
local debounce = false
mouse = Player:GetMouse()

function pizza(mouse)
    if debounce == false then
        debounce = true

        c.Head.Size = Vector3.new(20, 10, 10)   
    c.Torso.Size = Vector3.new(20, 20, 10)
    c["Right Arm"].Size = Vector3.new(10, 20, 10)
    c["Left Arm"].Size = Vector3.new(10, 20, 10)
    c["Right Leg"].Size = Vector3.new(10, 20, 10)
    c["Left Leg"].Size = Vector3.new(10, 20, 10)

    end         
    wait(10)
    debounce = false
end




function onSelected(mouse)
    mouse.Button1Down:connect(function() pizza(mouse) end)
end

n.Selected:connect(onSelected)


1
Causing the change in size of the torso or head will break the weld between them, killing the character. To fix this, you may want to copy the character, and then set the player's character to the copy after welding the parts together. RedCombee 585 — 9y
0
i disagree ConnorXV 5 — 9y

Answer this question