And the unique way to fix this is shutting down all the servers or migrate servers to the latest update, and after that we have to wait like +10 minutes to get back totally normal
They think BindToClose() function is the problem, but i don’t think how can i fix this bc this function is very useful to save the players data, if someone have any solutions i’ll appreciate
This is one part of my datastore codes that i use:
local DataStore = require(game:GetService("ServerScriptService"):WaitForChild("DataStore2"))
local remote5 = game:GetService("ReplicatedStorage"):WaitForChild("RemoteNovos"):WaitForChild("pergunta")
local defaultValues = {
Money = 0,
Bank = 0,
Rank = "None",
}
game.Players.PlayerAdded:connect(function(player)
local folder = Instance.new("Folder", player)
folder.Name = "SavedValues"
for i, v in pairs(defaultValues) do
if folder:FindFirstChild(i) then else
if type(v) == 'string' then
local acessEquip = Instance.new("StringValue", folder)
acessEquip.Name = i
elseif type(v) == 'boolean' then
local acessEquip = Instance.new("BoolValue", folder)
acessEquip.Name = i
elseif type(v) == 'number' then
local acessEquip = Instance.new("NumberValue", folder)
acessEquip.Name = i
elseif typeof(v) == 'Vector3' then
local acessEquip = Instance.new("Vector3Value", folder)
acessEquip.Name = i
end
end
end
local TableData = DataStore("ValoresIniciais", player)
local function TableUpdate123123(updatedValue)
local tablev = TableData:GetTable(updatedValue)
for i, v in pairs(tablev) do
if folder:FindFirstChild(i) then
local acho = folder:FindFirstChild(i)
acho.Value = v
end
end
remote5:FireClient(player, "ValoreNeutre", tablev)
end
TableUpdate123123(defaultValues)
TableData:OnUpdate(TableUpdate123123)
end)