Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make the player run straight with the ability to strafe left and right?

Asked by 3 years ago

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?

0
It doesn't disable going left or right, you just haven't coded it in. Have you looked into using UserInputService? radiant_Light203 1166 — 3y

Answer this question