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

Need help on keybindings?

Well, I'm trying to make a crouch animation and i want the button that triggers the animation "Alt" only problem is I don't know the value of the alt button. Could anyone tell me?

[For example shift is considered 0"

2 answers

You can find the value yourself, for any key, with this script!

local mouse = game.Players.LocalPlayer:GetMouse()

mouse.KeyDown:connect(function(key)
print(key)
end)

It's a very simple script that shouldn't need any explaining. If you do need explanation, I can add it.

EDIT: You need instructions on how to make a KeyDown event? Just use the above code and remove the print(), and add a conditional statement (if conditions then) that checks the value of the key, like if key == "0" then. Hope it helped!

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