How do I make it so if you click a button it disables a barrier for only one player?

Make sure to mark a solution to avoid clutter!