Whenever a character is welded (using WeldConstraint
) to another character and one of them dies, the other one dies too.
I tried deleting the weld during the humanoid.Died
event but it doesn’t work. I honestly don’t know how to fix this.
local attachWeld = Instance.new("WeldConstraint")
attachWeld.Part0 = eChar.PrimaryPart --[[ character that is being welded (dies when
main character dies) ]]
attachWeld.Part1 = Root -- main character
attachWeld.Parent = Root
humanoid.Died:Connect(function()
attachWeld:Destroy()
end)
This is a video of what I mean:
Don’t mind the knockback, that’s just a bodyvelocity.
Does anyone know how to fix this?