✓ Accepted answer
There is a specific setting under StarterGui that can change the behavior of resetting the GUI on reset:
ResetPlayerGuiOnSpawn
This can be found in the properties of StarterGui as seen here: http://imgur.com/Z1EjZ3j
This value, which is set by default when a place is created, sets if the players GUI should be deleted when the player dies/resets/respawns. In this case, I think that your GUI gets cleared when the player resets the character, which causes the team change GUI to disappear. Try setting this to false, and see what happens!
Roblox Wiki page: http://wiki.roblox.com/index.php?title=API:Class/StarterGui/ResetPlayerGuiOnSpawn
After setting this, make sure that none of your scripts depend on the resetting of the GUI on death. Setting this may cause problems with these kinds of scripts.
This may or may not be what the problem is in this particular case, since this problem can be cause by other things. However, it is definitely something you should try.
1 comment
I'm summing the script and the gui are both locaqted in starter gui.