How do I clone a model into a position of a Part/Another Model?

So, I got this little guy right here, upon death he does X stuff.
However, I want it so a model from ServerStorage is cloned on his position to swap him out for a fresh new guy, once he dies.
Since what I want to clone is a model, I have no idea how to do it.
As I have very little or rather zero to none experience in scripting, explaining what X Function will do is favorable.

local clonedmodel = ModelLocation:clone() --Replace ModelLocation
clonedmodel.Parent = game:GetService("Workspace")
clonedmodel:PivotTo(PartLocation.CFrame) --Replace PartLocation

You can put that in a function bound to the NPCs humanoid Died event.

NPCHumanoid.Died:connect(function()
--Code here
end)
2 Likes

Oh hey, it works

one small issue tho-

It teleports to the other model, since both of your models are named the same correct?

1 Like

I’m using the good old script.Parent
yet, it reffers to the other guy for some reason

1 Like

Thank you so much for your help, it works!

2 Likes