#My code runs twice and then thrice...
23 messages · Page 1 of 1 (latest)
Here I'll give some screenshots of the issue:
and the code:
Well, while making the screenshots, I realize that in the logs it counts the numbers normally.
** You are now Level 1! **
can you show the code per chance?
maybe you could use a boolean variable to make sure it fires once..? like
local FireOnce = true
etc etc etc
and then yeet it once it fires once haha
if FireOnce then
FireOnce = false
id defo wait for a second opinion, im mostly a newbie gui scripter...
thanks anyways 👌
if you haven't figured this out, i think the issue might be wait the way MouseButton1Click is connected to the debounce function 🤔
also is there something meant to happen when it reaches 10?
((i wanted to try and help you some more haha))
@vague elm did you still need help?
Yes it could be, but is the only way that I found to link them. And also yes, a green check mark should appear when it reaches 10 (Which seems to work just fine)
Yes 😁
The main problem is, that I don't know why my function is running twice and then thrice
the code is up above
you sure ensure that each connection is made only once with your onclientevent intialization