-- LUA Script - precede every function and global member with lowercase name of script + '_main' -- Default script - does nothing. function aicoinmario_init(e) end function aicoinmario_main(e) RotateToPlayer(e) PlayerDist = GetPlayerDistance(e) if PlayerDist < 50 then g_points = g_points + 1 Destroy(e) end end