I'm trying to create a simulator, and I want to know how to make my avatar grow slightly as my strength value goes up. Please help!
Edit: The problem seems to be on line 4
while wait(0.5) do
local children = game.Players:GetChildren()
for i = 1, #children do
local humanoid = children[i].Character.Humanoid
humanoid.HeadScale.Value = children[i].leaderstats.Strength.Value/50+100
humanoid.BodyHeightScale.Value = children[i].leaderstats.Strength.Value/50+100
humanoid.BodyWidthScale.Value = children[i].leaderstats.Strength.Value/50+100
humanoid.BodyDepthScale.Value = children[i].leaderstats.Strength.Value/50+100
end
end
11:49:47.892 - ServerScriptService.Script:4: attempt to index nil with 'Humanoid'

4 comments
Hello! I noticed you haven't made an attempt to this solution. Please do. For more information, see https://idownvotedbecau.se/NoAttempt
You haven't posted any code either.Also see https://idownvotedbecau.se/NoCode
Give the error, please.
See my answer.