generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Small Script, Unknown Error.

Previous Thread :: Next Thread 
EgoRenascitur is not online. EgoRenascitur
Joined: 17 Nov 2013
Total Posts: 1049
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 is not online. 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
EgoRenascitur is not online. EgoRenascitur
Joined: 17 Nov 2013
Total Posts: 1049
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 is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
30 Mar 2014 12:23 PM
No output?
Report Abuse
EgoRenascitur is not online. EgoRenascitur
Joined: 17 Nov 2013
Total Posts: 1049
30 Mar 2014 08:14 PM
The player doesn't get kicked.
Report Abuse
cntkillme is not online. 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
EgoRenascitur is not online. EgoRenascitur
Joined: 17 Nov 2013
Total Posts: 1049
30 Mar 2014 08:23 PM
They are, I mentioned what they were equal to. Could they just have randomly glitched?
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
30 Mar 2014 08:29 PM
So is there any output when running it?
Report Abuse
EgoRenascitur is not online. EgoRenascitur
Joined: 17 Nov 2013
Total Posts: 1049
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 is not online. 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
EgoRenascitur is not online. EgoRenascitur
Joined: 17 Nov 2013
Total Posts: 1049
30 Mar 2014 08:37 PM
Do I put that in the script as well... or..?
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
30 Mar 2014 08:38 PM
Put it above the event (same script)
Report Abuse
EgoRenascitur is not online. EgoRenascitur
Joined: 17 Nov 2013
Total Posts: 1049
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
EgoRenascitur is not online. EgoRenascitur
Joined: 17 Nov 2013
Total Posts: 1049
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 is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
30 Mar 2014 08:56 PM
And there is no output?
Report Abuse
EgoRenascitur is not online. EgoRenascitur
Joined: 17 Nov 2013
Total Posts: 1049
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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image