So, I wanted to make a simple script, in which an animation plays when you press the "Ctrl" key on your keyboard. I only had no idea how to fill this in. Does somebody know?
PS: I don't mean the script, I just mean what the key is called, with shift it's called "46" or something.
You can use this to find the keycode for the keys that are being pressed
local UserInputService = game:GetService("UserInputService") local pressedkeys = UserInputService:GetKeysPressed() print("Keys pressed:") for _, inputObject in pairs (pressedkeys) do print(inputObject.KeyCode) end
If this answers your question, just mark this as the accepted solution.