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)