Hello!! I'm trying to create an auto click function in my game by taking the click function and altering it a little bit so that the position of some ui is random. But, my isssue isn't in that, it's in triggering the function to start and loop. here's my code and let me know if you find anything wrong! I'm a beginner so no hate.
The first photo which is the auto click function local script is inside a piece of ui. Also I'm now realizing that maybe me changing the value in a local script might be the problem but we'll see.