Here's my code

for i,v in next, game:GetService("Players"):GetChildren() do
print(v)
end

Let's say there are 6 players in my game, how could only print 1-2, or half of the players?

2 comments

0

local timestoloop = math.floor(#game:GetService("Players"):GetPlayers() / 2)

0

this should return the half of the number of players, being rounded to the lowest whole if it's not a whole number