-
Data error
DataStore request was added to queue. If request queue fills, further requests will be dropped. Try sending fewer requests.Key = List -
script
local dss = game:GetService("DataStoreService")
local feedbackDS = dss:GetDataStore("Feedback beta")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local feedbackData = {}
local success, errorMessage = pcall(function()
feedbackData = feedbackDS:GetAsync("List") or {}
end)
local re = ReplicatedStorage:WaitForChild("FeedbackRE")
re.OnServerEvent:Connect(function(plr, feedback)
if string.len(string.gsub(feedback, " ", "")) > 0 then
local success, errorMessage = pcall(function()
feedback = game:GetService("TextService"):FilterStringAsync(feedback, plr.UserId)
feedback = feedback:GetNonChatStringForBroadcastAsync()
end)
if success then
local timeOfFeedback = os.time()
local plrSent = plr.Name
table.insert(feedbackData, {plrSent, feedback, timeOfFeedback})
local success, err = pcall(function()
feedbackDS:SetAsync("List", feedbackData)
end)
end
end
end)
while wait(5) do
local success, errorMessage = pcall(function()
feedbackData = feedbackDS:GetAsync("List") or {}
end)
ReplicatedStorage:WaitForChild("FeedbackFolder"):ClearAllChildren()
for i, feedbackInfo in pairs(feedbackData) do
local plrName = feedbackInfo[1]
local feedback = feedbackInfo[2]
local timeSent = feedbackInfo[3]
local timeValues = os.date("*t", timeSent)
local formattedTime = timeValues["hour"] .. ":" .. timeValues["min"] .. ":" .. timeValues["sec"]
local formattedDate = timeValues["day"] .. "/" .. timeValues["month"] .. "/" .. timeValues["year"]
local combinedTime = formattedTime .. " " .. formattedDate
local str = Instance.new("StringValue")
str.Name = plrName .. " - " .. combinedTime
str.Value = feedback
str.Parent = ReplicatedStorage:WaitForChild("FeedbackFolder")
wait(300)
str:Destroy()
end
end
- Explanation
i found out that the the cause of the error was in the part containing the word List, but it was not resolved, so i uploaded it to the devforum