Hello everyone!
Well, I got myself stuck with this, I would like to use math.random to select 2 Players and teleport them to 2 different Locations...
So, this means that I can't use list[math.random(2, #list)] because then I will have to teleport them both to the same location.
The real problem is that if I use math.random 1, there is a chance to select the same player 2 times. Example:
local one = list[math.random(1, #list)]
local two = list[math.random(1, #list)]
I don't know if there is a way to exclude the one after selecting him from the list and then selecting number two...
This thing is really breaking my brain! Does anyone knows a way to do this?![Confused :confused: :confused:](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Thanks!
Well, I got myself stuck with this, I would like to use math.random to select 2 Players and teleport them to 2 different Locations...
So, this means that I can't use list[math.random(2, #list)] because then I will have to teleport them both to the same location.
The real problem is that if I use math.random 1, there is a chance to select the same player 2 times. Example:
local one = list[math.random(1, #list)]
local two = list[math.random(1, #list)]
I don't know if there is a way to exclude the one after selecting him from the list and then selecting number two...
This thing is really breaking my brain! Does anyone knows a way to do this?
Thanks!