Basically, if the person's team changes to the teamcolor "Lavender" then a scoreboard GUI would be enabled, allowing them to use the scoreboard. It would have to use the changed event, but I'm not sure how exactly I'd do that. Help please?
Okay follow the instructions
TeamName = "" -- Put name of the team here (caps don't matter) -- Put this script in the Gui, and touch nothing else. Teams = game:GetService("Teams") Player = game.Players.LocalPlayer Gui = nil function TrackGui(Par,LastPar) if Par.ClassName=="PlayerGui" then Gui = LastPar else TrackGui(Par.Parent,Par) end end print("Tracking...") TrackGui(script.Parent,nil) print("Found the Gui! ("..Gui.Name..")") if #Teams:GetChildren()>0 then for num,team in pairs(Teams:GetChildren()) do if string.lower(team.Name)==string.lower(TeamName) then if team.TeamColor~=Player.TeamColor then script.Parent:remove() end end end end -- duckyo01
Remember paste this into a localscript then add the script to the gui you want.