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

Keyboard Inputting Help?

Asked by 8 years ago

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

Answer this question