Hey guys! So, I tried looking on this link for a built-in function but I could not find anything (link: https://aviacreations.com/modme/scriptdocs/#). What line of code would I write to have it so the player has to hold F for 5 seconds before it allows th rest of the script to run? I know how to do it for pressing F once, but I do not know how to write it so that you have to hold F for 5 seconds. Any help with this would be much appreciated!
On a second note, how do I go about making it so that while the player is holding F , a "progress bar" appears that fills up to show you how much longer you have to hold F for?
Not sure if this will benefit anyone who may view this thread in the future, but if you are wondering how to do what I asked about as well, I did manage to write a chunk of code that basically checks to see if you are holding F every second the code runs. The "use button" is referencing whatever button you press to basically do anything (buy perks, buy weapons off the wall, etc.).
Code: NOTE: you may have to change lines of this code to adjust it to what you want the script to do and to make it work correctly with your script. If you have any questions about this chunk of code don't be afraid to ask! (: