- What do you want to achieve?
I was following a tutorial on how to increase the size of the character relative to the leaderstats. I am currently trying to get the player head to increase in size when the leaderstats value increases
- What is the issue?
Right now, the GUI buttons that I have update the leaderstats, but the size of the head does not increase with the code I have. The script below is the resize script I got from the tutorial and I have it in a script within ServerScriptService.
while wait(.5) do
local children = game.Players:GetChildren()
for i = 1, #children do
if children[i].Character ~= nil then
local hum = children[i].Character.Humanoid
hum.HeadScale.Value = children[i].leaderstats.Smarts.Value +1
print("working")
end
end
end
The game is printing the “working” text, but the HeadScale is not increasing.
-
What solutions have you tried so far?
I have tried by best to recheck my work, but there are no errors that I can find.
Any help would be much appreciated. Thanks!