Submit templates for repl.it/templates here.

← Back to all posts
HTML Clicker Template
Nixify (6)

A Simple Clicker Template

I dont know how to make money come per second
Edit: @InvisibleOne Helped Me :D

Shop;
+1 Clicks - Cost 10 Clicks
+10 Clicks - Cost 30 Clicks
+50 Clicks - Cost 100 Clicks
+100 Clicks - Cost 500 Clicks

You can add more

:D

Comments
hotnewtop
btfuss (163)

javascript:var DELAY = 0.5;var autoClickerStyleElement = document.createElement("style");autoClickerStyleElement.innerHTML="*{cursor: crosshair !important;}";document.body.appendChild(autoClickerStyleElement);function addClicker(e) {if(!e.isTrusted) {return;}if(e.target.classList.contains("auto-clicker-target")) {e.target.classList.remove("auto-clicker-target");} else {e.target.classList.add("auto-clicker-target");}document.body.removeChild(autoClickerStyleElement);document.body.removeEventListener("click", addClicker);e.preventDefault();autoClick(e.target);}function autoClick(element) {if(element.classList.contains("auto-clicker-target")) {element.click();setTimeout(function(){ autoClick(element); }, DELAY);}}document.body.addEventListener("click", addClicker, 0);

InvisibleOne (2776)

If you want to give them clicks per second, do something like this:

var clicksPerSecond = 1;

setInterval(function() {
  totalClicks += clicksPerSecond;
}, 1000);
Nixify (6)

it'll keep [email protected]
if it does, how to add a time wait?

InvisibleOne (2776)

The interval is built into that, I have it set as 1000 (one second) but you can change that number to whatever you like, and it will carry out the function that often. @Nixify