I am trying to make a datastore system for a game, but the Throttled Request warning keeps appearing, and I'm only sending one request. This is the script:
local datastore = game:GetService("DataStoreService") local ds = datastore:GetDataStore("CashSaveSystem") game.Players.PlayerAdded:connect(function(plr) local leaderstats = Instance.new("Folder") leaderstats.Parent = plr leaderstats.Name = "leaderstats" local cash = Instance.new("IntValue") cash.Parent = leaderstats cash.Name = "Cash" ds:SetAsync(plr.UserId, cash.Value) cash.Value = ds:GetAsync(plr.UserId) or 1000 ds:SetAsync(plr.UserId, cash.Value) wait(1) cash.Changed:connect(function() ds:SetAsync(plr.UserId, cash.Value) end) end)