So, I need to make a donation, as in pet simulator x. That is, you donate Roebucks and get diamonds. Here’s my problem, I have a script on click to donate, and you are asked to donate coins. You donate and you get them. BUT! Why do your script thinks that the player has 0 coins, although my other local script thinks that the player has 10k (which is true), that is, the first script does not correctly count the number of coins? How to fix it?
You need to send the data from the localscript to the serverscript, probably via remotes (but remember to put some security measures in those so exploiters cant make themselves get thousands of coins easily)