|
| 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
|
  |
| Joined: 07 Feb 2012 |
| Total Posts: 8540 |
|
|
| 02 Feb 2014 05:44 AM |
| Working fine for me, in play solo at least. |
|
|
| Report Abuse |
|
|
|
| 02 Feb 2014 05:55 AM |
| Hm, that's weird. I must have a conflicting script or something. Thanks! |
|
|
| Report Abuse |
|
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
|
| 02 Feb 2014 05:56 AM |
| Do you have it in a Localscript? |
|
|
| Report Abuse |
|
|
| |
|
|
| 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 |
|
|