-Intro-
Hello, I’ve been working on a new prototype for a game. It’s similar to those simulator games already out there, I just wanted to see what I could do with my scripting knowledge.
Here is the progress from last night:
https://gyazo.com/73c9f09c1f1d4b83dcad3cce2a0c3f61
I’ve already scripted a datastore, rebirth system, and the coin system (using a tool)
-Problem-
After I realized that I totally forgot about the Backpack system, I knew it was just be a few script changes.
I change the scripts of the Tool + ButtonSystem to correspond with, backpack_value(current amount in backpack), backpack_storage(total amount of backpack space) + tool_Damage.
I created a new datastore to save these playerstats, and everything was going fine. But now nothing work, when I click nothing happens, and my UI doesn’t change.
I’m not getting an error so I have no clue what is wrong.
Update: I’ve tried to change the Datastore, I placed the folder + all the values already made inside the script, and just copied into player. Same problem.
I’m not realizing that it’s only saving about 1/2 the values, I think my scripts are fine, it’s just that it only loads about 1/2 of the data.
-Scripts-
Here are all the scripts:
https://gyazo.com/3f3616ea3f82039201b1b2650ba132d0
^^The localscript inside my tool
https://gyazo.com/7f424835725e829b47497b42c4a7289f
^^ This is the localscript inside of my UI textlabel, I wouldn’t include this but for some reason instead of displaying something like 0/25 it displays 0/0, I check the playerstats while in game and it says it should be 0/25 but it’s not working.
https://gyazo.com/06c3449eaf01853c025c46c88b2949a9
^^ The script in serverscriptservice that handles the toolclicking
Hopefully you guys can help me, I really wish to continue working on this game.