Marinio
|
  |
| Joined: 28 Mar 2010 |
| Total Posts: 1653 |
|
|
| 26 Nov 2016 10:36 PM |
So I am trying to get an AI in movement, but when I try to test the path he will be moving, I used the following script as the first line, and its giving me error.
start = game:GetService("PathfindService"):ComputeRawPathAsync(game.Workspace.Start.Position.game.Workspace.Finish.Position,500)
for whatever reason, when I try to test the path status, it tells me error, and when I ran the game, it says "PathfindService" is not a real service.
Help? |
|
|
| Report Abuse |
|
|
|
| 26 Nov 2016 10:47 PM |
"PathfindService"
It's PathfindingService
~XlAscensionlX [Graphic Design://Scripter://Developer://] |
|
|
| Report Abuse |
|
|
Marinio
|
  |
| Joined: 28 Mar 2010 |
| Total Posts: 1653 |
|
|
| 26 Nov 2016 10:50 PM |
Ok, that seemed to work.
Do you know what I can type in the output to check if the path is a success
|
|
|
| Report Abuse |
|
|
|
| 26 Nov 2016 10:58 PM |
pathfindingService = game:GetService("PathfindingService") local path = pathfindingService:ComputeRawPathAsync(workspace.Start.Position, workspace.Finish.Position,500) print(path.Status)
~XlAscensionlX [Graphic Design://Scripter://Developer://] |
|
|
| Report Abuse |
|
|
Marinio
|
  |
| Joined: 28 Mar 2010 |
| Total Posts: 1653 |
|
| |
|
Marinio
|
  |
| Joined: 28 Mar 2010 |
| Total Posts: 1653 |
|
|
| 26 Nov 2016 11:57 PM |
for p = 1, #points do
does that make sense |
|
|
| Report Abuse |
|
|