chimo88
|
  |
| Joined: 20 Aug 2008 |
| Total Posts: 2051 |
|
|
| 27 Dec 2013 08:39 PM |
--Do you see any errors?
local legion1 = 564624 local legion2 = 993775 local legion3 = 931042 local legion4 = 895767 --[[local division1 = 564624 local division2 = 993775 local division3 = 931042 local division4 = 895767 --]] game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:wait() if player:GetRoleInGroup(333620) < 45 then if player:IsInGroup(legion1) and player:IsInGroup(legion2) or player:IsInGroup(legion1) and player:IsInGroup(legion3) or player:IsInGroup(legion1) and player:IsInGroup(legion4) or player:IsInGroup(legion2) and player:IsInGroup(legion3) or player:IsInGroup(legion4) and player:IsInGroup(legion3) then game.Workspace.CommChannels.CH1.Value = Player.Name.." is in 2 divisions, removed." Player:Destroy() end end end)
--Thanks!! |
|
|
| Report Abuse |
|
|
|
| 27 Dec 2013 08:43 PM |
if you just want to check if he is in 2 divisions, use a loop.
divisions = { legion1 = 564624, legion2 = 993775, legion3 = 931042, legion4 = 895767, }
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:wait() if player:GetRoleInGroup(333620) < 45 then local _ = 0 for i,v in pairs(divisions) do if player:IsInGroup(v) then _ = _ + 1 end end if _ >= 2 then game.Workspace.CommChannels.CH1.Value = Player.Name.." is in 2 divisions, removed." player:Destroy()--player was capitilized end end end)
|
|
|
| Report Abuse |
|
|
chimo88
|
  |
| Joined: 20 Aug 2008 |
| Total Posts: 2051 |
|
| |
|
chimo88
|
  |
| Joined: 20 Aug 2008 |
| Total Posts: 2051 |
|
|
| 27 Dec 2013 08:49 PM |
| Sadly it doesn't seem to work, either. Maybe I use getrank instead of getrole..? |
|
|
| Report Abuse |
|
|