Create a variavle (clicks) and add it in president
In the button add this comand:
When this is tapped
Modify variable (variable) to 1 (relative)
If you want to add a multiplier, create a variable (multi) and click in president too, and in the button command, change 1 to 1*multi, *= ×
And to make a leaderboard add this simple command:
When this is created
Repeat every (the lower the timer is te beter it is) seconds:
Send (clicks or multi) to the leaderboard
Sorry if you dint understand, but i am pro in castle cuz i used ir for like more than 1 year