How do I make a kill block that kill NPCs but not players?

Currently, I cannot figure this out. Help appreciated.

2 Likes

Just check if the part that hits the kill block is a player or not.

killBlock.TouchedLConnect(function(hit)
    if game.Players:GetPlayerFromCharacter(hit.Parent) then
        return -- it is a player.
    else
        -- do stuffs because its an npc.
    end
end)
6 Likes