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

Controller Support Question(Limiting thumbstick to X movement only) How to?

Asked by 5 years ago

I want to restrict this to X movement alone. I just started using newer features of Roblox and gamepads are harder than I thought. I'm making a Side-scrolling fighting game like Mortal Kombat.

game:GetService("UserInputService").InputChanged:connect(function(input, processed)
    if input.UserInputType == Enum.UserInputType.Gamepad1 then
        if input.KeyCode == Enum.KeyCode.Thumbstick1 then
            character.Humanoid:Move(Vector3.new(input.Position.X, 0, -input.Position.Y), true)
        end
    end
end)
0
im PRetty sure its :MoveTo i might be wrong tacotown2 119 — 5y
0
Use the Console to see where errors are in your script Overscores 381 — 5y

Answer this question