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 » Scripters
Home Search
 

Re: MoveTo not working on my NPC?

Previous Thread :: Next Thread 
RemasteredBox is not online. RemasteredBox
Joined: 19 Jun 2016
Total Posts: 2140
21 Jul 2016 09:14 PM
human:MoveTo(torso.Position + Vector3.new(0, 0, -0.1))

Halp :(


#code print("While I may look like a cataclysmic god of the eggs from the future, I am not.")
Report Abuse
HeIIoISteaIUsernames is not online. HeIIoISteaIUsernames
Joined: 26 Oct 2012
Total Posts: 2906
21 Jul 2016 09:21 PM
shouldn't you do Vector3 before MoveTo
Report Abuse
RemasteredBox is not online. RemasteredBox
Joined: 19 Jun 2016
Total Posts: 2140
21 Jul 2016 09:29 PM
What?


#code print("While I may look like a cataclysmic god of the eggs from the future, I am not.")
Report Abuse
Titanicman882ftlong is not online. Titanicman882ftlong
Joined: 14 Aug 2012
Total Posts: 430
21 Jul 2016 09:32 PM
http://wiki.roblox.com/index.php?title=API:Class/Model/MoveTo
Report Abuse
DeepSeaLeviathan is not online. DeepSeaLeviathan
Joined: 14 Jan 2016
Total Posts: 73
21 Jul 2016 09:34 PM
What you have there works, it's just that Z value is too small. Try changing it to 5 or something.
Report Abuse
RemasteredBox is not online. RemasteredBox
Joined: 19 Jun 2016
Total Posts: 2140
21 Jul 2016 09:41 PM
Bump. Not working.


#code print("While I may look like a cataclysmic god of the eggs from the future, I am not.")
Report Abuse
DeepSeaLeviathan is not online. DeepSeaLeviathan
Joined: 14 Jan 2016
Total Posts: 73
21 Jul 2016 09:45 PM
Alright, try this out.

Human:MoveTo(Torso.Position + Vector3.new(0,0,-5))

This works for me m8
Report Abuse
HeIIoISteaIUsernames is not online. HeIIoISteaIUsernames
Joined: 26 Oct 2012
Total Posts: 2906
21 Jul 2016 09:59 PM
nvm
Report Abuse
RemasteredBox is not online. RemasteredBox
Joined: 19 Jun 2016
Total Posts: 2140
21 Jul 2016 10:00 PM
@Deep

Were talking about NPC's here.


#code print("While I may look like a cataclysmic god of the eggs from the future, I am not.")
Report Abuse
DeepSeaLeviathan is not online. DeepSeaLeviathan
Joined: 14 Jan 2016
Total Posts: 73
21 Jul 2016 10:08 PM
Should still work for NPCs

I made this and threw it into an NPC and it works fine.

local human = script.Parent.Humanoid
local torso = script.Parent.Torso
human.WalkSpeed = 20
while torso.Position.Z > -100 and wait() do
human:MoveTo(torso.Position + Vector3.new(0,0,-5))
end
Report Abuse
RemasteredBox is not online. RemasteredBox
Joined: 19 Jun 2016
Total Posts: 2140
21 Jul 2016 10:09 PM
Dude it's not working, and it's not my code. It's literally that 1 line, and I checked the logic back and forth - there's nothing wrong with it. I've encountered this many times before, too, it's on ROBLOX's end.


#code print("While I may look like a cataclysmic god of the eggs from the future, I am not.")
Report Abuse
ShikasCloud is not online. ShikasCloud
Joined: 18 Nov 2014
Total Posts: 221
21 Jul 2016 10:10 PM
Try using roblox wiki its helpful ;-;
Report Abuse
RemasteredBox is not online. RemasteredBox
Joined: 19 Jun 2016
Total Posts: 2140
21 Jul 2016 10:12 PM
Does it make a difference if I'm doing it from the client?


#code print("While I may look like a cataclysmic god of the eggs from the future, I am not.")
Report Abuse
Objectly is not online. Objectly
Joined: 18 Jul 2016
Total Posts: 210
21 Jul 2016 10:17 PM
Use MoveTo via the server.

If it's not a scripting issue, it may be the parts of your entity.
Report Abuse
RemasteredBox is not online. RemasteredBox
Joined: 19 Jun 2016
Total Posts: 2140
21 Jul 2016 10:19 PM
@Objectly

It's not the code, and it's not the model (it's from ROBLOX's assets). How can I do it from the client? It literally HAS to be. It's being used in script builder & I can only have it in 1 script, and it has to have the LocalPlayer, the Camera, and UserInputService. Is there an alternative to MoveTo?


#code print("While I may look like a cataclysmic god of the eggs from the future, I am not.")
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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