The title may not sound right, but I'll try my best to explain the problem. I am working on a timer that adds up, depending on how many players are in a game.
For example:
2 Players = 60 seconds left.
If there are more than 2 players, then the timer adds up (so the game will be fair).
3 Players = 90 seconds left.
4 Players = 120 seconds left.
5 Players = 160 seconds left.
And so on...
How do I create a timer that is multiplied based on players? What can I do to input this "thing" into this code block? I would appreciate the help!
wait(1)
ftime = ftime - 1
text.Value = "Time remaining: "..ftime
local function TeamMembers(name)
local players = {}
for _, plr in pairs(game.Players:GetPlayers()) do
if plr.Team and plr.Team.Name == name then
table.insert(players, plr)
end
end
return players
end
