Check for a certain amount of players in-game?
(This is a Local Script) Hello, I was wondering If there was a way to check if there is a certain amount of players in game? I'm trying to do this because I want to make a Murder-Mystery game and wait until there's at least 2 players for the round to start.
I tried this code:
1 | local getplayers = game:GetService( "Players" ) |
2 | local player = game.Players.LocalPlayer |
5 | player.PlayerGui:WaitForChild( "ScreenGui" ).Frame.Visible = true |
But it didn't work. Any help?