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 code of Left Control? need help with the VIrtualUser KeyDown/Up

i need help what's the key code for Left Control as when i use this game:GetService'VirtualUser':SetKeyDown("LeftControl") game:GetService'VirtualUser':SetKeyUp("LeftControl")

it say's Unsupported Key.

1 answer

✓ Accepted answer

the code for leftcontrol is

game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.LeftShift) 

u can change IsKeyDown to IsKeyUp if u need to

2 comments

0

Uh, excuse me? You said "left shift" and yet you show the key code for left control.

0

i saw that u typed left control in ur own script so i changed that in my own script, forgot to type it in the code for the key on top but u got the script

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