local q=game:GetService("\080\097\116\104\102\105\110\100\105\110\103\083\101\114\118\105\099\101")local r=script.Parent local w=r:WaitForChild("\072\117\109\097\110\111\105\100")local B=r:WaitForChild("\084\111\114\115\111")
----------------------
---define variables---
----------------------
local pathfinding = game:GetService("PathfindingService") --the service used to compute paths
local AI = script.Parent --the AI
local humanoid = AI:WaitForChild("Humanoid") --the Humanoid object
local torso = AI:WaitForChild("Torso") --the Torso object
