Tank missile either disconnects from gun or pulls the gun with it

I have this tank, and the missile is supposed to fire from the purple part. However, if it is not welded, it will just fall off, and if I weld it, it will pull the entire tank with the missile. It works fine if I weldscript it to a plane but I can’t do that here because it would prevent the turret from turning. What do I do?
Tank breaking:


How I welded the missile to the tank

Wouldn’t that be related to script issues?

When you fire it, you could just unweld the missile from the tank.

So do something like when weld.enabled = false?

Yeah, you probably have some script that detects an event and applies some velocity or something to the missle. So add somethign similar to this in that event handler:

local weld = missle_obj:FindFirstChildOfClass('Weld')
if weld then weld:Destroy() end

For some reason, putting the weld inside of the barrel instead of the bomb worked.