How to make sure the game saves and loads stats?

Right now I’m creating my Character creation scene, and I’m stuck at making sure that the game saves all the stats the character has.

These are the codes:

https://hastebin.com/xaqopaguci.cs ← This is the character creation script

https://hastebin.com/hexayidube.cs ← This is the SaveLoad script.

I use serialization as people say this is one of the best ways to create a save/load function.

Anyways, what I want is to make a function for Create Character button that actually saves the selected class they chose, and that it saves all the stats the player has, and also saves the name they chose.

Screenshot - f277cdfb2ad4eed780f2aed152fc4e71 - Gyazo ← This is how the character creation scene looks like.

It’s really difficult for me to explain what I mean by this, so if it’s not understandable, please tell me and I’ll try to explain better.

From your script it looks like you are already saving a hero, right? Maybe you just should think about saving files with different names like Warrior_Username for example, so you can search for it and load it. Is this single player or multi?

This is single player.

Also I did create a save function, but the problem is that I’m not sure if it’s actually SAVING the class and the stats.

Maybe it’s just saving the numbers, but not the actual stats behind it.

EDIT: Also each class has their own save file names, no?
And shouldn’t it do a search to see which class is currently taken?