Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Script that changes player's size on spawn doesn't work?

I tried making a script where when a player spawns, their size is changed but it does not work. Here is the code.

game:GetService("Players").PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(function(char)
local hum = char:WaitForChild("Humanoid")
char:WaitForChild("Humanoid").Size = 0.5
char:WaitForChild("Humanoid").WalkSpeed = 20
end)
end)

1 answer

Humanoid is not a part, you cannot change the size of a humanoid. If you want to change the size of the player, you could change the values under the humanoid such as the BodyHeightScale, BodyDepthScale, BodyWidthScale etc.

2 comments

0

when I did char:WaitForChild("Humanoid").BodyHeightScale = 0.5 nothing happened

0

They are NumberValues, you must set their values: char:WaitForChild("Humanoid").BodyHeightScale.Value = 0.5

This discussion is preserved as it was. New answers, comments, and votes are closed.