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: Question about team guis

Previous Thread :: Next Thread 
A22asin is not online. A22asin
Joined: 04 Jul 2011
Total Posts: 313
04 Aug 2011 09:04 PM
how can i make it so that certain teams see certain guis. so example: the starter weapon gui, i want that each team (2) recieve their own sty;le of gui and different weaposn for my war game. so if ur on spetnaz and u select assault then u get ak, but if ur on marines and select assault u get m16. i go tthe guis, but im not sure how to make it so that it apears only to that team.
Report Abuse
SDuke524 is not online. SDuke524
Joined: 29 Jul 2008
Total Posts: 6267
04 Aug 2011 09:08 PM
game.Players.PlayerAdded:connect(function(playa)
playa.CharacterAdded:connect(function()
if playa.TeamColor==BrickColor.new("Team Color Here") then
script.certainGui:clone().Parent=playa.PlayerGui;
elseif playa.TeamColor==BrickColor.new("Other Team Color Here") then
script.otherGui:clone().Parent=playa.PlayerGui;
end end
)
end
)
Report Abuse
A22asin is not online. A22asin
Joined: 04 Jul 2011
Total Posts: 313
05 Aug 2011 06:47 AM
2 things. is playa supposed to be player? and does my GUIs have to be in the workplace instead of starter and then it gets copied to the startergui?
Report Abuse
xvgigakid is not online. xvgigakid
Joined: 22 Jun 2008
Total Posts: 4407
05 Aug 2011 06:51 AM
@A22

Yes, Yes it is.
Report Abuse
SDuke524 is not online. SDuke524
Joined: 29 Jul 2008
Total Posts: 6267
05 Aug 2011 04:06 PM
Yes to the first one and the gui's have to go directly in the script.
Report Abuse
A22asin is not online. A22asin
Joined: 04 Jul 2011
Total Posts: 313
05 Aug 2011 06:26 PM
DOES NOT WORK
Report Abuse
Paragonbob is not online. Paragonbob
Joined: 03 Aug 2011
Total Posts: 4
05 Aug 2011 07:31 PM
No it doesn't, I tried it. Just wanted to bump this, as I have a similar issue :)
Report Abuse
SDuke524 is not online. SDuke524
Joined: 29 Jul 2008
Total Posts: 6267
05 Aug 2011 07:33 PM
you realize you have to change the name of the gui's to the ones you have...
Report Abuse
SDuke524 is not online. SDuke524
Joined: 29 Jul 2008
Total Posts: 6267
05 Aug 2011 07:33 PM
As well as the team colors.
Report Abuse
Paragonbob is not online. Paragonbob
Joined: 03 Aug 2011
Total Posts: 4
05 Aug 2011 07:52 PM
I changed it to this:

game.Players.PlayerAdded:connect
(function(playa)playa.CharacterAdded:connect(function()
if playa.TeamColor==BrickColor.new("Earth green") then
script.Green:clone().Parent=playa.PlayerGui;elseif
playa.TeamColor==BrickColor.new("Brick yellow") then
script.Tan:clone().Parent=playa.PlayerGui;
end
end)
end)

And I have to GUI's "Tan" and "Green" inside of the script, in workspace.
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