I want to make a part teleport somewhere, wait, detect if it’s touching anything, then teleport back if it is touching something. I don’t want to know what part, or parts, the part touched, I just want to know if it touched anything.
script.parent.position = vector3.new(script.parent.position.x + 137, script.parent.position.y, script.parent.position.z)
wait(0.5)
if (touching anything) then -- This is the part I don't know how to code
script.parent.position = vector3.new(script.parent.position.x - 137, script.parent.position.y, script.parent.position.z)
end