Thanks for your answer and I apologize for my late reply.
First of all, the code that I posted works, but only half of the time and only because I added your Display function to my code.
Here are the results:
If I click the first time on the button the display function shows 1000 (thats the value of the mouseTimer, declared in the Global Script).
After that the value keeps changing, depending on how fast the mouse get clicked.
Although I have to say, the numbers that are getting displayed seem a little random, because sometimes the code works (the gui gets displayed), and sometimes it doesn't work, even though I click as fast as the other times or even faster.
If I'm trying to click as fast as possible the value varies from 10 to 25 approx.
Hope my answer is clear enough for you.
Thanks in advance!
First of all, the code that I posted works, but only half of the time and only because I added your Display function to my code.
Here are the results:
If I click the first time on the button the display function shows 1000 (thats the value of the mouseTimer, declared in the Global Script).
After that the value keeps changing, depending on how fast the mouse get clicked.
Although I have to say, the numbers that are getting displayed seem a little random, because sometimes the code works (the gui gets displayed), and sometimes it doesn't work, even though I click as fast as the other times or even faster.
If I'm trying to click as fast as possible the value varies from 10 to 25 approx.
Hope my answer is clear enough for you.
Thanks in advance!