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: May I have some help editing?

Previous Thread :: Next Thread 
STARWARSFAN1400 is online. STARWARSFAN1400
Joined: 12 Nov 2008
Total Posts: 10210
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
iBrilliance is not online. iBrilliance
Joined: 19 Oct 2012
Total Posts: 1032
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
STARWARSFAN1400 is online. STARWARSFAN1400
Joined: 12 Nov 2008
Total Posts: 10210
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
joshualightsaber is not online. joshualightsaber
Joined: 27 Nov 2010
Total Posts: 2267
30 Nov 2012 07:56 AM
Bump
Report Abuse
STARWARSFAN1400 is online. STARWARSFAN1400
Joined: 12 Nov 2008
Total Posts: 10210
30 Nov 2012 08:01 AM
^ Why have you bumped joshua?


This is a recent post.
Report Abuse
MeBilly8440 is not online. MeBilly8440
Joined: 27 Jul 2009
Total Posts: 2783
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
iBrilliance is not online. iBrilliance
Joined: 19 Oct 2012
Total Posts: 1032
30 Nov 2012 05:38 PM
Both are correct.
Report Abuse
clone2554 is not online. clone2554
Joined: 16 Feb 2010
Total Posts: 860
02 Jan 2013 05:32 PM
Lol
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