This is what some guy helped me with, but it doesnt seem to work! I want to have it like: A guy is on the Bright red team, and as soon as I team him to Bright blue, the GUI needs to be gone!
for i, v in pairs (game.Players:GetPlayers()) do
if v.TeamColor == "Bright blue" then
-- If the player is in the Bright blue team
for i, obj in pairs (v:WaitForChild("PlayerGui"):GetChildren()) do
if obj:IsA("ScreenGui") then -- Just in case
obj:Destroy()
end
end
end
end

5 comments
So... where's YOUR attempt at solving the problem or at least debugging it? It's great that you're asking questions, but if you put no effort into it and have people solve every little problem you have, you're just riding off of other people's hard work.
I know, yet I tried to fix it myself, but it never really worked out, so I got to this script, and editted it, yet it doesnt seem to work on any possible way.
Let's see your tried to fix it myself and we may be able to help
This question already has an answer. https://scriptinghelpers.org/questions/17708/-