I want to make a gui go in a direction when I press a certain key. For example, W is up. I think the code should look like this, but I don't know how to get it to work.
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 answer. Thanks!