I really want to make a game based on collecting keys, trophies, etc; I can't seem to figure out how datastores work, I've tried finding better aid via Youtube, but none of the videos expanded on how to save boolean values, I have an intermediate understanding of scripting, and I need a bit of help.
To save a boolean value to a datastore (x) you would,
local Data = game:GetService("DataStoreService"):GetDataStore("x") local Bool = true -- (or false) local WhatPlayer = some player object Data:SetAsync("user_"..WhatPlayer.UserId, Bool) -- data key, what to save to data key -- to retrieve this data: Data:GetAsync("user_"..WhatPlayer.UserId) -- returns saved data, in this case - true.