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: Is it possible to set a walkto point without the player already clicking and going to one?

Previous Thread :: Next Thread 
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
21 Aug 2011 01:07 AM
If a player happens to click the ground, and his walkto point is moved, you can change the walkto point in humanoid, and get the player to move. if he did not click on the ground, and his walkto point is not changed, it's impossible to set a walkto point and get him to move

How can I set a working walkto point without player clicking ground and creating one?

<'eof' expected near 'end' on line 9001>
Report Abuse
superior is not online. superior
Joined: 13 Apr 2008
Total Posts: 1662
21 Aug 2011 01:10 AM
I think it's a locked property of players. You can do it with bots though, so maybe you can do it with players. Try making an ontouched script telling a player to move to a Vector3 position. ?
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
21 Aug 2011 01:11 AM
Well, it's not locked..

If the player has clicked the ground (for instance) and his walkto point is changed, if I quickly change it before he stops (gets to his destination) it will work, other than that, it doesn't.

<'eof' expected near 'end' on line 9001>
Report Abuse
TheNewScripter is not online. TheNewScripter
Joined: 02 Mar 2010
Total Posts: 2432
21 Aug 2011 01:16 AM
Humanoid:MoveTo() is basicly the same thing... It makes the Humanoid walk to the point that you set:

Humanoid:MoveTo(Vector3.new(0, 5, 0), Torso)
Report Abuse
superior is not online. superior
Joined: 13 Apr 2008
Total Posts: 1662
21 Aug 2011 01:17 AM
I see what you have to do in order to make it work. It seems as if it is a Core script... I don't think this is possible without changing it after you click. :/ But I could be wrong.
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
21 Aug 2011 01:19 AM
I've never actually heard of that.

Also, output it printing that a part is required, so it's not reading off Torso.

<'eof' expected near 'end' on line 9001>
Report Abuse
superior is not online. superior
Joined: 13 Apr 2008
Total Posts: 1662
21 Aug 2011 01:19 AM
Haha! I typed this in the command bar and I started spinning around in circles. :3 So I was wrong Nate, it is possible. I've never thought of that before.


Humanoid = workspace.Player.Humanoid Humanoid:MoveTo(Vector3.new(0, 5, 0), workspace.Player.Torso)
Report Abuse
superior is not online. superior
Joined: 13 Apr 2008
Total Posts: 1662
21 Aug 2011 01:19 AM
You have to define Torso. Sorry for double late post.
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
21 Aug 2011 01:20 AM
Ooops. Thanks!

<'eof' expected near 'end' on line 9001>
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
21 Aug 2011 01:22 AM
I don't quite see how it's usable when it only moves the player in circles.

<'eof' expected near 'end' on line 9001>
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
21 Aug 2011 01:23 AM
Oh, I see why.

<'eof' expected near 'end' on line 9001>
Report Abuse
superior is not online. superior
Joined: 13 Apr 2008
Total Posts: 1662
21 Aug 2011 01:25 AM
I changed the Vector3 into a part's position, and come to find out, the green circle finds the part, but the character moves in circles. Is this fixable?
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
21 Aug 2011 01:33 AM
Superior, it's because it's clicking the torso of the player. Make "Torso" workspace.PART (Replace PART of course.)

<'eof' expected near 'end' on line 9001>
Report Abuse
superior is not online. superior
Joined: 13 Apr 2008
Total Posts: 1662
21 Aug 2011 01:33 AM
Oh, thanks!
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
21 Aug 2011 01:41 AM
part=workspace.Part
move=20,part.y,20
while wait() do
workspace.Player.Humanoid:MoveTo(Vector3.new(move),part)
if (workspace.Player.Torso.Position-Vector3.new(move)).magnitude<5 then
break
end
end

You can use that if you want.

It doesn't allow you to move player until his destination is reached. You can also edit the magnitude.

<'eof' expected near 'end' on line 9001>
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
21 Aug 2011 01:42 AM
But I really suggest you keep at at about 5.

<'eof' expected near 'end' on line 9001>
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
21 Aug 2011 02:09 AM
parts={"Head","Torso"}
anchor=false
part=workspace.Part
move=20,part.Position.y,20
while wait() do
workspace.Player.Humanoid:MoveTo(Vector3.new(move),part)
print("MOVING")
if (workspace.Player.Torso.Position-Vector3.new(move)).magnitude<5 then
print("DESTINATION")
if anchor==true then
for i,v in pairs(parts) do
workspace.Player[v].Anchored=true
workspace.Player.Humanoid.WalkSpeed=0
end
break
else
workspace.Player.Humanoid.WalkSpeed=0
break
end
end
end
wait(5)
if anchor==true then
for i,v in pairs(parts) do
workspace.Player[v].Anchored=false
workspace.Player.Humanoid.WalkSpeed=16
end
else
workspace.Player.Humanoid.WalkSpeed=16
end


<'eof' expected near 'end' on line 9001>
Report Abuse
superior is not online. superior
Joined: 13 Apr 2008
Total Posts: 1662
21 Aug 2011 02:32 AM
Thanks. :P
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
21 Aug 2011 02:52 AM
http://www.roblox.com/Auto-Move-Player-item?id=59925914

<'eof' expected near 'end' on line 9001>
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