So I have a script in a Gui that shows up for a team and when the player switches team for a reason the Gui goes away so it's only for that team and the Script is in the ScreenGui and not the frame.
---Script---
--Key--
--Adult,Kid,Pet,Teenager = The teams.
--Put the script in the ScreenGui on nothing will work
if script.ScreenGui.Frame1.TeamColor == game.Teams.Adult.TeamColor then
script.ScreenGui.Frame1.Visible = true
if script.ScreenGui.Frame1.TeamColor == game.Teams.Kid.TeamColor then
script.ScreenGui.Frame1.Visible = false
if script.ScreenGui.Frame1.TeamColor == game.Teams.Pet.TeamColor then
script.ScreenGui.Frame1.Visible = false
if script.ScreenGui.Frame1.TeamColor == game.Teenager.TeamColor then
script.ScreenGui.Frame1.Visble = false
end
end
end
end

2 comments
what a great contradiction, you got upvotes instead dude
yeah that's pretty radical