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: Move To problem

Previous Thread :: Next Thread 
Kyrothehero is not online. Kyrothehero
Joined: 14 Aug 2012
Total Posts: 306
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 is not online. RoflBread
Joined: 18 Jun 2009
Total Posts: 3803
11 Apr 2014 12:22 PM
You could try setting the target point property
Report Abuse
Kyrothehero is not online. Kyrothehero
Joined: 14 Aug 2012
Total Posts: 306
11 Apr 2014 02:08 PM
I shall try
Report Abuse
Kyrothehero is not online. Kyrothehero
Joined: 14 Aug 2012
Total Posts: 306
11 Apr 2014 02:14 PM
Doesn't work. I've messed with all of the properties.
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
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
Kyrothehero is not online. Kyrothehero
Joined: 14 Aug 2012
Total Posts: 306
11 Apr 2014 06:07 PM
I'll try it
Report Abuse
Kyrothehero is not online. Kyrothehero
Joined: 14 Aug 2012
Total Posts: 306
11 Apr 2014 06:14 PM
and...
no
complete fail
Report Abuse
Kyrothehero is not online. Kyrothehero
Joined: 14 Aug 2012
Total Posts: 306
11 Apr 2014 08:44 PM
I think I have it
Report Abuse
Kyrothehero is not online. Kyrothehero
Joined: 14 Aug 2012
Total Posts: 306
11 Apr 2014 08:53 PM
and I don't
SOMEBODY HELP ME PLEASE
Report Abuse
Kyrothehero is not online. Kyrothehero
Joined: 14 Aug 2012
Total Posts: 306
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 is not online. 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
Kyrothehero is not online. Kyrothehero
Joined: 14 Aug 2012
Total Posts: 306
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
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
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
Kyrothehero is not online. Kyrothehero
Joined: 14 Aug 2012
Total Posts: 306
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
Kyrothehero is not online. Kyrothehero
Joined: 14 Aug 2012
Total Posts: 306
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
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
11 Apr 2014 09:54 PM
Tahts an EXAMPLE how you COULD use moveto
Report Abuse
Kyrothehero is not online. Kyrothehero
Joined: 14 Aug 2012
Total Posts: 306
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
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
11 Apr 2014 09:57 PM
Edit.
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
11 Apr 2014 10:04 PM
Post your script using pastebin
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
11 Apr 2014 10:06 PM
HumanoidObject:MoveTo(point, workspace.Baseplate --[[orwhatever]])
Report Abuse
Kyrothehero is not online. Kyrothehero
Joined: 14 Aug 2012
Total Posts: 306
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 is not online. Ariophy
Joined: 08 Mar 2014
Total Posts: 81
11 Apr 2014 10:26 PM
hi
Report Abuse
Kyrothehero is not online. Kyrothehero
Joined: 14 Aug 2012
Total Posts: 306
11 Apr 2014 10:27 PM
Also, I have no idea what paste bin is.
(call me a noob now)
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
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
Kyrothehero is not online. Kyrothehero
Joined: 14 Aug 2012
Total Posts: 306
11 Apr 2014 11:00 PM
ok
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