I have this but how would I make it so once the player isn't touching the brick I could make it reset back to its original color?
function onTouched(hit) script.Parent.BrickColor = BrickColor.new("Really red") end script.Parent.Touched:connect(onTouched)
This question is so easy to answer that it's TOUCHING my heart.
The TouchEnded
event fires when, obviously stop touching a Part
So we can use that to make it return to it's original colour.
part.Touched:connect(function(hit) part.BrickColor = BrickColor.new("Colour") end) part.TouchEnded:connect(function(hit) part.BrickColor = BrickColor.new("Colour") end)