XxxLloyd061302xxX

PlayersScript

Jun 11th, 2018
4,446
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | None | 0 0
  1. while wait() do
  2.     if script.Parent.Value >= 2 then -- Checks if the players are 2 or more
  3.         script.Parent.Parent.GameScript.Disabled = false
  4.     elseif script.Parent.Value < 2 then -- Checks if the players are less than 2
  5.         script.Parent.Parent.GameScript.Disabled = true
  6.         script.Parent.Parent.Message.Value = "2 Players or more are needed to play a minigame!" -- Edit your text here if there are less than 2 players
  7.     end
  8. end
Advertisement
Add Comment
Please, Sign In to add comment