how would i create a npc that when it dies, summons an items that spawns on them? been trying to script this for a while now, here is my current script:
while true do
wait()
if script.Parent.Humanoid.Health == "0" then
Mod = game.ServerStorage.Lvl1Reward
clone = Mod:clone()
clone.Parent = workspace
clone.Position = CFrame.new(script.Parent.Head)
clone:MakeJoints()
script.Parent:Destroy()
end
end
The Script Doesnt Seem To Work, as it wont summon the item on the npc when it dies. If any of you guys know how to fix this, PLEASE HELP ME!

1 comment
okay, its amazing, however the script for 1. Doesnt need the if Level statements, its an npc that repspawns on death as well as the same thing. 2. for some reason the thing wont clone