How to make a cps counter that doesn’t reset

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!

I am trying to make a cos counter that doesn’t reset but goes to 0 when someone stops clicking (the Minecraft one)

  1. What is the issue? Include screenshots / videos if possible!

Every cps counter that there is resets

  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
1 Like

Ok but why are there no solutions you’ve tried

1 Like

wdym? Also the link that you linked me I already tried and it resets after a second

You’ve literally put nothing after the third suggestion

Also can’t you just literally set the Click Counter to 0 after a second passes or something through a infinite loop?

local CurrentClicks = 0

GuiThing.MouseButton1Down:Connect(function()
    CurrentClicks += 1
end)

while true do
    wait(1)
    CurrentClicks = 0
end

Here’s a video showcasing what I mean

(Doesn’t need to be chroma)

This is probably the closest thing I could find?

You’d need to get the average clicks counted back every second possibly using tick(), then slowly decreasing/increasing the value depending on how much CPS there are

could you show me how the script would look

Ok attempt #2, if this isn’t what you’re looking for then idk what else to do

1 Like