I'm trying to detect when a block is no longer being touched but the TouchEvent doesn't fire upon the part testin being deleted. I made it simple to understand by shortening the script down to the core problem.
local object = script.Parent
local testin = workspace.testin
local function deleteTestin(hit)
testin:Destroy()
end
object.Touched:Connect(deleteTestin)
local function lastTouch(hit)
print("hi")
end
testin.TouchEnded:Connect(lastTouch)

1 comment
I sent you a friends req on my account called M9F. Mind accepting?