Why is this happening?

So I’m making a clicker game and I’m currently working on a rebirth button,
But when i click on the rebirth button then the button to get more clicks it gives me all the clicks that i had before back to me.

here is a pic of the script that takes adds a click when you click on the GUI

and here is a vid of what happens

Can you show whats in the rebirth script?

Specifically where it should say something like

AddClicks:FireServer()

In the first picture, I inferred that you are using a RemoteEvent inside the script. I guess the script is located in ServerScriptService. If it isn’t, let me know because I’ll go through the first option.

Clients won’t able to see what’s inside ServerScriptService. Use ReplicatedStorage instead.

In the second picture, you are trying to change the value by the client, which is incorrect to use. Add another RemoteEvent and handle as you did it in the first.

And when you equate a value, you may use this abbreviation. Instead of

Value = Value + 1

use

Value += 1

One thing I want to mention is that exploiters can easily rapidly fire AddClicks events by using loops. Make sure you secure them properly, there are alternatives you can use such as debounce, or see if the event is getting fired very fast in a short amount of time.