Why is string not changing

Hello devs. So I’m making a game and it requires 2 goals and each team scores on one goal. For example, If your teamed home the value for the players scoring goal changes to Goal1 and the same thing but Goal 2 if its team away. But non of that is happening and I don’t know why its not working.

Code:

Team gets the Players Team as an Instance. You would need to do Player.Team.Name

Could do if Player.Team == Teams.Home then too.