My stats go back to the value before buying something after i buy something and regain stat

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!
    My stats to not go back to the original value after buying and regaining a stat

  2. What is the issue? Include screenshots / videos if possible!
    My stats are broken and whenever i buy something with a stat and get that stat back, the value jumps to the value before i bought something

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I didnt see anyone with the same problem

Im a beginner developer and this is my first post by the way so some things i may not understand, but still im gonna do them

So you can see in this video


that i click the noob which gives me 5+ money, then i buy the moneyupgrade’s in the shop (They dont actually do anything as of now since i havent completely implemented the script) and then when i click the noob again it puts my money back to the original value before buying, then after that first click the next clicks give me the normal +5 money

So i want to know how to fix this

Make sure you’re not subtracting the money on a local script as it isn’t replicated to the server. You can do it server-sided through RemoteEvents
Also this topic belongs to #help-and-feedback:scripting-support, consider moving it there

okay i will test that now thanks

how do you change the topic cause im new

Edit the topic by clicking the pencil icon then you will see the category the topic belongs to, change that

I have been trying to do alot of stuff but nothing works. I dont know how remote events work

So i will try to figure out how to use remote events or u can try teaching me what to do to make the stats work

Not sure what you mean but remote events are the only way to fix this problem. All you need to do is know how to use them. If you have difficulties understanding them feel free to ask

Okay so if i learn remote events then i will be able to finish this easily?

Basically yeah. I’ve been through this before.

Ok thank you for helping me to fix this!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.