|
| 05 Aug 2012 05:15 PM |
I was going to make a 2 team game, but I want people on one team to have different tools than those on the other team (tools obtainable through the GUI). How would I make a team-only GUI?
-hail aleksandres the gratski |
|
|
| Report Abuse |
|
|
|
| 05 Aug 2012 05:37 PM |
local player = game.Players.LocalPlayer function onEntered() if player.TeamColor == ("Really red") then player.PlayerGui.ScreenGui.Frame.Visible = true elseif player.TeamColor == ("Really blue") then player.PlayerGui.ScreenGui.Frame.Visible = false end
script.Parent.PlayeEntered:connect(onEntered)
I think this would work as a LocalScript in the Workspace. idk. |
|
|
| Report Abuse |
|
|
|
| 05 Aug 2012 05:47 PM |
Okay. Should I replace ScreenGui with my Gui's name?
-hail aleksandres the gratski |
|
|
| Report Abuse |
|
|
Dr01d3k4
|
  |
| Joined: 11 Oct 2007 |
| Total Posts: 17916 |
|
|
| 05 Aug 2012 05:49 PM |
| Green's script won't work, but he's on the right lines - you need to check the TeamColor property of the player and based on that, show them a different gui. |
|
|
| Report Abuse |
|
|
|
| 05 Aug 2012 05:51 PM |
| I knew I was wrong somehow, but yeah basic idea, check TeamColor and then show GUIs based on that. |
|
|
| Report Abuse |
|
|