I’m trying to make a script where when a person dies a model spawns where they die.
At the moment, the model does spawn when the player dies but doesn’t spawn in the right place
Its currently using the SetPrimaryPartCFrame() method, I’ve previously tried changing the models Origin position but that show any results.
local char = script.Parent
local hum = char.Humanoid
local players = game.Players
local hand = game.ReplicatedStorage.Hand
local startCFrame = char.HumanoidRootPart.CFrame
hum.Died:Connect(function()
local player = players:GetPlayerFromCharacter(char)
hand:SetPrimaryPartCFrame(startCFrame)
hand:Clone().Parent = game.Workspace
end)