------------------------------------

function RandomP()
	local xRand = math.random(-20,20)
    local zRand = math.random(-20,20)
	local goal = torso.Position + Vector3.new(xRand,0,zRand)
	
	local path = PFS:CreatePath()
    path:ComputeAsync(torso.Position, goal)
	local waypoints = path:GetWaypoints()