I have 2 CFramed parts. One moving left and right repeatedly, and another that shoots upward whenever space is pressed (a clone gets created). My problem is when the part that shoots upward hits the other part (moving left and right) both parts are meant to be destroyed. Heres my script


local magnitude1 = (workspace.rubber.Position).magnitude --Stores magnitude of rubber
local magnitude2 = (workspace:WaitForChild("shootingPencil").Position).magnitude-- Stores magnitude of pencil

print(magnitude1) -- Prints both magnitudes to make sure everythings ok
print(magnitude2)


if magnitude1 == --not sure what goes here and magnitude2 == --not sure what goes here  then
	workspace.rubbber:Destroy()
	workspace:WaitForChild("shootingPencil"):Destroy()
else 
	return nil
end