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

Resizing Players using Vector3?

Asked by 5 years ago
Edited 5 years ago

Is it possible to use Vector3 to resize a player? since resizing players using Vector3 does not work I tried this which is just a normal script in the workspace but when I play in studio nothing happens to my character

function PlayerSize(player)
    local SizeValue = 10

    local humanoid = player.Character.Humanoid
    if humanoid then
        if humanoid:FindFirstChild("BodyHeightScale") then
            humanoid.BodyHeightScale.Value = SizeValue
        end
    end
end
0
You're calling the function at some point, correct? MythicalShade 420 — 5y
0
it works now I had forgot to call it but I have decided to use the function you provided DannyMixUp 0 — 5y

1 answer

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

There's no easy way to resize R6 players, especially with only Vector3 (only vector3 doesn't work.)

However, there's a module that ROBLOX created for resizing characters that you can find here

Or, an even easier way for R15 characters, by using this function.

function ResizeCharacter(character,increment)
    if character.Humanoid.RigType == Enum.HumanoidRigType.R15 then
        for _, scale in pairs(character.Humanoid:GetChildren()) do
            if scale.ClassName == "NumberValue" then
                scale.Value = scale.Value + increment
            end
        end
    end
end
0
Would I also be able to resize characters by BodyDepthScale, BodyHeightScale, BodyWidthScale, and HeadScale? or was this removed from roblox? DannyMixUp 0 — 5y
0
Yes that is what the function is doing. MythicalShade 420 — 5y
0
I tried calling your function and it works but for some reason the legs get really long any thought as to why the body gets out of proportion DannyMixUp 0 — 5y
Ad

Answer this question