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

How to make it if 2 keys are pressed at the same time a function triggergs?

if KeyPressed == Enum.KeyCode[Key] and KeyPressed == Enum.KeyCode[Key2]

1 answer

✓ Accepted answer

you can create a variable called holdingkey1, and then bind the InputBegan to change the variable to true, then inputEnded to change it to false. On the same InputBegan event you can check if keyPressed = Enum.KeyCode[Key2] and holdingkey1==true then

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