local V=game:GetService("\080\097\116\104\102\105\110\100\105\110\103\083\101\114\118\105\099\101")local q=false local d={}d.__index=d function d.new(V)assert(V and V:IsA("\066\097\115\101\080\097\114\116"),"\080\097\116\104\102\105\110\100\101\114\046\110\101\119\040\082\111\111\116\080\097\114\116\041 \114\101\113\117\105\114\101\115 \097 \118\097\108\105\100 \066\097\115\101\080\097\114\116\033")local q={CurrentPath=nil,RootPart=V;Target=nil;_DrawnPath=nil}return setmetatable(q,d)end

local PathfindingService = game:GetService("PathfindingService")
local DEBUG = false

local Pathfinder = {}
Pathfinder.__index = Pathfinder

function Pathfinder.new(RootPart)
	assert(RootPart and RootPart:IsA("BasePart"), "Pathfinder.new(RootPart) requires a valid BasePart!")
	local Data = {
		CurrentPath = nil,
		RootPart = RootPart,
		Target = nil,
		_DrawnPath = nil
	}
	return setmetatable(Data, Pathfinder)
end
