|
| 31 Mar 2014 08:55 PM |
| Two questions, one forum post. This is for a raid-able fort, that piece of knowledge is kind of important. First up, how do I make a GUI team change so you could switch from team to team with a button? It would also have to be group sensitive so that only people in the group, say, 'ice cream' could join the group 'ice cream.' Second, how do I make a spawn group sensitive so that you only spawn there if you're in a specific group? |
|
|
| Report Abuse |
|
|
| |
|
| |
|
Goulstem
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 7177 |
|
|
| 01 Apr 2014 06:19 PM |
| Do you want it to be a chat team change or a gui team change? You said both. |
|
|
| Report Abuse |
|
|
| |
|
Goulstem
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 7177 |
|
|
| 01 Apr 2014 07:40 PM |
Hiearchy;
-ScreenGui --TextButton ---Script
In Script;
script.Parent.MouseButton1Down:connect(function() game.Players.LocalPlayer.TeamColor = BrickColor.new(script.Parent.BrickColor) end)
Make the TextButton's Color the color of the team to change to. |
|
|
| Report Abuse |
|
|
|
| 01 Apr 2014 10:13 PM |
| Did that, but don't see a GUI anywhere. |
|
|
| Report Abuse |
|
|
|
| 01 Apr 2014 10:20 PM |
| in order to see guis, textbuttons, frames, etc., you have to make sure their parent is in a ScreenGui, and the ScreenGui is in StarterGui. Also, to make sure the button is group sensitive, go on the wiki and search up Player, then find the method used to find the group ID (its a number). |
|
|
| Report Abuse |
|
|
|
| 02 Apr 2014 04:51 PM |
| That is very confusing and not really all that helpful. |
|
|
| Report Abuse |
|
|
xuefei123
|
  |
| Joined: 15 Jun 2012 |
| Total Posts: 99 |
|
| |
|