with this code:
if collecting == false then
collecting = true
task.delay(1, function()
if #clashers >= 2 then
local winner = clashers[math.random(1, #clashers)]
event:Fire(winner)
collecting = false
end
if #clashers == 1 then
local winner = clashers[1]
event:Fire(winner)
collecting = false
end
end)
end
table.insert(clashers,player)
end)```
focus on the if #clashers >= 2 part, its supposed to choose a random number between 1 and the amount of players in the array. It only randomizes ONE time and then proceeds to pick that number every single time afterwards. How do I make it roll a different random number every time?
** You are now Level 5! **