|
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) |
|
compy111Join Date: 2009-04-02 Post Count: 583 |
the script looks right, it probably has something to do with the Override and Regular values. |
|
|
I already stated what the values were though, is it possible that my script became glitched or something? |
|
cntkillmeJoin Date: 2008-04-07 Post Count: 49450 |
No output? |
|
|
The player doesn't get kicked. |
|
cntkillmeJoin Date: 2008-04-07 Post Count: 49450 |
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)
|
|
|
They are, I mentioned what they were equal to. Could they just have randomly glitched? |
|
cntkillmeJoin Date: 2008-04-07 Post Count: 49450 |
So is there any output when running it? |
|
|
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. |
|
cntkillmeJoin Date: 2008-04-07 Post Count: 49450 |
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 |
|
|
Do I put that in the script as well... or..? |
|
cntkillmeJoin Date: 2008-04-07 Post Count: 49450 |
Put it above the event (same script) |
|
|
I'm not seeing these "prints" anywhere, but I have an idea on how to test it. |
|
|
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) |
|
cntkillmeJoin Date: 2008-04-07 Post Count: 49450 |
And there is no output?
|
|
|
None of the "prints" on your script showed anywhere, so I tried the one I just mentioned. |
|
cntkillmeJoin Date: 2008-04-07 Post Count: 49450 |
Try seeing if there is an error online (Use like REMS or make your own) |
|