Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- yes = script.Parent.Yes.Visible
- no = script.Parent.No.Visible
- yes = false
- no = true
- getRaidPlayers = (function()
- local Num, Plyrs = 0, {}
- for i,v in next, game:service("Players"):GetPlayers() do
- if v.TeamColor == BrickColor.new("Crimson") then
- Num = Num + 1
- Plyrs[#Plyrs+1] = v
- end
- end
- return Num
- end)
- getDefendPlayers = (function()
- local Num, Plyrs = 0, {}
- for i,v in pairs (game.Players:GetPlayers()) do
- if (v.TeamColor == BrickColor.new("Gold")) or (v.TeamColor == BrickColor.new("Bright red")) then
- Num = Num + 1
- Plyrs[#Plyrs+1] = v
- end
- end
- return Num
- end)
- if getDefendPlayers >= 3 and getRaidPlayers >= 1 then
- yes = true
- no = false
- else
- yes = false
- no = true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement