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
 

Is there a way to make a player walk to random Vector3s?

Previous Thread :: Next Thread 
UnequaledDonovan1 is not online. UnequaledDonovan1
Joined: 28 Oct 2012
Total Posts: 3909
04 May 2013 11:17 PM
MoveTo has to have a part
Report Abuse
Usering is not online. Usering
Joined: 18 Aug 2012
Total Posts: 10281
04 May 2013 11:32 PM
No, just make a part where the position is and put that into the arguments for the humanoid's MoveTo method.
Report Abuse
cheesecake123456 is not online. cheesecake123456
Joined: 01 Jun 2009
Total Posts: 1529
05 May 2013 03:44 AM
local p = player
local m = Instance.new("Part", Workspace)
local h = Instance.new("Humanoid", m)
m.CFrame = CFrame.new(math.random( x ), math.random( y ), math.random( z ))

p.Humanoid:MoveTo(h, m) -- Think that's right


Soup's on, everybody!
~LuaLearners Writer~
Report Abuse
UnequaledDonovan1 is not online. UnequaledDonovan1
Joined: 28 Oct 2012
Total Posts: 3909
05 May 2013 09:57 AM
This good?

walk_to = Instance.new("Part", workspace)
walk_to.Anchored = true
walk_to.Transparency = 1
walk_to.CanCollide = false
hum = game.Workspace.Something.Humanoid

while wait() do
hum:MoveTo(walk_to.Position,walk_to)
end

Report Abuse
UnequaledDonovan1 is not online. UnequaledDonovan1
Joined: 28 Oct 2012
Total Posts: 3909
05 May 2013 09:58 AM
This good?

walk_to = Instance.new("Part", workspace)
walk_to.Anchored = true
walk_to.Transparency = 1
walk_to.CanCollide = false
hum = game.Workspace.Something.Humanoid

while wait() do
walk_to.CFrame = CFrame.new(math.random(0,100000),0,math.random(0,100000))
hum:MoveTo(walk_to.Position,walk_to)
end
Report Abuse
IHaveAllDemFriends is not online. IHaveAllDemFriends
Joined: 05 Apr 2013
Total Posts: 41
05 May 2013 10:05 AM
Seems fine.
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