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: WalkToPart Example needed

Previous Thread :: Next Thread 
igunaa is not online. igunaa
Joined: 15 Sep 2010
Total Posts: 2588
10 Jul 2015 12:20 AM
I know this exists, that it is inside Humanoid, tho I don`t know how to use it.

I can handle WalkToPoint using the Character`s Position, but I can`t figure out how to use WalkToPart, since it holds a BasePart I thought of:

AI = script.Parent.Humanoid
AI.WalkToPart = game.Workspace.AIns1
wait(4)

Said the wise.
Report Abuse
KoreanBBQ is not online. KoreanBBQ
Joined: 06 Mar 2015
Total Posts: 1436
10 Jul 2015 12:23 AM
MoveTo(vector3 here) is WAY easier to use imo
Report Abuse
igunaa is not online. igunaa
Joined: 15 Sep 2010
Total Posts: 2588
10 Jul 2015 12:24 AM
@Korean ik, I`m but for you to make random enclosed walking with tables this WalkToPart works better.
Idk if I made me clear.

Said the wise
Report Abuse
KoreanBBQ is not online. KoreanBBQ
Joined: 06 Mar 2015
Total Posts: 1436
10 Jul 2015 12:27 AM
i dont know what you mean by random enclosed tables
Report Abuse
igunaa is not online. igunaa
Joined: 15 Sep 2010
Total Posts: 2588
10 Jul 2015 12:31 AM
I can have a array of parts whithin a place, I set them into a table, then I choose of of those parts at random, the AI walks from where it is to the part choosen, creating then a walking simulation only to accesible spots (a closed enviroment) in which I can stablish Parts paths if wanted.

Said the wise.
Report Abuse
KoreanBBQ is not online. KoreanBBQ
Joined: 06 Mar 2015
Total Posts: 1436
10 Jul 2015 12:32 AM
or, in case you already have your whole part table all settled up

MoveTo(part.Position)

or

make a new table with more precise Vector3

and do MoveTo(Vector3)
Report Abuse
OzzyFin is not online. OzzyFin
Joined: 07 Jun 2011
Total Posts: 3600
10 Jul 2015 12:37 AM
if that really does not work without errors you could do

hum.WalkToPoint(workspace.AIns1.Position)

never tested walktopart myself, didnt even know it was a thing
Report Abuse
OzzyFin is not online. OzzyFin
Joined: 07 Jun 2011
Total Posts: 3600
10 Jul 2015 12:38 AM
missed the = sign but you should know how to fix duh
Report Abuse
igunaa is not online. igunaa
Joined: 15 Sep 2010
Total Posts: 2588
10 Jul 2015 12:38 AM
I guess I can use WalkToPoint = Part.Position, thanks guys. I guess that WalkToPart is outdated.

Said the wise.
Report Abuse
KoreanBBQ is not online. KoreanBBQ
Joined: 06 Mar 2015
Total Posts: 1436
10 Jul 2015 12:41 AM
i suppose WalkToPart(part) == WalkToPoint(part.Position) == MoveTo(part.Position)

but MoveTo() gives more liberty because you dont need a part, same with WalkToPoint i guess

but i think theres a difference
Report Abuse
OzzyFin is not online. OzzyFin
Joined: 07 Jun 2011
Total Posts: 3600
10 Jul 2015 12:42 AM
WalkToPoint makes your character walk to the point, not teleport like MoveTo
Report Abuse
KoreanBBQ is not online. KoreanBBQ
Joined: 06 Mar 2015
Total Posts: 1436
10 Jul 2015 12:43 AM
MoveTo() walks as well e.e
Report Abuse
KoreanBBQ is not online. KoreanBBQ
Joined: 06 Mar 2015
Total Posts: 1436
10 Jul 2015 12:44 AM
MoveTo() on a Model teleports, but on a Humanoid it makes you walk.
Report Abuse
OzzyFin is not online. OzzyFin
Joined: 07 Jun 2011
Total Posts: 3600
10 Jul 2015 12:44 AM
since when

what
Report Abuse
OzzyFin is not online. OzzyFin
Joined: 07 Jun 2011
Total Posts: 3600
10 Jul 2015 12:45 AM
o didnt know

ye got ninjad last post
Report Abuse
KoreanBBQ is not online. KoreanBBQ
Joined: 06 Mar 2015
Total Posts: 1436
10 Jul 2015 12:45 AM
been using Moveto() for my pathfinding click to move
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