Ok, so I revised it to this, but The healing and monster damage thing is still happening, I have no clue what to do.
local newpos = {x = 2023, y = 2036, z = 7}
function onStatsChange(cid, attacker, type, combat, value)
if(getCreatureHealth(cid) <= value and isPlayer(cid) and...