I'm trying to make a script that displays the number of players who are using the NPC at the moment. The problem is, each time a user presses "cancel" instead of choosing to close the script from the menu, it screws with the counter and ends up showing more users than there really are.
What I need is to figure out how to set a variable when a player presses the "cancel" button on the menu screen. So ideally, if player presses the cancel button, it will execute my script. What is the command to perform this kind of function? Thanks in advance.
Question
GreenMagic793
Hey guys,
I'm trying to make a script that displays the number of players who are using the NPC at the moment. The problem is, each time a user presses "cancel" instead of choosing to close the script from the menu, it screws with the counter and ends up showing more users than there really are.
What I need is to figure out how to set a variable when a player presses the "cancel" button on the menu screen. So ideally, if player presses the cancel button, it will execute my script. What is the command to perform this kind of function? Thanks in advance.
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.