How to save player money and items im need easy version
Remember, if you have Tier 2 or Advanced Tier, then you donât have to do this way.
Also, tell me if you have Tier 2 or Tier 5.
This isnât easy but this is the only thing I can help you.
If youâre talking about the attributes, do this;
You first have to create these variables right here.
Next try to copy these scripts.
savedData is a JSON array that stores data items in a [playerName, points] format (for example, if the value of savedData is [["player1","+5"],["player2","+10"]]
, that means player1 has 5 points saved and player2 has 10). The playersâ score is concatenated with â+â when saving to turn them into strings, since the JSON array functions only support strings and not numbers. The values are turned back into numbers when loading the data.
This system is relatively easy to make, however the data will be cleared when the game shuts down or is republished since global variables are stored on game servers.
Click the link below and watch the video on how to this.
ăModd.io Tutorial #40ăTIER 1 DATA SAVE SYSTEM | Make with me step by step - YouTube
But itâs has been broken by m0dE so this doesnât work anymore. If anyone knows how to save items using Tier 1 or Basic Tier, then help him/her on which steps to do that.
Credits to @kyle691 for making the script and the variables.
Edit: I actually forgot that you have to put the Triggers
of the scripts, so Iâm gonna replace those images today.
Iâm talking about these Triggers
:
I hear that PineappleBrain fixed the server-side program a while ago, so it is worth a try if you really want that.