How would I move a gui by pressing on a key on the keyboard?
I know it would be something like
function onKeyPress(inputObject, gameProcessedEvent)
1. if inputObject.KeyCode == Enum.KeyCode.W then
2. Gui X + 0.01
3. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
Please help me figure it out.
Thanks