Whenever I fire the weapon with this script, the weapon falls apart. It's a SBC cannon from Serious Sam (I Know, pretty serious, right? Lol) and whenever I fire it, the gun itself breaks. Anyway to rewrite it so it doesn't make the gun fall apart?
function onTouched(hit)
hit:BreakJoints()
end
connection = script.Parent.Touched:connect(onTouched)
