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

What's the key byte code for 'ctrl'?

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 :/

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?)

1 comment

0

Thanks! that's a cool tricks too.

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)

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