#✅ | Open GUI when i press a specific key

1 messages · Page 1 of 1 (latest)

lapis saffron
#

Hey i'm trying to find a way to open a GUI when player presses a specific key, but in the listeners i only see a generic "key press" feature, is there a way to do that ?
Thanks by advance

neon lanternBOT
# lapis saffron Hey i'm trying to find a way to open a GUI when player presses a specific key, b...

Yes 🙂 You can do it with the On Keyboard Key Pressed listener, then add a key requirement inside its action script.

How to set it up:

  1. Go to Customization -> Manage Listeners
  2. Create an On Keyboard Key Pressed listener
  3. Add an IF statement with an Is Key Pressed requirement
  4. Put the Open Screen or Custom GUI action inside that IF block

So the listener catches all key presses, and the requirement filters it down to the exact key you want.

If you want, I can also show you a quick example setup for a specific key like K or F8

#

✅ | Open GUI when i press a specific key

#
Thread Marked as Solved

This support thread has been marked as solved by @lapis saffron.

The AI helper is now disabled, but you can still continue the conversation if needed. Thank you for using our support system!

lapis saffron
#

Is there also a way to add a condition if a GUI is active ?