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: MoveTo() with humanoid

Previous Thread :: Next Thread 
CodyTheBuildingKid is not online. CodyTheBuildingKid
Joined: 13 Dec 2011
Total Posts: 4399
25 Feb 2013 01:50 PM
13:49:30.861 - Unable to cast value to Object
13:49:30.862 - Script "Game.Workspace["CodyTheBuildingKid's Clone"].Humanoid:MoveT", Line 1
13:49:30.862 - stack end

Game.Workspace["CodyTheBuildingKid's Clone"].Humanoid:MoveTo(Game.Workspace.Terrain, Game.Workspace.Part.Position)

Never used this before, how is it supposed to be used?
Report Abuse
billybobjoeybob is not online. billybobjoeybob
Joined: 18 Dec 2008
Total Posts: 364
25 Feb 2013 01:54 PM
game.Workspace["CodyTheBuildingKid's Clone"].Humanoid:MoveTo(game.Workspace.Part.Position)

I have no clue what the whole terrain thing was about. Also, don't capitialize the g in game.Workspace
Report Abuse
CodyTheBuildingKid is not online. CodyTheBuildingKid
Joined: 13 Dec 2011
Total Posts: 4399
25 Feb 2013 01:55 PM
13:55:04.251 - Argument 2 missing or nil
13:55:04.251 - Script "game.Workspace["CodyTheBuildingKid's Clone"].Humanoid:MoveT", Line 1
13:55:04.252 - stack end

Humanoid needs a second argument.
Report Abuse
billybobjoeybob is not online. billybobjoeybob
Joined: 18 Dec 2008
Total Posts: 364
25 Feb 2013 01:57 PM
game.Workspace["CodyTheBuildingKid's Clone"].Humanoid:MoveTo(game.Workspace.Part.Position,game.Workspace.Part)
Report Abuse
CodyTheBuildingKid is not online. CodyTheBuildingKid
Joined: 13 Dec 2011
Total Posts: 4399
25 Feb 2013 01:58 PM
Ohhh, I had them backwards. Thanks
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