• Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Addons:
Skript-NPC
Tested skript: Skript 2.2 dev36


Code:
on death of player:
    set death message to ""
    victim is a player
    create npc named "%victim%" with type player at location of victim

    make last created npc sleep
 
    set {%victim%} to id of last created npc
 
    wait 8 seconds
    execute console command "/npc sel %victim%"
    execute console command "/npc remove"