[Help] new to lua and need some help


#1

trying to make a /bodybag script that delete the npc when its dead, but cant get it to work can someone point me in the right direction?

https://pastebin.com/SJN6vUcw