#I am making a game and I need to make a system where when the players queue into the 1v1 system
1 messages · Page 1 of 1 (latest)
If math.random(1,2) == 1 then
—give to player 1
else
—give to player 2
end
imma add onto this
local players = game:GetService("Players")
local function giveSword(plr)
-- blah blah blah
end
giveSword(players[math.random(1, #players:GetChildren()])```
emphasis on 1v1-..
if you want to go deeper into this, you could use teams too
maybe also edit the players walkspeed, jumppower whatever by putting them in teams instead
That's just overcomplication for his use case
the simple if statement is the most straightforward and readable
I read it wrong, my bad