Why do my coins reset to the original number when being changed?

Hey, so I am running into an issue where the coins do subtract whenever you purchase something, but after a second, it changes back to its original number.

A video of it happening:

I am using a remote event for the coins since I am using leaderstats.

Can somebody try figuring out why this is happening and what I need to fix it?
Thanks a lot!

Can you show the script inside of the button and leaderstats script?

This is a problem with your script, yet you have provided us with nothing

I found the reason to the problem, sorry for the inconvenience!

1 Like

Sorry I didn’t include any informational resources. The problem is fixed now, thanks for volunteering to help!

Again, sorry I didn’t include any informational resources. The problem is fixed now, thanks for volunteering to help!

You possibly had the leaderstats inside a “CharacterAdded” event as opposed to a “PlayerAdded” event.