Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I make This Script That Selects A Player?

Alright, so here is a thing I'm trying to do, I have been trying to make a hide and seek game but heres my question, how can I make a script that selects a player and makes them it.

2 answers

✓ Accepted answer

You would first have to get all the players in the game, and select one of them at random:

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

This discussion is preserved as it was. New answers, comments, and votes are closed.