So I’m trying to learn about save data and how to implement different variables but I’m not sure how to write the coding for it. I followed a tutorial to create a coin system but I don’t know how to write it into my playerdata script so that it gets included in my save. Can anyone point me in the right direction here?
these are my working save/load scripts
PlayerData - https://pastebin.pl/view/13e6c12c
Player - https://pastebin.pl/view/c9bebb74
& this is the Coin data that I would like to add as a saveable function
CoinScript - https://pastebin.pl/view/a2b4e30a
GameHandler - https://pastebin.pl/view/d4fa1ff8
thankyouuu!