|
| 30 Mar 2014 03:17 AM |
What you need to know:
Override & Regular are "siblings" of the script. Override == false Regular == True
Script:
game.Players.PlayerAdded:connect(function(player) wait(2) if script.Parent.Override.Value ~= true then if script.Parent.Regular.Value == true then wait(2) if not player:IsInGroup(939540) then player:Kick() end end end end) |
|
|
| Report Abuse |
|
|
compy111
|
  |
| Joined: 02 Apr 2009 |
| Total Posts: 583 |
|
|
| 30 Mar 2014 07:14 AM |
| the script looks right, it probably has something to do with the Override and Regular values. |
|
|
| Report Abuse |
|
|
|
| 30 Mar 2014 12:22 PM |
| I already stated what the values were though, is it possible that my script became glitched or something? |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
| |
|
|
| 30 Mar 2014 08:14 PM |
| The player doesn't get kicked. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 30 Mar 2014 08:16 PM |
Maybe one of the conditions are not met?
game.Players.PlayerAdded:connect(function(player) wait(2) if script.Parent.Override.Value ~= true then if script.Parent.Regular.Value == true then wait(2) if not player:IsInGroup(939540) then print("KICK") player:Kick() else print("NOT IN GROUP") end else print("REGULAR FALSE") end else print("OVERRIDE TRUE") end end)
|
|
|
| Report Abuse |
|
|
|
| 30 Mar 2014 08:23 PM |
| They are, I mentioned what they were equal to. Could they just have randomly glitched? |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 30 Mar 2014 08:29 PM |
| So is there any output when running it? |
|
|
| Report Abuse |
|
|
|
| 30 Mar 2014 08:33 PM |
| I don't know how to test the script without being in the game. I usually just go back and forth until I have it right. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 30 Mar 2014 08:36 PM |
Then just do this to see the prints:
print = function(...) x=Instance.new("Message", workspace) x.Text = table.concat({...}, " ") game.Debris:AddItem(x, 5) end |
|
|
| Report Abuse |
|
|
|
| 30 Mar 2014 08:37 PM |
| Do I put that in the script as well... or..? |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 30 Mar 2014 08:38 PM |
| Put it above the event (same script) |
|
|
| Report Abuse |
|
|
|
| 30 Mar 2014 08:45 PM |
| I'm not seeing these "prints" anywhere, but I have an idea on how to test it. |
|
|
| Report Abuse |
|
|
|
| 30 Mar 2014 08:55 PM |
There was absolutely no message at all, I'm extremely confused. (Yes, "Message" is under "Workspace" and it is indeed a message.)
I Used This To Test It:
Mess = game.Workspace.Message
game.Players.PlayerAdded:connect(function(player) wait(3) if script.Parent.Override.Value ~= true then if script.Parent.Regular.Value == true then wait(3) if not player:IsInGroup(939540) then Mess.Text = "KICK" player:Kick() else Mess.Text = "NOT IN GROUP" end else Mess.Text = "REGULAR FALSE" end else Mess.Text = "OVERRIDE TRUE" end end) |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
| |
|
|
| 30 Mar 2014 09:01 PM |
| None of the "prints" on your script showed anywhere, so I tried the one I just mentioned. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 30 Mar 2014 09:08 PM |
| Try seeing if there is an error online (Use like REMS or make your own) |
|
|
| Report Abuse |
|
|