Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why does this script error?

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.

2 comments

1

Look at the error very closely on here....

0

There is not "API Access" in the game settings.

1 answer

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.