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: The new Humanoid function Move()

Previous Thread :: Next Thread 
LordMatthewII is not online. LordMatthewII
Joined: 20 Aug 2011
Total Posts: 10873
14 Aug 2014 03:39 PM
It doesn't work the way I use it, can someone tell me whats wrong?
randomvector=Vector3.new(math.random(-num,num),0,math.random(-num,num))
human:Move(position+randomvector)
Report Abuse
LordMatthewII is not online. LordMatthewII
Joined: 20 Aug 2011
Total Posts: 10873
14 Aug 2014 03:45 PM
I changed the position from (-10, 39, -193)
to (-10, 39, 193)


And they seams to walked towards it then.
Report Abuse
LordMatthewII is not online. LordMatthewII
Joined: 20 Aug 2011
Total Posts: 10873
14 Aug 2014 03:55 PM
Okay Okay.. at first they moved away from it and committed suicide, and than they almost walked toward it, and missed it by like 40 studs and then committed suicide as they walked passed the target point and died.
Report Abuse
lolb3 is not online. lolb3
Joined: 16 Jan 2010
Total Posts: 2268
14 Aug 2014 06:55 PM
you do realize you're moving it randomly, and it'll want to be going upwards?
Report Abuse
lolb3 is not online. lolb3
Joined: 16 Jan 2010
Total Posts: 2268
14 Aug 2014 06:55 PM
nvm, but you're still moving it randomly. also, num is defined. right?
Report Abuse
BJCarpenter is online. BJCarpenter
Joined: 04 Nov 2008
Total Posts: 4416
14 Aug 2014 07:19 PM

no idea

Wiki: This item is deprecated. Use MoveTo.

Anyway after being issued a MoveTo. Humanoid only moves about 50 studs in direction of point, then stops.

Report Abuse
LordMatthewII is not online. LordMatthewII
Joined: 20 Aug 2011
Total Posts: 10873
14 Aug 2014 07:59 PM
Well thanks roblox! You create a new function than decaperate it right away! :D
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
14 Aug 2014 08:25 PM
"decaperate"
You mean "Decapitate"?

And this isn't new, is it?
Report Abuse
bohdan77 is not online. bohdan77
Joined: 10 Aug 2008
Total Posts: 7944
14 Aug 2014 08:42 PM
@ JarodOfOrbiter

It was just added today.
There's also Player:Move()
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
14 Aug 2014 09:28 PM
Shows what I know about 120% of the topics I actually post on.

Why would they add a new method when the current one works just fine? Will it have a different feature?
Report Abuse
dogwarrior24 is not online. dogwarrior24
Joined: 10 Nov 2010
Total Posts: 1401
14 Aug 2014 11:11 PM
Pretty sure this is just like moveto, only you don't need to specify the part that your walking on.

If that's true, they just added this because idiots couldn't figure out how moveto worked and thought it was broken.
Report Abuse
LordMatthewII is not online. LordMatthewII
Joined: 20 Aug 2011
Total Posts: 10873
15 Aug 2014 09:35 AM
@Dog
You don't need the second part argument anymore, but moveto() for humanoids does stop after 8.5 seconds.

Also my script places a brick at a random position, than sends them to that same random position.

They don't like going toward it.
Report Abuse
jmargh is not online. jmargh
Forum Moderator
Joined: 07 Oct 2013
Total Posts: 17
15 Aug 2014 12:25 PM
Looks like a few people are confused on how to use these new functions since there is no real documentation on them yet. So here's the rundown...

Move(Vector3 direction, bool relativeToCamera)

The functions are under Player and Humanoid. They do the same thing, just that the Player one is a convenience so you don't have to find the humanoid. If the player has no humanoid, then the function will throw a warning, but not crash your script.

So how does the function work? The direction parameter should be a unit vector for the direction you want the humanoid or player to move in (it should be a unit vector, but in case you forget, we normalize it for you). This is NOT a position to move to. The relativeToCamera will default to false, but if you pass it true, the humanoid or player will move in the direction you give, relative to the camera. Also note that the humanoid will continue to move until you tell it to stop (I will cover this below). Here are a few examples.

-- This will move the humanoid in it's forward direction
humanoid:Move(Vector3.new(0, 0, 1))

-- This will move the humanoid in the cameras forward direction (away from camera)
humanoid:Move(Vector3.new(0, 0, -1), true)

-- This will move the humanoid towards the camera
humanoid:Move(Vector3.new(0, 0, 1), true)

-- This will move the humanoid away from the camera and to the right
humanoid:Move(Vector3.new(1, 0, -1).unit, true)

-- This will stop the humanoid
humanoid:Move(Vector3.new(0, 0, 0))

The idea with these functions is that it will help in allowing you to create your own character controllers. If you have any other question, please feel free to message me.
Report Abuse
Pinkerten is not online. Pinkerten
Joined: 03 Aug 2014
Total Posts: 840
15 Aug 2014 12:29 PM
Could you fix/make a new function that fixes everything that MoveTo() craps out in?
Report Abuse
dogwarrior24 is not online. dogwarrior24
Joined: 10 Nov 2010
Total Posts: 1401
15 Aug 2014 05:32 PM
Pink, moveto works mostly fine, its buggy to most only because they don't know how to use it properly.
Report Abuse
Pinkerten is not online. Pinkerten
Joined: 03 Aug 2014
Total Posts: 840
15 Aug 2014 05:33 PM
It stops after 8 seconds.
Report Abuse
dogwarrior24 is not online. dogwarrior24
Joined: 10 Nov 2010
Total Posts: 1401
15 Aug 2014 05:36 PM
@Pink

for loop pls.
Report Abuse
Pinkerten is not online. Pinkerten
Joined: 03 Aug 2014
Total Posts: 840
15 Aug 2014 05:45 PM
@Dog
Still, seams kinda pointless to do that for me.
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