im very new at scripting so please tell me how to do this
You need to connect the npc died event to a function like this
local model = game.ReplicatedStorage.Model workspace.Npc.Humanoid.Died:Connect(function() model.Parent = workspace end)
this is just an example of how you could do it.