Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How would I size a player without killing them?

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 >.< )

2 comments

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

0

^ That would still kill them as it would still break their joints.

1 answer

-- 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)

This discussion is preserved as it was. New answers, comments, and votes are closed.