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

How would I size a player without killing them?

Asked by 7 years ago

First of all, this is in a local script in StarterPack.

local jun = script.Parent.Parent --I always use this lol
local Char = jun.Character

function Cheese()
Char["Left Arm"].Size = Char["Left Arm"].Size * 2
Char["Right Arm"].Size = Char["Right Arm"].Size * 2
Char["Left Leg"].Size = Char["Left Leg"].Size * 2
Char["Right Leg"].Size = Char["Right Leg"].Size * 2
Char.Head.Size = Char.Head.Size * 2
Char.Torso.Size = Char.Torso.Size * 2
end

jun.Chatted:connect(function(message)
function Form(jun, message)
if message == "Form" then
Cheese()

end
end)

So the problem is that when the player gets resized, they die immediately.

An answer would be much appreciated. Thanks in advance!

(Also, I'm using a different script with the same idea. Same spot, LocalScript, etc. It does the same thing. So sorry if I missed an extra "end" or something >.< )

0
Try giving the humanoid therefor orignally it would take away 100 health give them 150 health then when the function Cheese() runs you can give them their health back to 100 Kenley67 -12 — 7y
0
^ That would still kill them as it would still break their joints. Intivest 0 — 7y

1 answer

Log in to vote
0
Answered by
Kenley67 -12
7 years ago
-- Possible Fix
local jun = script.Parent.Parent --I always use this lol
local Char = jun.Character
Char.Humanoid.Health = 150

function Cheese()
Char["Left Arm"].Size = Char["Left Arm"].Size * 2
Char["Right Arm"].Size = Char["Right Arm"].Size * 2
Char["Left Leg"].Size = Char["Left Leg"].Size * 2
Char["Right Leg"].Size = Char["Right Leg"].Size * 2
Char.Head.Size = Char.Head.Size * 2
Char.Torso.Size = Char.Torso.Size * 2
end

jun.Chatted:connect(function(message)
    function Form(jun, message)
        if message == "Form" then
            Cheese()
            Char.Humanoid.Health = 100
        end
    end
end)

Ad

Answer this question