Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to choose someone of the server randomly?

Asked by 6 years ago

How to choose someone of the server with math.random()??

1 answer

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

Try this! localscript server script service idk

local randomPlayer = game.Players:GetPlayers()
[math.random(1,#game.Players:GetPlayers())]

The variable randomPlayer is the variable of the chosen random person, use it to your advantage, have a great day

script credits to: https://scriptinghelpers.org/questions/2160/how-can-i-make-a-script-to-choose-a-random-player

Ad

Answer this question