local x=nil local B=nil local t=nil local W=0 local w=0 local R=nil local l=nil local K=false local r=0

local target = nil
local newTarget = nil
local newTargetDistance = nil
local searchIndex = 0
local timeSearchEnded = 0
local searchRegion = nil
local searchParts = nil
local movingToAttack = false
local lastAttackTime = 0
