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

Player is not shrinking properly?

Asked by
gitrog 326 Moderation Voter
6 years ago
Edited 6 years ago

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
0
Theres something located in humanoid called size that will change the whole size lol Lolamtic 63 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

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

0
Yeah, I need a solution for R6 or I would have done that. gitrog 326 — 6y
0
oh a sec Lolamtic 63 — 6y
0
wait ok im doing all to get it for you ;) Lolamtic 63 — 6y
Ad

Answer this question