Multithread pathfinding

I’m trying to tell if a grid area around a character can be walked to, but I’m having issues making it run fast enough. I tried to make it run faster by multithreading it using spawn(), but that didn’t work and path:ComputeAsync just ends up spitting out a “No Path” status.

here’s code if it somehow helps



	for x = -6,6 do
					for y = -6,6 do
			
						
							local Pos = soldier.HumanoidRootPart.Position - Vector3.new(0,3,0) + Vector3.new(x*5,0,y*5)
							local Path = Main.PathFind(soldier.HumanoidRootPart.Position-Vector3.new(0,3,0),Pos,false)
							local PP = workspace.PathPart:Clone()
							PP.Parent = workspace.PathParts
							PP.Position = Pos
							if Path and #Path >= 6 and #Path <= MovementRange then
								PP.Color = Color3.fromRGB(255, 184, 3)
							elseif Path and #Path <= 5 then
								PP.Color = Color3.fromRGB(0, 255, 234)
							else
								PP:Destroy()
							end
						
						
					end
				end

Thanks in advance