So i made bools named Trophy1...10 for each of the trophies on the map.They work so that once you click a trophy it sets the bool inside your player to true so that you can't click it again as in you've alrdy found this trophy. The trouble is saving this info to Data store.
As you can see i've tried preforming a check to see if the value is true and then if it is it should be saved upon player leaving but that's not the case.
Thanks for your time
local data = game:GetService("DataStoreService") local dataStor = data:GetDataStore("MobbyProgress") key = 'MobbyProgress_'..p.userId local saveData = dataStor:GetAsync(key) if saveData then stage.Value = saveData[1] Trophies.Value = saveData[2] if Trophy1.Value == true then Trophy1.Value = saveData[3] end else dataStor:SetAsync(key, {1,0}) end end) game.Players.PlayerRemoving:connect(function(p) key = 'MobbyProgress_'..p.userId local save = {p.leaderstats.Stage.Value, p.leaderstats.Trophies.Value,p.Trophy1.Value} dataStor:SetAsync(key, save) end)