Hi,
I’m making a flee the facility type game where there will be runners and seekers. I want to make a efficient check that works like this: 1-3 runners = 1 seeker, 4-6 runners = 2 seekers, 7-9 runners = 3 seekers.
How would I do this?
local function gamePresync() -- starts up the game
-- count amount of people in dead (dead = players playing.)
Settings.Dead.PlayerAdded:Connect(function(player: Player)
-- 1-3 = 1 seekers, 4-6 = 2 seekers, 7-9 = 3 seekers.
-- TODO: make a check for this ^
local amount = #Settings.Dead:GetPlayers()
if amount >= Settings.MinimumPlayers then
print("game has enough to start.")
end
end)
end