I'm still relatively new to scripting but I have a basic understanding and I was curious if there was a way to check if a condition is true then have a click detector automatically activate on a loop.
COMMUNITY QUESTION
Is there a way to have an automatic click detector?
1 answer
Or you can just not have a click detector and just use a loop.
while true do
--code here be sure to add a wait() or some sort in case it lags
end
This discussion is preserved as it was. New answers, comments, and votes are closed.

6 comments
I want it to be a click detector until a statement is true though
why do you want it to be a click detector??
I'm trying to make a clicker game but i want the player to be able to purchase something to make it automatic
then use a while loop.
just keep adding the value, the clickdetector thing doesn't really have relevancy to it
I'll give it a shot, thanks for the suggestion