Normally I would use something like this:
function Touched(hit) if hit.Anchored == true then script.Parent.Parent.Parent.Hull.Front.Value = true print("ANCHORED front") end end function TouchEnd() script.Parent.Parent.Parent.Hull.Front.Value = false print("not anchored front") end script.Parent.Touched:connect(Touched) script.Parent.TouchEnded:connect(TouchEnd)
But this only detects when any brick TOUCHES its face. Is there anyway to alter this script into saying "if it detects a anchored brick within the 5 studded bricks volume, turn front.value to true" not just the surface?
A good idea is to make a transparent block surrounding it out from 5 studs on each side that connects to the brick. Do you know what I mean?