Detect weld if deleted

So i am trying to make a script that detects if an weld is deleted. I dont know hot to do that, so i just ask here.

weld.Destroying:Connect(function()
    print("Weld is being dstroyed")
end)

You can detect when instances are being destroyed by using the Destroying event. For example:

local myWeld: Weld = path.to.weld

myWeld.Destroying:Once(function()
-- some code here...
   myWeld = nil
end)

The linked documentation provides a code sample & explains some of the basic functionality.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.