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: Humanoid:MoveTo not working

Previous Thread :: Next Thread 
galisprayo is not online. galisprayo
Joined: 20 Jan 2008
Total Posts: 3271
02 Feb 2014 04:43 AM
Hi everyone. I'm trying to make a player walk to where they click using this script:

local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
mouse.Button1Down:connect(function()
if mouse.Target then
player.Character.Humanoid:MoveTo(mouse.hit.p,mouse.target)
end
end)

And even though properties change inside the Humanoid like they should, the player doesn't walk at all.

What am I doing wrong?

Thanks!
Report Abuse
DataStore is not online. DataStore
Joined: 07 Feb 2012
Total Posts: 8540
02 Feb 2014 05:44 AM
Working fine for me, in play solo at least.
Report Abuse
galisprayo is not online. galisprayo
Joined: 20 Jan 2008
Total Posts: 3271
02 Feb 2014 05:55 AM
Hm, that's weird. I must have a conflicting script or something. Thanks!
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
02 Feb 2014 05:56 AM
Do you have it in a Localscript?
Report Abuse
galisprayo is not online. galisprayo
Joined: 20 Jan 2008
Total Posts: 3271
02 Feb 2014 05:57 AM
Yeah, in StarterPack
Report Abuse
galisprayo is not online. galisprayo
Joined: 20 Jan 2008
Total Posts: 3271
02 Feb 2014 06:00 AM
Restarted Studio, and it magically started working. I have no idea what I did, but hey, it works! :)
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