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
|
  |
| 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 |
|
|
|
| 26 Jun 2013 11:32 PM |
| I tested your script, and it seemed to have worked properly. |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 19 Aug 2010 |
| Total Posts: 806 |
|
| |
|
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 |
|
|
|
| 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
|
  |
| Joined: 03 Aug 2008 |
| Total Posts: 22071 |
|
|
| 26 Jun 2013 11:37 PM |
| Knightmare where are you testing this? |
|
|
| Report Abuse |
|
|
|
| 26 Jun 2013 11:39 PM |
| Directly in Studio, not Play Solo or Start Player. |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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 |
|
|
| |
|
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 |
|
|