If a player dies whilst welded to a part, attempting to re-weld to it after respawning kills them

If a player dies whilst welded to a part with a WeldConstraint which is parented to the part, trying to re-weld to the same part after respawning results in death.

Here is a reproduction file. Activating the ProximityPrompt welds your character to the part. Upon resetting, when you try to activate the prompt again your character will be killed.

WeldConstraintBug.rbxl (42.0 KB)

Expected behavior

I expect to be able to use a WeldConstraint to weld a character to a part they previously died being welded to.

1 Like

Thanks for the report! We’ll follow up when we have an update for you.

4 Likes

Hello and thank you for your patience and reaching out. Our team is currently investigating the issue, thank you for the repro file it has been very helpful.

If you are interested in a work around while we investigate, if you use LowerTorso instead of Parimary then it seems to work as expected.

script.Parent.ProximityPrompt.Triggered:Connect(function(player)
	local weld = Instance.new("WeldConstraint")
	weld.Parent = script.Parent
	weld.Part0 = script.Parent
	weld.Part1 = player.Character.LowerTorso
	
	player.Character.Humanoid.Died:Once(function()
		print("Player died, disconnecting the weld...")
		weld.Part1 = nil
		weld.Enabled = false
		weld:Destroy()
	end)
end)

Thank you again for the patience and support!

2 Likes

This behaviour is still very much present (using Weld, not WeldConstraint, but I’m told they function the same). I tried the workaround but the issue persists.

Hello, would you be able to share a sample file with us so we can investigate why the work around is not working for you?

The only workaround I’ve found for now is to use AlignPosition and AlignOrientation

1 Like

I believe that there is a same issue with the Motor 6D as well.