Okay, so I'm making a game that you have to get from point A to Point B with obstacles inbetween.
I've tried using various ways to get the character to move forward, but I think the one I should use is the Humanoid's MovetoPoint Property.
I've successfully made a script that makes the character move to a specific point ahead in the stage, but the problem is, It wont let the character move left and right unless you tap the key multiple times quickly.
This is the script.
function a(b)
if b.Parent:findFirstChild("Humanoid") ~= nil then
local h = b.Parent:findFirstChild("Humanoid")
if h ~= nil then
while true do
h.WalkToPoint = Vector3.new(32.5, 8.3, -225.5)
wait(0.1)
end
end
end
end
script.Parent.Touched:connect(a)
