I need help with this minigame script. This is a script in a GUI button. Im my workspace I have An arena called Game1 and It contains a NumberValue Called Players. I want to make it so that only 2 players can be in Game1 at a time. Thank You for reading my problem!
If (Game.Workspace.Game1.Players = "1" or "0")
then function MouseClick()
-- Ill add a script here that TP's the player to Game 1 and adds 1 value to Game1.Players
end
script.Parent.MouseButton1Down:connect(MouseClick)

1 comment
Thank you! This worked for me.