I tried counties times and failed to do so.
This is a local script that goes directly in the GUI! (Not the frame, but the GUI!)
while wait(0.1) do if game.Players.LocalPlayer.TeamColor == BrickColor.new("Nougat") then --Color of the team that SHOULDNT see this script.Parent:Destroy() end end