Here Duckie will elaborate some more for you.
So in the roblox lua world to get players you use game.Players:GetPlayers()
local players = game:GetService("Players"):GetPlayers()
Now to get random players!
First we get our first player and when we get out second player we make sure the first and second are not the same.
local players = game:GetService("Players"):GetPlayers()
local playerone = players[math.random(1, #players)]
local playertwo = players[math.random(1, #players)]
if playertwo == playerone then
repeat
local playertwo = players[math.random(1, #players)]
until playertwo ~= playerone
end
There the end :D
2 comments
Trying to grab the player so I can chose one of the players as murder and one as sheriff.
GARBING u mean grabing