generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Quick Scripting Question

Previous Thread :: Next Thread 
Marinio is online. 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
XlAscensionlX is not online. XlAscensionlX
Joined: 17 Apr 2014
Total Posts: 872
26 Nov 2016 10:47 PM
"PathfindService"

It's PathfindingService


~XlAscensionlX [Graphic Design://Scripter://Developer://]
Report Abuse
Marinio is online. 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
XlAscensionlX is not online. XlAscensionlX
Joined: 17 Apr 2014
Total Posts: 872
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 is online. Marinio
Joined: 28 Mar 2010
Total Posts: 1653
26 Nov 2016 11:39 PM
omg thank you so much
Report Abuse
Marinio is online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image