How can I use Keyboard Inputting on a gui?
I want to move the gui in the direction where I press. For example, W would be up.
I know the code would look like this.
- function onKeyPress(inputObject, gameProcessedEvent)
- if inputObject.KeyCode == Enum.KeyCode.W then
- position.GUI X + 0.01
- end
- end
- game:GetService("UserInputService").InputBegan:connect(onKeyPress)
Please help. Thank you!