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

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

Asked by 8 years ago

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
Just use Enum.KeyCode.Up with UserInputService. You should NEVER use keydown anymore, because it's deprecated. Perci1 4988 — 8y

1 answer

Log in to vote
0
Answered by
Async_io 908 Moderation Voter
8 years ago

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() = 17rather then Keys[17]

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

0
okay so what are the code for up,down,left,right thenasafarouk 25 — 8y
Ad

Answer this question