when you click the button (gui) it makes you small
function onButtonClicked() local Character = game.Players.LocalPlayer local Humanoid = Character:FindFirstChild('Humanoid')
if Humanoid then
local HEAD = Humanoid:FindFirstChild('HeadScale')
local BodyWidthScale = Humanoid:FindFirstChild('BodyWidthScale')
local BodyHeightScale = Humanoid:FindFirstChild('BodyHeightScale')
local BodyDepthScale = Humanoid:FindFirstChild('BodyDepthScale')
if HEAD then
HEAD.Value = HEAD.Value - 0.7
BodyDepthScale.Value = BodyDepthScale.Value - 0.7
BodyHeightScale.Value = BodyHeightScale.Value - 0.7
BodyWidthScale.Value = BodyWidthScale.Value - 0.7
end
end
end
script.Parent.MouseButton1Click:connect(onButtonClicked)
' local Character = game.Players.LocalPlayer ' on that, 'player' is not found

2 comments
You should probably start by defining the "Humanoid" and also probably tell us where the heck local Character is? Because you posted half of your script
1.Please post the whole script that woudl help us all alot