I want to figure out how to make a script that has a brick change color when it is touched by another object. I know how to do it when a character touches it, but I'm not sure what I need to change to have it happen for another object.
script.Parent.Touched:connect(function() script.Parent.BrickColor = BrickColor.new("Cyan") wait(2) script.Parent.BrickColor = BrickColor.new("Medium stone grey")
end)
This is what I have for changing it when a character touches it

3 comments
Just saying, what if the part of the character that touched it was an accessory? You would need plr.Parent.Parent, right? But you know, whatever works. :)
You would need to use FindFirstAncestorWhichIsA("Model") and then check if that model is a character of a player via GetPlayerFromCharacter (in case if there are any models that are touching the part) however I may be overcomplicating things...
I'll put your request in my answer.