Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to replace 'w' with the up arrow key?

I made a horse, and I could not figure out what the arrow keys were, so I put 'w' but that makes Mobile users not be able to ride the horse. Is there another way?

if Keys["w"] then

Thanks, thenasafarouk

1 comment

1

Just use Enum.KeyCode.Up with UserInputService. You should NEVER use keydown anymore, because it's deprecated.

1 answer

✓ Accepted answer

key:byte() = 17 Whenever using a arrow or a key that is not a letter, for instance, SHIFT, then you need to use their number, all keys have a number (if I remember correctly) It's important that you put key:byte() = 17 rather then Keys[17]

You can look there up on the Wiki, or by simply typing "Shift Key Number Roblox"

1 comment

0

okay so what are the code for up,down,left,right

This discussion is preserved as it was. New answers, comments, and votes are closed.