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

Player is not shrinking properly?

Hello, I'm trying to shrink my friend, but it gives me some pretty odd results. When shrunk, her parts move but are not attached, then it teleports her off the edge of the map.

if player.Name == "PNGjpg" then
	for index, part in pairs(player.Character:GetChildren()) do
		if part.ClassName == "Part" then
			part.Size = part.Size/10
		elseif part.ClassName == "Accessory" then										
			part.Handle.Size = part.Handle.Size/10
		end
	end
end

1 comment

0

Theres something located in humanoid called size that will change the whole size lol

1 answer

Theres something located in Humanoid that makes you bigger (including hats) the script:

This will make the player big R15 Only!

game.Players.PlayerAdded:connect(function(player)-- checks if a player gets added
wait(0.0001)-- This is because the script fires faster than the character loads
player.CharacterAdded:connect(function() -- if the player reset or  respawns it will do thefunction
	
if player.Name == "PNGjpg" then -- checks the name
	
player.Character.Humanoid.BodyDepthScale.Value = 10 -- something located in humanoid
player.Character.Humanoid.BodyHeightScale.Value = 10
player.Character.Humanoid.BodyWidthScale.Value = 10
player.Character.Humanoid.HeadScale.Value = 10  -- if you want to be smaller or bigger change the value  you can use .0 too
 
    end
end)
end)

NOTE: if it does not work reset

3 comments

0

Yeah, I need a solution for R6 or I would have done that.

0

oh a sec

0

wait ok im doing all to get it for you ;)

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