|
| 30 Nov 2012 07:41 AM |
I inserted a Group only script and I require two groups to be granted access.
Here is the script.
-- Group Script Server Only -- -- Created By clone2554 -- -- Feel Free To Edit Groups -- g={336} -- The 500 Legion (My group) function check_groupStatus(player) inGroup = false for i,p in pairs(g) do if player:IsInGroup(p) then inGroup = true end end return inGroup end game.Players.PlayerAdded:connect(function(player) if not check_groupStatus(player) then local h = Instance.new ("Hint") h.Parent = game.Workspace -- Just To Inform With Hint Which Player Was Kicked. h.Text = (player.Name.. " Was Denied Access Into This Server.") player.Parent = nil wait(6) h:remove () end end)
Any help is welcomed. I also need this done in six hours.
13:41 GMT |
|
|
| Report Abuse |
|
|
|
| 30 Nov 2012 07:51 AM |
._. -- Group Script Server Only -- -- Created By clone2554 -- -- Feel Free To Edit Groups -- g={336,otherid} -- The 500 Legion (My group) function check_groupStatus(player) inGroup = false for i,p in pairs(g) do if player:IsInGroup(p) then inGroup = true end end return inGroup end game.Players.PlayerAdded:connect(function(player) if not check_groupStatus(player) then local h = Instance.new ("Hint") h.Parent = game.Workspace -- Just To Inform With Hint Which Player Was Kicked. h.Text = (player.Name.. " Was Denied Access Into This Server.") player.Parent = nil wait(6) h:remove () end end) |
|
|
| Report Abuse |
|
|
|
| 30 Nov 2012 07:55 AM |
Thank you, I assume due to the way you worded it, that this is correct :
" g={336,662090} "
and this is not
" g={336, 662090} " |
|
|
| Report Abuse |
|
|
| |
|
|
| 30 Nov 2012 08:01 AM |
^ Why have you bumped joshua?
This is a recent post. |
|
|
| Report Abuse |
|
|
|
| 30 Nov 2012 08:53 AM |
joshualightsaber has decided that he is going to be a huge noob and bump useless posts so he can get his gifts... In other words, he's going to find his posts have jumped to 0 and he's had his account temporarily banned. |
|
|
| Report Abuse |
|
|
| |
|
clone2554
|
  |
| Joined: 16 Feb 2010 |
| Total Posts: 860 |
|
| |
|