Whenever i try to load the player’s ability, i keep getting this error, i created a testing data store to check if this would fix the issue but it didn’t help.
Are any errors/warns appearing in the developer console? Also, if you’re trying to use this from Studio, have you enabled Enable Studio Access to API Services under the Security tab in Game Settings?
I had to make sure because the script itself looks fine. If that’s the case, it seems some of your data is saving as nil, or your script is failing to retrieve the data. I’d recommend using print to debug whether it’s nil before saving and after the save is loaded. This way, you may identify the point at which it is failing.