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: Npc MoveTo() is there a way?

Previous Thread :: Next Thread 
IDKBlox is online. IDKBlox
Joined: 05 Apr 2013
Total Posts: 1304
11 Oct 2017 07:29 PM
using moveto is there a way to see if its being stop by something?

like using an npc. using MoveTo() to make it move.. and say a brick is in its say? is there a way to see that?
Report Abuse
JamSnack is not online. JamSnack
Joined: 04 Aug 2011
Total Posts: 154
11 Oct 2017 07:37 PM
You could make it display a message every time it touches a brick, if that is what you are asking
Report Abuse
IDKBlox is online. IDKBlox
Joined: 05 Apr 2013
Total Posts: 1304
11 Oct 2017 07:46 PM
That's not exactly what i'm asking but it will work thank you! lol
Report Abuse
Extuls is online. Extuls
Joined: 02 Jan 2009
Total Posts: 5557
11 Oct 2017 08:57 PM
The real question is why you're using MoveTo() to move your NPCs. Is there a reason you can't use a humanoid?
Report Abuse
cabbler is not online. cabbler
Joined: 19 Jun 2015
Total Posts: 735
11 Oct 2017 09:04 PM
raycast from the character to the target point, from torso height
Report Abuse
IDKBlox is online. IDKBlox
Joined: 05 Apr 2013
Total Posts: 1304
12 Oct 2017 02:02 AM
Extuls, what do you mean?

Honestly I never though of raycasting lol
Report Abuse
Extuls is online. Extuls
Joined: 02 Jan 2009
Total Posts: 5557
12 Oct 2017 03:13 AM
If your NPCs can use a humanoid, use one. Humanoids have functions (Move and MoveTo) for making a player/NPC walk.
Report Abuse
IDKBlox is online. IDKBlox
Joined: 05 Apr 2013
Total Posts: 1304
12 Oct 2017 12:09 PM
That's what is being use Humanoid:MoveTo()
Report Abuse
Nooctisz is not online. Nooctisz
Joined: 06 Jun 2014
Total Posts: 723
12 Oct 2017 01:09 PM
hum:MoveTo(Vector3 value)


Incipiens is hot<3
Report Abuse
Extuls is online. Extuls
Joined: 02 Jan 2009
Total Posts: 5557
12 Oct 2017 05:31 PM
In the post it wasn't very clear, and since I've never really bothered with making NPCs my first thought was the function of a model.

Anyway, I think what you might be looking for is this:

http://wiki.roblox.com/index.php?title=API:Class/PathfindingService
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