This is basically a game start script but before anything starts, there is a condition for it to check the number of players. If the Num of players ==1 then it will make things visble and disable other stuff. I added a wait so that would repeat until Num players>1.

Error:Expected until to close repeat at line 24. I have changed this script multiple times only to be the same error in different places.

		local peeps = game.Players.LocalPlayer.PlayerGui
			
		
	
if game.Players.NumPlayers ==1 then 
	
		      
		function check() 
			
		repeat 
			wait(1)
	script.Parent.players2.Value = "false"
		
			peeps.Mainmenu.Spacer.lobby.voting.whitetab.time.Visible = false
		peeps.Mainmenu.Spacer.lobby.voting.whitetab.vote.Visible = false
			
	peeps.Mainmenu.Spacer.lobby.voting.whitetab.numplayer.Visible = true
		
	
 
	script.Parent.players2.Value = "true"

		until
		game.Players.NumPlayers>1
		end
		check()
		else

1 comment

1

This code is very hard to read, and I believe your goal is being misinterpreted because of how you indented it. Please re-indent the lines so you have all your statements closed the way you want them.