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: Help with a script.

Previous Thread :: Next Thread 
ProfasDoesScience is not online. ProfasDoesScience
Joined: 31 Jan 2013
Total Posts: 24
25 Feb 2013 11:56 AM
So there are 3 teams: White, Bright Red, and black. I need a script that the gui that I will make will only show for the Black team.
Report Abuse
Bloximity is not online. Bloximity
Joined: 27 Aug 2012
Total Posts: 9
25 Feb 2013 12:09 PM

gui = game.Lighting.GUINAME:clone()

game.Players.PlayerAdded:connect(function(newguy)
wait(1)
if newguy.TeamColor == ("Black") then
gui.parent = newguy.PlayerGui
end
end)

game.Players.PlayerAdded:connect(newguy)


Put the gui in lighting, and change the GUINAME to its name.

This isn't guarenteed to work, I put it together quickly.
Report Abuse
ProfasDoesScience is not online. ProfasDoesScience
Joined: 31 Jan 2013
Total Posts: 24
25 Feb 2013 12:30 PM
Thanks.
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