so this is for so poeple cant use auto clicker but i cant figure out where to add a wait so people cant do that
1 | function clicked() |
2 | print ( "hi" ) |
3 | end |
4 | script.Parent.Activated:Connect(clicked) |
You would make a debounce.
1 | local clickable = true |
2 | script.Parent.Activated:Connect( function () |
3 | if clickable then |
4 | clickable = false |
5 | print ( "Clicked!" ) |
6 | wait( 1 ) |
7 | clickable = true |
8 | end |
9 | end ) |
It basically waits until you can click again by adding a bool value :)