hi, the last thing blocking me from finishing my game is that i don't know how to have 1 block change colour when a different block is touched. for example if i have block A and block B, i want block B to change red when i touch block A. i hope someone knows how to do this. i tried doing it on my own, here is my code:
function onTouched(hit) if hit.Name=="check1" then script.Parent.BrickColor = BrickColor.new("Really Red") end end script.Parent.Touched:connect(onTouched)
i hope this was understandable, thanks from poopypigeon245.
local parta = game.Workspace.PartA; local partb = game.Workspace.PartB; parta.Touched:connect(function() partb.BrickColor = BrickColor.Red(); end)