I want a script so say BlockA is Green and BlockB is Blue, BlockB then touches BlockA, BlockA turns blue.
COMMUNITY QUESTION
How do I make a script changes the colour of a brick to whatever it touches?
1 answer
function onTouched(hit)
if hit.Name == "BlockB" then
script.Parent.BrickColor = BrickColor.Blue()
end
end
script.Parent.Touched:connect(onTouched)
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
IS there a way so that if BlockA was then to change colour, BlockB would be the same?