|
| 16 Jun 2013 09:00 PM |
I've been trying to make a humanoid walk towards a players torso:
repeat wait(1) PlayerName = script.Parent.Threats.ValueObject.Value.PlayerName PlayerM = game.Players:FindFirstChild(PlayerName.Value) script.Parent.Humanoid:MoveTo(Vector3.new(0,0,0),PlayerM.Character.Torso) until script.Parent.Humanoid.Health < 1
The script is able to find the player, so i'm guessing that the part that is wrong is this:
script.Parent.Humanoid:MoveTo(Vector3.new(0,0,0),PlayerM.Character.Torso)
The humanoid doesnt only walk towards me, it walks in a bunch of random directions. If I walk towards it, it will walk away from me, then maybe towards me, then in some other direction. If I walk left, it will walk left. It doesnt really make much sense to me. Can anyone tell me what i've done wrong? |
|
|
| Report Abuse |
|