|
| 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 |
|
|
| 10 Dec 2011 05:02 PM |
| Bump, its been like 7 hrs .... |
|
|
| Report Abuse |
|
1WOOF1
|
  |
| Joined: 03 May 2009 |
| Total Posts: 20682 |
|
| |
|
| 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 |
|
| |
phill2002
|
  |
| Joined: 09 Jul 2010 |
| Total Posts: 36 |
|
| |
|
| 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
|
  |
| 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 |
|
| |