Projectile launches from last death point

Whenever a player dies, the projectile stops being launched from where they are, and instead where they were.

I’m not sure what I’m doing wrong, it seems like it should pivot to a new location whenever it’s called???

New user, please let me know if I can fix anything.

ReplicatedStorage:WaitForChild("RemoteEvent").OnServerEvent:Connect(function(player)
	
	model.PrimaryPart.Velocity = (humroot.CFrame.LookVector) * -90 + (humroot.CFrame.UpVector) * 90 --
	
	if player.Character:FindFirstChild("Hood") then
		clone.Name = "NAME"
		clone.Parent = player.Character.Head
		local clone = player.Character.Head:FindFirstChild("NAME")
		clone:Play()
		clone3.Name = "NAME3"
		clone3.Parent = player.Character.Head
		local clone3 = player.Character.Head:FindFirstChild("NAME3")
		clone3:Play()	-- sounds
		wait(.4)
		
		local modelclone = model:Clone()
		modelclone.Parent = workspace 
		modelclone:SetPrimaryPartCFrame(humroot.CFrame)
		
		modelclone:PivotTo(humroot.CFrame * CFrame.new(-2, 0.5, 2))	-- model of poncho that is thrown
		
		player.Character:FindFirstChild("Hood"):Destroy()
		player.Character.Shirt.ShirtTemplate = ponchono		-- shirt texture replace
		
		event:FireClient(player)
		
		wait(10)
		game.Workspace["PONCHO RAGDOLL"]:Destroy()
	else
		clone2.Name = "NAME2"
		clone2.Parent = player.Character.Head
		local clone2 = player.Character.Head:FindFirstChild("NAME2")
		clone2:Play()	-- sound
		wait(.2)
		local newHat = hood:Clone()
		
		player.Character.Humanoid:AddAccessory(newHat)
		player.Character.Shirt.ShirtTemplate = ponchoyes	-- shirt/hood replace
		
		event2:FireClient(player)
	end
end)

You should define the HumanoidRootPart of the player inside the RemoteEvent using the player parameter. That should fix it, also show me that humroot variable and where you got it.

Here’s the rest of the variables that are above the rest of the code. humroot is just HumanoidRootPart but with a different name, I think?

How do I define the HRP inside of the RemoteEvent?

Code
local ReplicatedStorage = game:GetService("ReplicatedStorage")

local PlayerService = game:GetService("Players")
local players = game:GetService("Players")
local player = players.LocalPlayer or players.PlayerAdded:wait()
local character = player.Character or player.CharacterAdded:wait()
local humroot = character:WaitForChild("HumanoidRootPart")

local hood = game.ServerStorage:WaitForChild("Hood")
local ponchoyes = "http://www.roblox.com/asset/?id=8360549541"
local ponchono = "http://www.roblox.com/asset/?id=2300066993"

local model = ReplicatedStorage:WaitForChild("PONCHO RAGDOLL")

local sound1 = game.ReplicatedStorage.fxfolder.poncho.wind
local sound2 = game.ReplicatedStorage.fxfolder.poncho.fumble2
local sound3 = game.ReplicatedStorage.fxfolder.poncho.fumble1
local clone1 = sound1:Clone()
local clone2 = sound2:Clone()
local clone3 = sound3:Clone()

local event = ReplicatedStorage:WaitForChild("PUTONEvent")
local event2 = ReplicatedStorage:WaitForChild("TAKEOFFEvent")