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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 22 Jun 2008 |
| Total Posts: 4407 |
|
| |
|
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
|
  |
| Joined: 04 Jul 2011 |
| Total Posts: 313 |
|
| |
|
|
| 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
|
  |
| 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
|
  |
| Joined: 29 Jul 2008 |
| Total Posts: 6267 |
|
|
| 05 Aug 2011 07:33 PM |
| As well as the team colors. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|