Weird weld behavior

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    Solve this weld behavior or find a way around this weld not properly attaching the player after death

  2. What is the issue? Include screenshots / videos if possible!
    As stated upon death my welding script doesnt operate as should


    This is after death
    image

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    Honestly not sure what to try other then that i have look but none i can find relative to my issue presented
    After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

local carryRemote = game.ReplicatedStorage.Remotes.CarryEvent
local physicsService = game:GetService("PhysicsService")

carryRemote.OnServerEvent:Connect(function(playerWhoTriggeredPrompt, CharacterOfPromptOwner)
	if playerWhoTriggeredPrompt and CharacterOfPromptOwner then
		local characterPromptTriggerer = playerWhoTriggeredPrompt.Character or playerWhoTriggeredPrompt.CharacterAdded:Wait()
		local PromptTriggererAnimator = characterPromptTriggerer.Humanoid:WaitForChild("Animator")
		
		local promptOwner = CharacterOfPromptOwner
		
		print(playerWhoTriggeredPrompt.Name, "triggered the prompt")
		print(promptOwner.Name, "owns the prompted pair")
		
	
		
		task.spawn(function()
			local weld = Instance.new("Weld", promptOwner)
			local playerTorso = playerWhoTriggeredPrompt.Character:WaitForChild("Torso")
			local promptOwnerHmrp = CharacterOfPromptOwner.HumanoidRootPart

			weld.Part0 = playerTorso
			weld.Part1 = promptOwnerHmrp
			weld.Parent = promptOwnerHmrp -- Parent the weld to the carried character's root part

			weld.C0 = playerTorso.CFrame:ToWorldSpace(CFrame.new(3, -2, -5)) * CFrame.new(0, 0, 0) -- Character weld 
			weld.C1 = CFrame.new()
			
		end)


		
		task.spawn(function()
			local animations = game.ReplicatedStorage.Animations
			for _, Animation in pairs(animations:GetChildren()) do
				if Animation:IsA("Animation") then
					local load1 = PromptTriggererAnimator:LoadAnimation(Animation)
					local load2 = promptOwner:WaitForChild("Humanoid").Animator:LoadAnimation(Animation)
					load1:Play()
					print(Animation, "LOADED ANIMATIONS")
				end
			end
		end)
	else
		-- Handle case where one or both players are nil
		warn("One or both players are nil.")
	end
end)

Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category