moryo7
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 5028 |
|
|
| 28 Jan 2014 06:13 PM |
script.Parent.MouseButton1Click:connect(function() local p = game.Players.LocalPlayer local m = p:GetMouse() if m.Hit ~= nil then p.Character.Humanoid:MoveTo(m.Hit.Position) end end)
When the player clicks a TextButton, it's supposed to move them to the mouse's Hit position.
✦мøяƴø子✦ |
|
|
| Report Abuse |
|
|
moryo7
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 5028 |
|
| |
|
|
| 28 Jan 2014 09:23 PM |
| p.Character.Humanoid:MoveTo(m.Hit.Position,Put A Part Here) |
|
|
| Report Abuse |
|
|
moryo7
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 5028 |
|
|
| 28 Jan 2014 09:47 PM |
script.Parent.MouseButton1Click:connect(function() local pl = game.Players.LocalPlayer local m = pl:GetMouse() if m.Hit ~= nil and m.Target ~= nil then pl.Character.Humanoid:MoveTo(m.Hit, m.Target) end end)
So now I've got this, what am I doing wrong?
|
|
|
| Report Abuse |
|
|
|
| 28 Jan 2014 10:15 PM |
| :MoveTo(m.Hit.p, m.Target) |
|
|
| Report Abuse |
|
|
moryo7
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 5028 |
|
|
| 28 Jan 2014 10:24 PM |
| still not working, getting no output. |
|
|
| Report Abuse |
|
|
|
| 28 Jan 2014 10:27 PM |
| I think all you need is p.Character:MoveTo(). Pretty sure that Humanoid is not necessary. |
|
|
| Report Abuse |
|
|
|
| 28 Jan 2014 10:28 PM |
| Ohhhh. I just looked it up, I see what you're doing. |
|
|
| Report Abuse |
|
|
moryo7
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 5028 |
|
|
| 28 Jan 2014 11:22 PM |
Still need help. qq
✦мøяƴø子✦ |
|
|
| Report Abuse |
|
|
moryo7
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 5028 |
|
| |
|
moryo7
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 5028 |
|
| |
|
moryo7
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 5028 |
|
| |
|
moryo7
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 5028 |
|
| |
|
moryo7
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 5028 |
|
|
| 29 Jan 2014 02:48 PM |
Cmon guys it's a small script, surely someone knows what's wrong.
✦мøяƴø子✦ |
|
|
| Report Abuse |
|
|
moryo7
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 5028 |
|
| |
|
moryo7
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 5028 |
|
| |
|