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: Broken Admin gui/HR Gui clone (HELP!!)

Previous Thread :: Next Thread 
skipperguy12 is not online. skipperguy12
Joined: 09 Oct 2009
Total Posts: 955
10 Dec 2011 09:21 AM
Output: None

Script:

officername = {"epicperson03","FlameFunnyButt","TheProtoNinja","IPodrule","legolover1221","Microrobot","gromo1311","GAILxDRoPshOTz","207918","georgethe2","deltatwin3","Zartania","Andreman447","HorribleEpikness","bullrider89","redcat108","Skipper888","skipperguy12"}
sergeantname = {"d5ranger1","dookula","EpicSwordGuy","spenser6"}
captinname = {"Stackfall","Phill2002","Sman2011","Kitchen2001","BattleBlock12","BillybobAgain","Surfer4000","Noction","Actobo","Francism10","Joemario1","Jpay12","WonderfulBlackNinga","Nightblood197","Freddy69366","Alexa889"}
player = {"Player"}
adminTeam = game.Teams:findFirstChild("republic") --Change to whatever

function onEntered(newPlayer)
--Officers
for _, username in ipairs(officername) do --I used ipairs to loop through the table
if hit.Parent.Name:lower() == username:lower() then
script.officergui:Clone().Parent = newPlayer.PlayerGui
end
end
--Sergeants
for _, username2 in ipairs(sergeantname) do --I used ipairs to loop through the table
if hit.Parent.Name:lower() == username2:lower() then --checks if the toucher's name matches the current username
script.sergeantgui:Clone().Parent = newPlayer.PlayerGui
end
end
--Captins
for _, username3 in ipairs(captinname) do --I used ipairs to loop through the table
if hit.Parent.Name:lower() == username3:lower() then --checks if the toucher's name matches the current username
script.captingui:Clone().Parent = newPlayer.PlayerGui
end
end
--player
for _, username4 in ipairs(player) do --I used ipairs to loop through the table
if hit.Parent.Name:lower() == username4:lower() then --checks if the toucher's name matches the current username
script.playergui:Clone().Parent = newPlayer.PlayerGui
end
end

end

game.Players.ChildAdded:connect(onEntered)
Report Abuse
skipperguy12 is not online. skipperguy12
Joined: 09 Oct 2009
Total Posts: 955
10 Dec 2011 05:02 PM
Bump, its been like 7 hrs ....
Report Abuse
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
10 Dec 2011 05:05 PM
[ Content Deleted ]
Report Abuse
skipperguy12 is not online. skipperguy12
Joined: 09 Oct 2009
Total Posts: 955
10 Dec 2011 08:15 PM
I dont know where it doesnt work, if you read the first few lines of my post, I said: Output: None
Report Abuse
skipperguy12 is not online. skipperguy12
Joined: 09 Oct 2009
Total Posts: 955
12 Dec 2011 05:18 PM
bump
Report Abuse
phill2002 is not online. phill2002
Joined: 09 Jul 2010
Total Posts: 36
30 Mar 2012 05:16 PM
Why Is My Name In There?
Report Abuse
XSharkSword321 is not online. XSharkSword321
Joined: 04 Jun 2011
Total Posts: 1741
30 Mar 2012 05:48 PM
LOL PHILL! XD I just posted this for fun, I have no idea how to script yet. Maybe you can search other threads? They might help.
Report Abuse
phill2002 is not online. phill2002
Joined: 09 Jul 2010
Total Posts: 36
03 Apr 2012 06:48 AM
I Know How To Put My Name In Scripts But I Don't Know How To Script
Report Abuse
WhiteTrust is not online. WhiteTrust
Joined: 24 Jun 2011
Total Posts: 42
10 Jul 2012 10:24 AM
lol same here
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