I have this code and it works but it disables going left or right.
game:GetService("RunService").RenderStepped:Connect(function()
humanoid:Move(Vector3.new(0,0,-1), true)
end)
I want to be able to go left and right too, and not just traight. Is there a better way of doing this?

1 comment
It doesn't disable going left or right, you just haven't coded it in. Have you looked into using UserInputService?