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.
I saw on the strongest battlegrounds, you can’t reset when welded to another player. I think it’ safe to assume if a game like TSB can’t figure it out then I probably can’t either.
Sorry, I just tested this out and it doesn’t seem to work.
That being said, my current workaround is to make it so that you can’t die when welded to another player (changing the resetcallback for resetting character and other ways like preventing humanoid:TakeDamage() from occuring).
I don’t know why roblox’s engine is like this, it’s super weird.