So im trying to use your script now static, but i cant get it to work, i will post what it looks like currently :
function onThink(interval)
local centerpos = {x = 32395, y = 32194, z = 7}
local monsterCount = 0
local specs = getSpectators(centerpos, 7, 7)
if #specs > 0 then
for i = 1...