|
| 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 |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 14 Aug 2014 07:59 PM |
| Well thanks roblox! You create a new function than decaperate it right away! :D |
|
|
| Report Abuse |
|
|
|
| 14 Aug 2014 08:25 PM |
"decaperate" You mean "Decapitate"?
And this isn't new, is it? |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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
|
  |
 |
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| Joined: 03 Aug 2014 |
| Total Posts: 840 |
|
| |
|
| |
|
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 |
|
|