Detect if a part touches another part

Continuando a discussão de Detect if a part touches another part:

Bro i think that im very very late but the real those scripts detect the player too ‘-’, use :GetTouchingParts() like this, remember its SCRIPT not local script

local part = script.Parent
while task.wait() do

local touching_parts = part:GetTouchingParts()

here will detect if the part get touch by other part

if #touching_parts ~=0 then

  local function whatwilldowhentouch()  --- function
  	 --- script
  	task.wait(0.5)
  end
  
  whatwilldowhentouch() --- run the function

end

end

if the script not work soo go to this link

:>