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 » Scripting Helpers
Home Search
 

Re: Humanoid:MoveTo not working

Previous Thread :: Next Thread 
mew903 is not online. mew903
Joined: 03 Aug 2008
Total Posts: 22071
26 Jun 2013 11:18 PM
So I have a little thing like: it's a model, with a head and a torso welded together with a Motor 6D, and in the humanoid the .Torso property is set to the torso, but Humanoid:MoveTo won't work when I try to do "humanoid:MoveTo(part.Position, part);"

Any specific reason why?

Here's the whole thing:

local minion = Instance.new('Model');
minion.Name = 'Minion';

local body = Instance.new('Part', minion);
body.Size = Vector3.new(2, 2, 2);
body.Name = 'Torso';
body:BreakJoints();

local head = Instance.new('Part', minion);
head.FormFactor = 'Custom';
head.Size = Vector3.new(0, 0, 0);
head.Name = 'Head';
head.CanCollide = false;
head.Transparency = .9;
head:BreakJoints();

local neck = Instance.new('Motor6D', body);
neck.Name = 'Neck';
neck.Part0 = body;
neck.Part1 = head;

local humanoid = Instance.new('Humanoid', minion);
humanoid.Torso = body;

body.Position = Vector3.new(0, 3, 0);
minion.Parent = Workspace;

local part = Instance.new('Part', Workspace);
part.Position = Vector3.new(20, 1, 20);

humanoid:MoveTo(part.Position, part);
Report Abuse
mew903 is not online. mew903
Joined: 03 Aug 2008
Total Posts: 22071
26 Jun 2013 11:30 PM
For scripting helpers you guys aren't much helping me.
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
26 Jun 2013 11:32 PM
I tested your script, and it seemed to have worked properly.
Report Abuse
jmr11b is not online. jmr11b
Joined: 19 Aug 2010
Total Posts: 806
26 Jun 2013 11:33 PM
Don't use MoveTo on a humanoid, try using it on the model
Report Abuse
jmr11b is not online. jmr11b
Joined: 19 Aug 2010
Total Posts: 806
26 Jun 2013 11:34 PM
Or what he said lol
Report Abuse
mew903 is not online. mew903
Joined: 03 Aug 2008
Total Posts: 22071
26 Jun 2013 11:34 PM
@Knightmare really?? It's not working where I am
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
26 Jun 2013 11:35 PM
@jmr

That would have different results.

@mew

Yeah, it moves to the part like it should.
Report Abuse
mew903 is not online. mew903
Joined: 03 Aug 2008
Total Posts: 22071
26 Jun 2013 11:37 PM
Knightmare where are you testing this?
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
26 Jun 2013 11:39 PM
Directly in Studio, not Play Solo or Start Player.
Report Abuse
mew903 is not online. mew903
Joined: 03 Aug 2008
Total Posts: 22071
26 Jun 2013 11:40 PM
This works when I run it in a localscript, I guess I'll just use that haha =)
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
26 Jun 2013 11:41 PM
I meant I haven't tested those yet, but I just did. It worked on Solo/Server as well.
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
26 Jun 2013 11:41 PM
Ha, well if it works.
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
26 Jun 2013 11:51 PM
MoveTo has a history to not work when it should. My friend had a problem the other day with it. What he did was copied everything in his game and moved it into another game and it worked.

With that being said, I hope you still don't have the same problem with Scripting Helpers not replying. I would try to shorten it to just one line that doesn't work, since the potential fix would only require one line. You would be much more likely to get someone to read it, and then help. And, like I said, no one here helped you since nothing was really wrong with the script.

~ The ATR Fishie ~
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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