|
| 11 Apr 2014 12:15 PM |
| I have been working with non-player enemies recently and I'm trying to use the "Move To (position, part)" function (without the spaces obviously) and for some reason I cannot get it to work. Any suggestions? |
|
|
| Report Abuse |
|
|
RoflBread
|
  |
| Joined: 18 Jun 2009 |
| Total Posts: 3803 |
|
|
| 11 Apr 2014 12:22 PM |
| You could try setting the target point property |
|
|
| Report Abuse |
|
|
| |
|
|
| 11 Apr 2014 02:14 PM |
| Doesn't work. I've messed with all of the properties. |
|
|
| Report Abuse |
|
|
|
| 11 Apr 2014 03:08 PM |
Your trying on the humanoid?
Try it on the model, except repeat.
Time = 1 --How long befor it moves a stud
repeat wait(Time) X1,X2,X3 = 5,5,5 Pos = Vector3.new(X1,X2,X3) Max = math.max(X1,X2,X3) for I = Max, 1, -1 do x,y,z = X1, X2, X3 x,y,z = x-I,y-I,z-I if x == X1 + 1 then x = X1 end if y == Y1+ 1 then y = Y1 end if z == Z1 + 1 then z = Z1 end script.Parent:MoveTo(Vector3.new(x, y, z)) end until Position == Pos
You try that, it should work |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
|
| 11 Apr 2014 08:53 PM |
and I don't SOMEBODY HELP ME PLEASE |
|
|
| Report Abuse |
|
|
|
| 11 Apr 2014 09:21 PM |
| I'm guessing nobody's responding because nobody can figure out why it's erroring, but I will still bump it |
|
|
| Report Abuse |
|
|
Bebee2
|
  |
| Joined: 17 May 2009 |
| Total Posts: 3985 |
|
|
| 11 Apr 2014 09:26 PM |
>Never posted your MoveTo script therefor have no idea what you're doing wrong in the first place. >Expects answer |
|
|
| Report Abuse |
|
|
|
| 11 Apr 2014 09:50 PM |
my filter is on, so if I posted my script it would look something like this:
local a = 1 local ######## = script.Parent.######## while wait() do if a == 1 then ################################# .. #########.Track.######.########.################.#####, 3, 0), #################..#########.Track.######.######### if script.Parent.#####.Position.# == ################# .. #########.Track.######.########.Position.# and script.Parent.#####.Position.# == ################# .. #########.Track.######.########.Position.# then a = 1 end end end |
|
|
| Report Abuse |
|
|
|
| 11 Apr 2014 09:51 PM |
brick = game.Workspace.testBrick
game.Players.PlayerAdded:connect(function(newP) if newP.Name == "kyrothehero" then newP.Character:MoveTo(Vector3.new (0,145,0) end) end
Thats an example, most likely wont work |
|
|
| Report Abuse |
|
|
|
| 11 Apr 2014 09:51 PM |
| by the way there are no errors in the output, the problem is that nothing actually happens when I run the script. |
|
|
| Report Abuse |
|
|
|
| 11 Apr 2014 09:53 PM |
at chicken;
the problem with your script is that it teleports a character. What I wanted is for it to move based on its walk speed - using the other Move To method |
|
|
| Report Abuse |
|
|
|
| 11 Apr 2014 09:54 PM |
| Tahts an EXAMPLE how you COULD use moveto |
|
|
| Report Abuse |
|
|
|
| 11 Apr 2014 09:57 PM |
| That method works fine on my character, but the problem with that is that it's a teleportation script. What I want is the move to function that moves a character towards a target position and target part based on the human's walk speed. |
|
|
| Report Abuse |
|
|
| |
|
|
| 11 Apr 2014 10:04 PM |
| Post your script using pastebin |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 11 Apr 2014 10:06 PM |
| HumanoidObject:MoveTo(point, workspace.Baseplate --[[orwhatever]]) |
|
|
| Report Abuse |
|
|
|
| 11 Apr 2014 10:25 PM |
(above) That's what I use. For some reason it doesn't give an error, nor does it work. |
|
|
| Report Abuse |
|
|
Ariophy
|
  |
| Joined: 08 Mar 2014 |
| Total Posts: 81 |
|
| |
|
|
| 11 Apr 2014 10:27 PM |
Also, I have no idea what paste bin is. (call me a noob now) |
|
|
| Report Abuse |
|
|
|
| 11 Apr 2014 10:33 PM |
pastebin . com
Paste in your code, then come back with the new URL, paste the URL and put a space before and after the . |
|
|
| Report Abuse |
|
|
| |
|