Nadds

Untitled

Apr 13th, 2016
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. yes = script.Parent.Yes.Visible
  2. no = script.Parent.No.Visible
  3. yes = false
  4. no = true
  5.  
  6. getRaidPlayers = (function()
  7. local Num, Plyrs = 0, {}
  8. for i,v in next, game:service("Players"):GetPlayers() do
  9. if v.TeamColor == BrickColor.new("Crimson") then
  10. Num = Num + 1
  11. Plyrs[#Plyrs+1] = v
  12. end
  13. end
  14. return Num
  15. end)
  16.  
  17. getDefendPlayers = (function()
  18. local Num, Plyrs = 0, {}
  19. for i,v in pairs (game.Players:GetPlayers()) do
  20. if (v.TeamColor == BrickColor.new("Gold")) or (v.TeamColor == BrickColor.new("Bright red")) then
  21. Num = Num + 1
  22. Plyrs[#Plyrs+1] = v
  23. end
  24. end
  25. return Num
  26. end)
  27.  
  28. if getDefendPlayers >= 3 and getRaidPlayers >= 1 then
  29. yes = true
  30. no = false
  31. else
  32. yes = false
  33. no = true
  34. end
Add Comment
Please, Sign In to add comment