Try sending fewer request on Datastore 2

Hello, I’m having trouble saving my checkpoints system to datastore 2 due to the fewer request error
is there a way to fix this

The Script:

checkpoints = workspace.checkpoints

datastore2 = require(1936396537)

game.Players.PlayerAdded:Connect(function(plr)

local leaderstats = Instance.new("Folder",plr)
leaderstats.Name = "leaderstats"
local Stage = Instance.new("IntValue",leaderstats)
	Stage.Name = "Stage"
-----------------------------------------------------------------------------------------
plr.CharacterAdded:Connect(function(char)
	local hum = char:WaitForChild("Humanoid")
	wait()
	char:MoveTo(workspace.checkpoints[Stage.Value].Position)
	
	hum.Touched:Connect(function(hit)
		if hit.Parent == workspace.checkpoints then
			if tonumber(hit.Name) == Stage.Value + 1 then
				Stage.Value = Stage.Value + 1
			end
		end
	end)
end)
-------------------------------------------------------------------------------------------
local getvalue = datastore2("id",plr)

local work = game:BindToClose(function(update)

	getvalue:Get(update)
	
end)
	
getvalue:OnUpdate(work)
getvalue:Increment(0)	

end)

1 Like

I suggest using DataStoreService instead. I don’t get why people use DataStore2 and in my preference, DataStoreService is much more simple.