I don't understand why my player won't grow in size even though there are no errors, and everything looks fine?
script in 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.Fat.Value/50 +1
hum.BodyHeightScale.Value = children[i].leaderstats.Fat.Value/50 +1
hum.BodyWidthScale.Value = children[i].leaderstats.Fat.Value/50 +1
hum.BodyDepthScale.Value = children[i].leaderstats.Fat.Value/50 +1
hum.WalkSpeed = children[i].leaderstats.Fat.Value/3.12
hum.JumpPower = children[i].leaderstats.Fat.Value
hum.MaxHealth = children[i].leaderstats.Fat.Value+25
end
end
end
leaderstats
game.Players.PlayerAdded:Connect(function(plr)
local leaderstats = Instance.new("Folder", plr)
leaderstats.Name = "leaderstats"
local Strength = Instance.new("IntValue", leaderstats)
Strength.Name = "Strength"
local Fat = Instance.new("IntValue", leaderstats)
Fat.Name = "Fat"
Fat.Value = 0
local Rebirths = Instance.new("IntValue", leaderstats)
Rebirths.Name = "Rebirths"
end)

1 comment
??