|
| 27 Aug 2013 05:20 PM |
| What is the most efficient way to move a player's character? Without teleporting them. |
|
|
| Report Abuse |
|
|
Bebee2
|
  |
| Joined: 17 May 2009 |
| Total Posts: 3985 |
|
|
| 27 Aug 2013 05:22 PM |
| Moving as in translating an object to one area to another or just flat out walking? Elaborate, please. |
|
|
| Report Abuse |
|
|
| |
|
|
| 27 Aug 2013 05:25 PM |
| :MoveTo() it's a method for the character. |
|
|
| Report Abuse |
|
|
|
| 27 Aug 2013 05:26 PM |
| Do I have to do anything with ControllerService? |
|
|
| Report Abuse |
|
|
|
| 27 Aug 2013 05:27 PM |
| I mean you can if you want but I wouldn't |
|
|
| Report Abuse |
|
|
magnalite
|
  |
| Joined: 18 Oct 2009 |
| Total Posts: 2467 |
|
|
| 27 Aug 2013 05:30 PM |
| :MoveTo() is what I would recommend. |
|
|
| Report Abuse |
|
|
|
| 27 Aug 2013 05:30 PM |
| The MoveTo method doesn't seem to be doing anything. Anything I have to do first? |
|
|
| Report Abuse |
|
|
Bebee2
|
  |
| Joined: 17 May 2009 |
| Total Posts: 3985 |
|
|
| 27 Aug 2013 05:32 PM |
http://wiki.roblox.com/index.php/MoveTo_(Method)/humanoid
I think they mean THIS one. |
|
|
| Report Abuse |
|
|
|
| 27 Aug 2013 05:32 PM |
| Yes, that's the one I've been trying to use. |
|
|
| Report Abuse |
|
|
magnalite
|
  |
| Joined: 18 Oct 2009 |
| Total Posts: 2467 |
|
| |
|
|
| 27 Aug 2013 06:25 PM |
| Are there any requirements I need for it to work? |
|
|
| Report Abuse |
|
|
|
| 27 Aug 2013 06:30 PM |
| You need to get the character. |
|
|
| Report Abuse |
|
|
|
| 27 Aug 2013 06:39 PM |
@Profit He doesn't want to teleport the character, he wants to force them to walk to a point. |
|
|
| Report Abuse |
|
|
| |
|
|
| 27 Aug 2013 07:26 PM |
If you want a character to walk to a point without them being able to cancel the walking, you have to use the controller service.
If you want them to walk to a point with the option to terminate, you can ignore the controller service...
If you want them to walk to a point, you need the Humanoid of the player and use the function ":MoveTo" and takes parameters "Location Vector3" and "Part/Object"
If you want them to be teleported, you can use ":MoveTo" function of the model or use the CFrame property of the Torso of the person. |
|
|
| Report Abuse |
|
|
MHebes
|
  |
| Joined: 04 Jan 2013 |
| Total Posts: 2278 |
|
|
| 27 Aug 2013 07:31 PM |
Yeah... I'm not sure why that one guy is saying you want to use MoveTo on the character. Above is correct, though. Character.Humanoid:MoveTo( Vector3 `positionToWalkTo`, BasePart `somePartSomewhereWeDontKnowWhyThisArgumentExists` )
~ Oh, I'm sorry, did I break your concentration? ~ |
|
|
| Report Abuse |
|
|
|
| 27 Aug 2013 07:36 PM |
| Yeah, I was wondering what significance the Part had... |
|
|
| Report Abuse |
|
|
MHebes
|
  |
| Joined: 04 Jan 2013 |
| Total Posts: 2278 |
|
|
| 27 Aug 2013 07:41 PM |
IDK. I've had issues with setting it to the torso of the character, so I'd suggest making it the baseplate or the part you're walking on or something.
~ Oh, I'm sorry, did I break your concentration? ~ |
|
|
| Report Abuse |
|
|
|
| 27 Aug 2013 08:06 PM |
Even after I remove the ControllerService, the MoveTo method doesn't seem to do anything on the Humanoid. The script I used to remove the ControllerService was the one from the Wiki.
http://wiki.roblox.com/index.php/Controlling_a_Player%27s_Character
Has anyone ever seen their character being controlled in a place before? |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 27 Aug 2013 08:54 PM |
A recent Roblox update broke the player CFrame teleportation. (MoveTo). You'll have to wait for roblox to backtrack the update before it works again.
Madness, as you know, is a lot like gravity, all it takes is a little push |
|
|
| Report Abuse |
|
|
|
| 27 Aug 2013 08:55 PM |
game.Workspace.Character:MoveTo(Vector3.new(X,Y,Z))
Ehh maybe? something like that. Don't try moving the Humanoid, Move the model! (Character) |
|
|
| Report Abuse |
|
|
magnalite
|
  |
| Joined: 18 Oct 2009 |
| Total Posts: 2467 |
|
|
| 27 Aug 2013 08:58 PM |
IF YOU DON'T KNOW SCRIPTING WELL DON'T TRY TO HELP AND GIVE OTHERS BAD INFORMATION!!!!
Model:MoveTo()
and
Humanoid:MoveTo()
Are two DIFFERENT methods. |
|
|
| Report Abuse |
|
|