The goal of this code is to pick two different players and changing a value thats is within a folder within the player.
How do i go about making the code not pick the same player more then once?
players = game:GetService('Players'):GetPlayers()
function getVip()
return(players[math.random(1,#players)])
end
function getSniper()
return(players[math.random(1,#players)])
end
while wait() do
if #players >= 3 then
getVip:WaitForChild('Values').teamValue = 'Vip'
wait()
getSniper():WaitForChild('Values').teamValue = 'Sniper'
end
end

1 comment
Thanks