Code:
function atalistalker_stealthspawn (pUnit, Event)
pUnit:FullCastSpell(42943)
end
RegisterUnitEvent (71002, 6, "atalistalker_stealthspawn")
function atalistalker_entercombat (pUnit, Event)
pUnit:SendChatMessage(BLAH, 0, "The sand around you begins to shift...")
end
RegisterUnitEvent (71002, 1, "atalistalker_entercombat")
function atalistalker_attack1 (pUnit, Event)
pUnit:FullCastSpellOnTarget(44415, pUnit:GetRandomPlayer(0))
end
RegisterUnitEvent (71002, 1, "atalistalker_attack1")
function mob_wipe(pUnit, event)
pUnit:RemoveEvents()
end
RegisterUnitEvent(71002, 2, "mob_wipe")
My problem is that when this mob spawns, it goes into stealth like it is meant to. however, you can see the mob from any distance.
I checked the spells with players and they work normally on characters. Also, I cannot get the script to when all targets are dead, it re-enters stealth. Rather, it remains unstealthed or it stays in stealth the whole fight. 
Im basiclly a LUA noob as anyone can most likely tell, however what do I need to do to fix this problem? I'd like to release a totally custom instance to mmowned once this is released on my server. Just need to get the kinks like this one out first ^^ Thanks to anyone who helps.
And a nice +Rep x2 rep.