Hey everyone!
So, I have this game, where every 60 seconds (1 Minute), The player size increases by 1.
Currently, my script is in ServerScriptService.
My question is: Does a script apply to all the players on the server (I mean, do they all have the same size no matter when they joined), Or is there a different size for each player?
Here is my script:
game.Players.PlayerAdded:Connect(function(player)
local size = 1 -- This
player.CharacterAdded:Connect(function(Character)
local Humanoid = player.Character.Humanoid
Humanoid.BodyDepthScale.Value = size
Humanoid.BodyHeightScale.Value = size
Humanoid.BodyProportionScale.Value = size
Humanoid.BodyTypeScale.Value = size
Humanoid.BodyWidthScale.Value = size
Humanoid.HeadScale.Value = size
Humanoid.WalkSpeed = 16
for x = (size+1), 999999, 1 do --For loop where x + 1 each time the loop runs
wait(60)
size = tonumber(x)
print(x) --Print in output
Humanoid.BodyDepthScale.Value = tonumber(x) --Changing the values to x
Humanoid.BodyHeightScale.Value = tonumber(x)
Humanoid.BodyProportionScale.Value = tonumber(x)
Humanoid.BodyTypeScale.Value = tonumber(x)
Humanoid.BodyWidthScale.Value = tonumber(x)
Humanoid.HeadScale.Value = tonumber(x)
Humanoid.WalkSpeed = 16 + x*2
Humanoid.JumpPower = 50 + x*2
for v=1, 3 do
if Humanoid.Health <= 0 then
return
end
wait(1)
end
end
end)
end)