You see
local target = Creature(target)
if target then
addEvent(targetEffect, 100, cid)
player:teleportTo(target:getPosition())
player:setGhostMode(true)
doTargetCombatHealth(cid, target, COMBAT_PHYSICALDAMAGE, -1, -100, CONST_ME_ASSASSIN)
if targetCount == 0 then
addEvent(backOldPosition, 400...