So I have a ‘skip stage’ script that I use for players to skip a stage in my obby if they would like. However, for some reason the script just stopped working (keep in mind it was working yesterday, I didn’t touch it) and now I keep on getting this error on the dev console:
char.Humanoid.Touched:Connect(function(touch)
if touch.Parent == checkpoints then
if (tonumber(touch.Name) and tonumber(touch.Name) > tonumber(stage.Value)) or touch.Name == "End" then
stage.Value = touch.Name
pcall(function()
obbyDS:SetAsync(plr.UserId .. "-obbyStageProgress", plr.leaderstats.Stage.Value)
end)
end
end
end)
The error you are getting mostly happens when you try to save data too much, Documentation - Roblox Creator Hub . In this situation, you should add a debounce to the .Touched function.
I am not exactly sure what you mean by “clear datastore requests”, you can just add a debounce to the script to solve the problem. The link I provided before went over the capacity of requests, “Write Requests, Cooldown: 6 seconds between write requests” If you go over the capacity, it will send you the same error you encountered.
So I was using another datastore for a donation board I added today in my game, I removed it and realized that the errors were gone and the skip stage button was functioning normally. Does this mean I can’t use multiple datastores?
You can use multiple datastores in a game, you must of made a mistake in setting it up. Could you show the code for the donation board datatstore? Make sure you aren’t making the same or similar mistake as you did with the stages datastore.