I was wondering, whats the byte code for 'ctrl' or 'Control'? I read on a java forum that it's 17 but that didn't work :/
✓ ANSWER ACCEPTED
What's the key byte code for 'ctrl'?
4 answers
✓ Accepted answer
You can test yourself easily enough:
game.Players.LocalPlayer:GetMouse().KeyDown:connect(function(key) print(key,key:byte()); end);
For some reason for me it is giving 50 (which corresponds also to the 2 key for some reason?)
Ctrl is 50. In the future, if you need more byte codes, use this short script, it tells you the code of the keys you've pressed :
game.Players.LocalPlayer:GetMouse().KeyDown:connect(function(Key)
print(string.byte(Key))
end)
I think it's 17, that's what I've gotten before.
This table has helped me SOOOO much with ASCCI codes: http://www.asciitable.com/
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Thanks! that's a cool tricks too.