Okay! So, recently I figured out (with the help of someone here on the site) how to make a shop GUI that subtracts ingame points from your player.
But, here's what I'm wondering. There's a button that will prompt you to buy an item. If you click yes, you will have bought the item, and this button will disappear, so it doesn't prompt you to buy that item anymore.
I want to make it so that this button stays gone even when you leave the game and rejoin. I think I know how to do this, but I'm not entirely sure.
The ingame points are stats that the player has, which I put in ServerScriptService- it works with number values. Should I do the same for the button that prompts you to buy the item? Like say for example, the number value of the button is 1. When the player buys the item, the button's value becomes 2 and it disappears. If the value is 2, the button will stay gone, even when you rejoin. Is that possible?
And if so, how would I handle a shop system that has tons of buttons like this? Would I have to make stats/number values for each and every one of them? Or is there an easier way to do this?
I'm not asking anyone to make a script for me, as I know how to do most of this (hopefully) but I'm wondering how I should go about it- whether or not there's an easier method, or if this is what I should do.
First make a int value inside a folder in the player, If a player buys a item make the int value's value to "1" now make a save script which saves the folder where the int value's are in, then make a local script in the gui that when a player joins it checks if the int value inside him is "1" if it is then the button will be disabled.
P.S i didn't add the script for this because you said u just asked for direction :)