Hello! So I have been trying to create a simplee DataStore handler for the past hour but an error just popped up that I have no idea how to solve. Any kind of help is appreciated!
The output just warns me this: [ ServerScriptService.DataStoreHandler:41: attempt to index nil with ‘presents’] even though I have created a table variable to sort the value.
if success then
presents.Value = table.find(data, Presents)
bucks.Value = table.find(data, Bucks)
print(player.Name.."'s data was loaded.")
else
print("There was an error loading "..player.Name.."'s data!")
end
i dont know much when it comes to tables but i think that should work