How to make a rebirth thingy?

So, i got a rebirth ui already and i want when you click the rebirth button, it checks if you got 2500 clicks if you do, then you lost all your data, and the clicks double, then the rebirth price will double.

I would also like if the price of the rebirth could be on a counter, thank you!

You should add an intvalue (preferrably as leaderstat I suppose) to the player, check fi they 2500 clicks, then set their clicks to 0, add 1 to rebirths value, and everytime they click, multiply their clicks by the rebirth amount

2 Likes

do you have these stuff?

Rebirth value
Clicks value
Just wondering

Rebirth value = No
Clicks value = Yes