I want to make a robot that can detect their surroundings. http://prntscr.com/pbypos Here is what I want:
while true do wait()
if brick is touching player or another brick then
run my touching code
else
run my not touching code
end
end
Please help!?

1 comment
GetTouchingParts() returns all parts being touched in a function, .Touched returns parts being touched in an event..