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: HOW DO I MAKE A SCRIPT...

Previous Thread :: Next Thread 
rowerowe71 is not online. rowerowe71
Joined: 14 Apr 2013
Total Posts: 1999
25 Nov 2013 02:16 PM
How do I make a script that makes only members of a certain group allowed on my game?

Oh and don't say something stupid like "This is Scripting Helpers not Scripting Do It For You." I get it.
Report Abuse
LordOfTheAtoms is not online. LordOfTheAtoms
Joined: 22 Jul 2012
Total Posts: 4030
25 Nov 2013 02:19 PM
function yep(newPlayer)
if newPlayer:IsInGroup(idkurgroup) then
newPlayer.TeamColor=BrickColor.new("Navy blue")
end
end


game.Players.ChildAdded:connect(yep)
Report Abuse
CrniOrao is not online. CrniOrao
Joined: 12 Oct 2008
Total Posts: 2274
25 Nov 2013 02:22 PM
ID = "12345" --ID Of your group!

game.Players.PlayerAdded:connect(function(newPlayer)
if newPlayer:IsInGroup(ID) then
m = Instance.new("Message", Workspace")
m.Text = newPlayer.. " is a member, Welcome!"
wait(3)
m:Destroy()
else
y = Instance.new("Message", Workspace")
y.Text = newPlayer.. " is a not member, removing player."
wait(3)
newPlayer:Kick()
y:Destroy()
end
end)
Report Abuse
BruceAB12 is not online. BruceAB12
Joined: 19 Jan 2012
Total Posts: 3238
25 Nov 2013 02:26 PM
This is Scripting Helpers not Scripting Do It For You.
Report Abuse
rowerowe71 is not online. rowerowe71
Joined: 14 Apr 2013
Total Posts: 1999
25 Nov 2013 02:40 PM
lol bruce but seriously shut up
Report Abuse
rowerowe71 is not online. rowerowe71
Joined: 14 Apr 2013
Total Posts: 1999
25 Nov 2013 02:44 PM
@Crni It didn't work is there anything wrong with it?
Report Abuse
smiley599 is not online. smiley599
Joined: 23 Jan 2010
Total Posts: 21869
25 Nov 2013 02:46 PM
ID = "12345" --change this!

game.Players.PlayerAdded:connect(function(newPlayer)
if newPlayer:IsInGroup(ID) then
--code
else
newPlayer:Kick()
end
end)
Report Abuse
rowerowe71 is not online. rowerowe71
Joined: 14 Apr 2013
Total Posts: 1999
25 Nov 2013 02:50 PM
Thanks guys it works
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