Hello guys sorry for bother (again.)
For example I want that, when you click on a button in the GUI (let's call the *"On / Off * button) That when I click on it the first time, repeat the script that I want infinitely and when I click it for second Once to the button, stop running the script that was running infinitely.
I think it's done with "While true do" loop but it does not work for me.
Any ideas? :(

1 comment
button gets clicked -> someBool = false...then your loop: while someBool = true -> will stop executing when the button is pressed