1 | local player = game.Players.LocalPlayer |
2 | local playerGui = player:WaitForChild( "PlayerGui" ) |
4 | if script.Parent.Parent.TeamColor = BrickColor.new( "New yeller" ) |
7 | script.Parent.ScreenGui.Scores.Main.Visible = false |
I'd like to notice that you did wait for playerGUi, but also that you did not use the variable. If you are not gonna use a variable then do not use it. Yet, since you did use it. The script should work if main is infact a scrolling frame, otherwise it will not work no matter how much code ya do, because screen gui does not have any properties to really play with.