Dralin
|
  |
| Joined: 19 Nov 2008 |
| Total Posts: 2572 |
|
|
| 20 Jun 2012 12:19 PM |
Basicaly, this is a very simple piece of coding that should, essentialy, scan to see if a person entering a server is part of a specific group. If said person isn't part of the specified group, the script is supposed to remove them from the server. Unfortunately, it seems to be malfunctioning, and I can't seem to find what's wrong with it. :(
Any assistance would be much appreciated.
function entered(player) if player:isInGroup(334531) then return end game.Workspace.tryagain.Value = player.Name player:Destroy() end game.Players.PlayerAdded:connect(entered) |
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 20 Jun 2012 12:21 PM |
Well maybe you should learn how blocks work k? Unless you missed an end by accident.. |
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 20 Jun 2012 12:22 PM |
oh nvm i read it wrong qq y u no ~ instead of that return krap |
|
|
| Report Abuse |
|
|
Dralin
|
  |
| Joined: 19 Nov 2008 |
| Total Posts: 2572 |
|
|
| 20 Jun 2012 12:22 PM |
Maybe you should get an attitude adjustment. :l
I hear that they do marvelous things at psychiatric clinics nowadays. |
|
|
| Report Abuse |
|
|
Dralin
|
  |
| Joined: 19 Nov 2008 |
| Total Posts: 2572 |
|
|
| 20 Jun 2012 12:23 PM |
| Because I'm a nub nub scripter leik dat. :/ |
|
|
| Report Abuse |
|
|
|
| 20 Jun 2012 12:25 PM |
There's a sub forum called Scripting Helpers for a reason.
function entered(player) if not player:IsInGroup(334531) then game.Workspace.tryagain.Value = player.Name player:Destroy() end end game.Players.PlayerAdded:connect(entered)
|
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 20 Jun 2012 12:26 PM |
| One reason might be that you're trying to remove the player too fast.. Try it with some kind of a wait |
|
|
| Report Abuse |
|
|
Dralin
|
  |
| Joined: 19 Nov 2008 |
| Total Posts: 2572 |
|
|
| 20 Jun 2012 12:26 PM |
| True, but I prefer not having to wait 2 hours for a helpful reply. |
|
|
| Report Abuse |
|
|
|
| 20 Jun 2012 12:27 PM |
2 hours? Bullcrap.
@su; y u no see he has under case letter i in IsInGroup |
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 20 Jun 2012 12:28 PM |
>@su; y u no see he has under case letter i in IsInGroup
idk |
|
|
| Report Abuse |
|
|
geicogeko
|
  |
| Joined: 27 Apr 2010 |
| Total Posts: 2727 |
|
|
| 20 Jun 2012 12:28 PM |
| Be glad that they helped you at all. Normally, they would have eaten you. |
|
|
| Report Abuse |
|
|
jode6543
|
  |
| Joined: 16 Jun 2009 |
| Total Posts: 5363 |
|
|
| 20 Jun 2012 12:41 PM |
I sure would've. I had the ketchup all ready, I was gonna make him into a hot dog. :c
-Jode |
|
|
| Report Abuse |
|
|
|
| 20 Jun 2012 12:48 PM |
Go ahead and eat him. He's calling me a bad scripter because he doesn't know how to set up values properly.
http://www.roblox.com/Forum/ShowPost.aspx?PostID=70358636 |
|
|
| Report Abuse |
|
|
C7G
|
  |
| Joined: 24 Sep 2011 |
| Total Posts: 140 |
|
|
| 20 Jun 2012 01:02 PM |
@geico >would have >would have >WOULD HAVE will Who's ready for some fried C&Ger? I have the cauldron, will someone pass me the bacon juice? |
|
|
| Report Abuse |
|
|
|
| 20 Jun 2012 01:03 PM |
>~= >Not "NOT"
Sure is plebe in here.
Excuse me if I'm rusty.
game.Players.PlayerAdded:connect(function(player) if NOT player:isInGroup(ID) then player:Remove() end end |
|
|
| Report Abuse |
|
|
|
| 20 Jun 2012 02:51 PM |
If there's a 2 hour waiting time, then you do not have the right any more than anyone else to skip it.
go away you selfish n00b |
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
| |
|
slayer219
|
  |
| Joined: 15 Nov 2008 |
| Total Posts: 3445 |
|
| |
|
SN0X
|
  |
| Joined: 24 Oct 2011 |
| Total Posts: 7277 |
|
|
| 20 Jun 2012 03:54 PM |
| No he just insulted himself. |
|
|
| Report Abuse |
|
|