local DataStore = game:GetService("DataStoreService"):GetDataStore("List") key = "list1" wait(5) while true do DataStore:UpdateAsync(key, function(oldValue) local newValue = oldValue --oldValue might be nil if game.Workspace.Game.RankUp.Value == true then newValue = script.Parent.Parent.Parent.Name end return newValue end) wait(1) end
Gets this error; Cannot write to DataStore from studio if API access is not enabled. Enable it by going to the Game Settings page.
The answer is simple! It was right infront of you. Just go to your game's setting page and check both or one of the API settings! But make sure your game is an actual Game and not just a Place.