When I tested the script, it always prints “Assigning Default Data” which means that data doesn’t exist and it is overwrited. My fix doesn’t print that anymore and works perfectly (saves everything)
It’s something to do with pcalls. It sets success and errorMessage to a value, if success is true then errorMessage would be set to nil, if success is false then errorMessage would be a string telling what went wrong.
It could be why playerdata keeps being overwritten and printing it doesn’t exist, thus setting up new data for the player
Not entirely sure, maybe your mismatching different values on accident? Are you getting any error messages? Maybe you should use table.find(sessiondata[plr.UserId), “Button2”)…
idk about it but i think it is matching because when the button value changes it changes inside player leaderstats and the datastore detects the value and changes it. because if it can detect and store cash value then why it can’t store other values?
It depends on the amount of views, the video’s age, and the comments, you can’t trust youtubers completely. You can try my script and tell me if it works.
Okay this is getting a bit off topic, if you want to discuss about the video then we can do it in DMs.
By the way have you tried my code yet? Mark the code as a solution if it works