Character scaling script just won't work

I’m writing a script that changes a character’s height via a GUI textbox and I for the life of me can not get it to work. I’ve tried referencing other scripts, Troubleshooting, etc., and it just still won’t work. can someone help?

local Players = game:GetService("Players")

local Player = Players.LocalPlayer

local character = Player.Character

local Humanoid = character:FindFirstChild ('Humanoid')

if Humanoid then

local BDS = Humanoid:FindFirstChild('BodyDepthScale')

local BWS = Humanoid:FindFirstChild('BodyWidthScale')

local BHS = Humanoid:FindFirstChild('BodyHeightScale')

local HS = Humanoid:FindFirstChild('HeadScale')

local text = script.Parent.Text

text = "Set Scale..."

while true do

if BDS and BWS and BHS and HS then

text = script.Parent.Text

print(character.Humanoid.HeadScale)

HS.Value = tonumber(text)

BDS.Value = tonumber(text)

BWS.Value = tonumber(text)

BHS.Value = tonumber(text)

wait(0.1)

end

end

end
1 Like