Hello! So I have a Team Change Gui, and I want the player to change sizes when they press one of the buttons. For some reason, it doesn't work. Can you help me identify my problem?
function PlayerSize(player) local SizeValue = 0.5
script.Parent.Button.MouseButton1Click:Connect(function(player)
local humanoid = player.Character.Humanoid
if humanoid then
if humanoid:FindFirstChild("BodyHeightScale") then
humanoid.BodyHeightScale.Value = SizeValue
end
end
end) end

1 comment
Thank you so so much! I can't thank you enough.