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: Humanoid:MoveTo() doesn't fully move to objetive

Previous Thread :: Next Thread 
SimpleSet is online. SimpleSet
Joined: 25 Feb 2017
Total Posts: 165
22 Nov 2017 11:15 PM
local npc = game:GetService("ReplicatedStorage").SpawnNPCs.NPC:Clone()
npc.Parent = game.Workspace
npc.Humanoid:MoveTo(Vector3.new(-81.574, 46.2, -1124.977))
npc.Humanoid.WalkSpeed = 16
npc.Humanoid.MoveToFinished:connect(function()
print'aye'
end)

It doesn't fully move to the location I gave it, it just ends around 3/4th's of the way, and fires MoveToFinished. Any ideas?
Report Abuse
Rovert_Entertainment is not online. Rovert_Entertainment
Joined: 21 Dec 2012
Total Posts: 1006
22 Nov 2017 11:20 PM
i had same problem, idk why happens. I await the answer with you
Report Abuse
SimpleSet is online. SimpleSet
Joined: 25 Feb 2017
Total Posts: 165
24 Nov 2017 01:36 AM
I am loving all of this help.
Report Abuse
FrogNinjaX is online. FrogNinjaX
Joined: 27 Nov 2010
Total Posts: 79
24 Nov 2017 01:46 AM
Not sure why that is not working but I use this for teleporting and it works:
Player.Character.UpperTorso.CFrame = BrickYouTeleportTo.CFrame + Vector3.new(0,5,0) (Add 5 to height so you don't get stuck in the ground)
Report Abuse
128Gigabytes is not online. 128Gigabytes
Joined: 17 Apr 2014
Total Posts: 3616
24 Nov 2017 01:53 AM
This actually isn't an error its just a crappy design choice by roblox, the humanoidInstance.MoveTo function times out after a set amount of time (I do not know the exact time limit, it may be relative to the distance. It is not documented on the wiki from what I can see but is a known issue.)

The easiest way to work around this is actually with the humanoidInstance.MoveToFinished event, because it actually passes a bool to tell you if you humanoid reached its destination.

humanoidInstance.MoveToFinished:connect(function(reachedDestination)
if (not reachedDestination) then
--[[Continue moving your humanoid.]]
end
return (nil);
end)
Report Abuse
SimpleSet is online. SimpleSet
Joined: 25 Feb 2017
Total Posts: 165
24 Nov 2017 06:40 PM
Thank you! Wish they didn't do that time out, but thank for the help.
Report Abuse
Pyracel is not online. Pyracel
Joined: 21 Jul 2013
Total Posts: 3207
24 Nov 2017 06:42 PM
Hey kid, don't just expect people to throw answers at you left and right.

We only give you the answers out of the kindness our heart, we aren't getting paid to tell you or anything.
Report Abuse
SimpleSet is online. SimpleSet
Joined: 25 Feb 2017
Total Posts: 165
24 Nov 2017 07:39 PM
Okay, for starters, don't call people you don't know a "kid". Second, all I did was thank him. All your comment did was waste your time, so don't reply if it isn't helpful.
Report Abuse
Pyracel is not online. Pyracel
Joined: 21 Jul 2013
Total Posts: 3207
24 Nov 2017 08:32 PM
Lmao are you actually mad I called you kid. Pathetic.

"I am loving all of this help."

I'm trying to stop you from having a crap attitude, so I think it was well worth my time.
Report Abuse
SimpleSet is online. SimpleSet
Joined: 25 Feb 2017
Total Posts: 165
24 Nov 2017 08:44 PM
1. That anger you suggested from calling me a kid would surely demonstrate your immaturity and thus implying your chances of being a kid as high.
2. Fixing a "crap" attitude with another "crap" attitude tends not to go well, and I don't think it takes a genius to know that.
Report Abuse
Tynezz is not online. Tynezz
Joined: 28 Apr 2014
Total Posts: 4945
24 Nov 2017 08:45 PM
"Lmao are you actually mad I called you kid. Pathetic.

"I am loving all of this help."

I'm trying to stop you from having a crap attitude, so I think it was well worth my time."

whats ur problem? op is fine, he just thanked the dude for help chill
Report Abuse
Pyracel is not online. Pyracel
Joined: 21 Jul 2013
Total Posts: 3207
24 Nov 2017 09:58 PM
Again, you relentlessly show how pathetic you are. Even more so than I originally thought.

The fact that you weren't offended by the idea that I called you kid in a demoralizing way, but because it implied you were actually a child is hilarious. Then the bit where you tried to turn it around on me saying I was a kid. I don't really find it insulting that I'm in my teens, but apparently you do.

Don't be cocky.
Quit fighting fire with fire.




Report Abuse
SimpleSet is online. SimpleSet
Joined: 25 Feb 2017
Total Posts: 165
24 Nov 2017 10:03 PM
"That anger you suggested from calling me a kid would surely demonstrate your immaturity and thus implying your chances of being a kid as high." Within this sentence, please find me the anger I have. "And the bit where you tried to call me a kid" - This sentence is almost the peak of hypocritical if you are saying that you can call me a kid and expect me to get angry from such a unintelligent attempt of an insult, then you call it hilarious and say you find the no offense when I simply say you have a higher chance of being a child (which I never even directly said you are in fact a child).
Report Abuse
rly_gud is not online. rly_gud
Joined: 15 Jun 2014
Total Posts: 220
24 Nov 2017 10:31 PM
ok chill man he is just try 2 be edgy its not worth it
Report Abuse
SimpleSet is online. SimpleSet
Joined: 25 Feb 2017
Total Posts: 165
24 Nov 2017 10:38 PM
I am perfectly calm, but I do find it rude that you would interrupt an argument and simply tell me to "chill". I think you should keep to posts that actually mean something.
Report Abuse
Pyracel is not online. Pyracel
Joined: 21 Jul 2013
Total Posts: 3207
24 Nov 2017 11:16 PM
got eem
Report Abuse
Pyracel is not online. Pyracel
Joined: 21 Jul 2013
Total Posts: 3207
24 Nov 2017 11:17 PM
By the way good way with words, highly implying that I was, but not saying the words, only to backfire it on me when I tried to say that you did say the words exactly.

I respect that.
Report Abuse
cowsoncows is not online. cowsoncows
Joined: 11 Oct 2013
Total Posts: 2522
24 Nov 2017 11:19 PM
This thread took a wild turn
Report Abuse
SimpleSet is online. SimpleSet
Joined: 25 Feb 2017
Total Posts: 165
25 Nov 2017 12:33 AM
I'm highly confused.
Report Abuse
Pyracel is not online. Pyracel
Joined: 21 Jul 2013
Total Posts: 3207
25 Nov 2017 12:44 AM
Same, whats going on.
Report Abuse
128Gigabytes is not online. 128Gigabytes
Joined: 17 Apr 2014
Total Posts: 3616
25 Nov 2017 12:47 AM
me right now (not really me)
https://www.youtube.com/watch?v=ONClz0jJpNw
Report Abuse
Pyracel is not online. Pyracel
Joined: 21 Jul 2013
Total Posts: 3207
25 Nov 2017 10:09 AM
It was serious at first, but once we crossed into the petty zone with his first reply, I can't help myself but go on. It's like a game to me more than a serious fight. Who can outsmart who with words. I thought I had determined my final strike, but I realized that he had set up a trap for me without me even realizing it. Thats why I give my respect.


Also he roasted that one guy even though he was defending him, savage.
Report Abuse
rly_gud is not online. rly_gud
Joined: 15 Jun 2014
Total Posts: 220
25 Nov 2017 06:35 PM
:(
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