Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I wait a certain time before a player can perform an action?

Asked by
kraigg -2
9 years ago

I made a script that creates a "fireball" and propels it forward when a player presses "q". How do I prevent the player from spamming the key by adding a wait in between each press?

Answer this question