local A=game:GetService("\080\097\116\104\102\105\110\100\105\110\103\083\101\114\118\105\099\101")local O=game:GetService("\080\108\097\121\101\114\115")local function V(A,O)A((A==error and"\083\105\109\112\108\101\080\097\116\104 \069\114\114\111\114\058 "or"\083\105\109\112\108\101\080\097\116\104\058 ")..O)end local p={StatusType={Idle="\073\100\108\101";Active="\065\099\116\105\118\101"};ErrorType={LimitReached="\076\105\109\105\116\082\101\097\099\104\101\100";TargetUnreachable="\084\097\114\103\101\116\085\110\114\101\097\099\104\097\098\108\101";ComputationError="\067\111\109\112\117\116\097\116\105\111\110\069\114\114\111\114";AgentStuck="\065\103\101\110\116\083\116\117\099\107"}}p.__index=function(A,O)if O=="\083\116\111\112\112\101\100"and not A._humanoid then V(error,"\065\116\116\101\109\112\116 \116\111 \117\115\101 \080\097\116\104\046\083\116\111\112\112\101\100 \111\110 \097 \110\111\110-\104\117\109\097\110\111\105\100\046")end return A._events[O]and A._events[O].Event or O=="\076\097\115\116\069\114\114\111\114"and A._lastError or O=="\083\116\097\116\117\115"and A._status or p[O]end
---------------------------------------------------------------------

local PathfindingService = game:GetService("PathfindingService")
local Players = game:GetService("Players")
local function output(func, msg)
	func(((func == error and "SimplePath Error: ") or "SimplePath: ") .. msg)
end
local Path = {
	StatusType = {
		Idle = "Idle",
		Active = "Active",
	},
	ErrorType = {
		LimitReached = "LimitReached",
		TargetUnreachable = "TargetUnreachable",
		ComputationError = "ComputationError",
		AgentStuck = "AgentStuck",
	},
}
Path.__index = function(table, index)
	if index == "Stopped" and not table._humanoid then
		output(error, "Attempt to use Path.Stopped on a non-humanoid.")
	end
	return (table._events[index] and table._events[index].Event)
		or (index == "LastError" and table._lastError)
		or (index == "Status" and table._status)
		or Path[index]
end
