I made a checkpoint brick for my game and had it so it turns green once you step on it, and red once you get off:
script.Parent.Touched:connect(function() script.Parent.BrickColor = BrickColor.new("Camo") wait (2) script.Parent.BrickColor = BrickColor.new("Maroon") end)
I was wondering how I could make it so it stays green, but is only shown to the player who stepped on it. In other words, if player 2 were to see player 1 step on it, it would stay red for player 2 until he/she stepped on it, but green for player 1. Thanks in advance!
Switch the script to a LocalScript