|
| 18 Oct 2015 03:53 AM |
So, I have a gui on my place that allows the player to pick a team by pressing a TextButton. When they pick the team, the player is killed and respawns on that team's spawn. But, when they respawn on said team's spawn, the Spawn GUI that shows up initially when you join the game is still on their screen.
Basically what I'm asking is, how I make the Team picker GUI not show up for a certain team after they have already picked that team and respawned as it.
Thank you! :D |
|
|
| Report Abuse |
|
|
| |
|
|
| 18 Oct 2015 04:15 AM |
| ^ Describe what a boolean Is? |
|
|
| Report Abuse |
|
|
|
| 18 Oct 2015 04:18 AM |
Update: So, I have this:
if game.Players.LocalPlayer.TeamColor("Bright red")then do game.StarterGui.Teampicker:Destroy() end end
this script is parented by Workspace in a LocalScript
Teampicker is the name of the ScreenGui that you get when you spawn.
Bright red is the Color of the team I want the GUI to not appear on upon spawning.
Help please? |
|
|
| Report Abuse |
|
|
|
| 18 Oct 2015 04:55 AM |
| Boolean is yes or no. It is true or false. It is up or down. It is left or right. It is your mom or your dad. It is... science. |
|
|
| Report Abuse |
|
|
|
| 18 Oct 2015 04:59 AM |
Mainly true or false though
✗ ʙᴀᴢɪɴɢᴀ |
|
|
| Report Abuse |
|
|
|
| 18 Oct 2015 05:13 AM |
| Okay, thanks for showing me that. But how would I use that in this situation? |
|
|
| Report Abuse |
|
|
|
| 18 Oct 2015 05:15 AM |
local yes = false
if(yes)then do_kinky_stuff() end |
|
|
| Report Abuse |
|
|
|
| 18 Oct 2015 05:18 AM |
I don't think you understand what i'm trying to say.
I just need the ScreenGui to disappear once someone has chosen their team. How do I do that using boolean? |
|
|
| Report Abuse |
|
|
|
| 18 Oct 2015 05:40 AM |
Nevermind. I found the issue. This thread can be buried now.
Thank you guys. |
|
|
| Report Abuse |
|
|