#AutoClick Function

1 messages · Page 1 of 1 (latest)

ruby escarp
#

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.

simple kestrel
#

i dont know what was the problem

#

don't use wait()
use task.wait()

#

function yields for a moment because of wait() use game.Debris:AddItem() or task.delay()

#

don't forget to use task.wait() in the loop function to avoid script exhaustion

ruby escarp