I’ve notice requesting Data from DataStore has been taking a lot longer to fetch then before, like instead of almost instant it’s like 5-10 seconds per call now.
and Sounds will take like 5-10 seconds longer to start playing, even though they are preloaded, it wasn’t doing this before, and I made no changes to the game.
This below error idk if its related or not.
But I got this random Error report today:
This is the first time I have noticed this error, and I don’t think it happens 100% of the time, as other servers of my game use this same “SV” script to save data about what players are on a Server to the DataStore
Here’s the Script:
local mps = game:GetService("DataStoreService"):GetDataStore("Server "..game.PlaceId.."")
local banwag = mps:GetAsync("Num")
if banwag == nil then
mps:SetAsync("Num",1)
banwag = 1
else
banwag = mps:UpdateAsync("Num",function(nol) if nol < 10 then return nol + 1 else return 1 end end)
-- the line above is line 8 and the error line
end
local msds = mps:GetAsync("S"..banwag.."")
function GetPlayersInServer(old)
local dyw = game.Players:GetChildren()
local bulist = {}
bulist["JobId"] = game.JobId
for xya = 1, #dyw do
bulist[xya] = {dyw[xya].Name,dyw[xya].userId}
end
return bulist
end
function Main(player)
wait(3)
mps:UpdateAsync("S"..banwag.."",GetPlayersInServer)
end
function Jerk(player)
if game.Players.NumPlayers <= 1 then
mps:UpdateAsync("S"..banwag.."",function(old) return {} end)
end
wait(3)
mps:UpdateAsync("S"..banwag.."",GetPlayersInServer)
end
game.Players.PlayerAdded:connect(Main)
game.Players.PlayerRemoving:connect(Jerk)
if you want to run some test and such, just join this server:
use the left hand GUI to and navigate to Game Servers by doing: Choose Server>HHCL Game Servers
then click any of the 6 View Server buttons
notice that there is a solid 5-10 second delay in another GUI popping up
(Optional) Hit the Join game button, and notice another delay before the script decides to teleport you
after doing step 2, the Script gets information from the datastore that tells the server which players are at the server you are viewing, this is what is causing the delay. Before it would take 0-1 seconds for the Gui to pop up which is expected.
after doing Step 4. all that is done is a Simple call to a RemoteEvent that then teleports the sending player to the Server.
Can someone explain this CURL Error to me? I’m getting this alot more often now, it causes the main script in my Lobby to crash therefore breaking the RemoteFunctions/RemoteEvents functions, thereby destroying the entire teleporting GUI.
I had this happen at my Lobby today during High Traffic Hours, a lot of people where panicking, as it happened during my Ro-Sports League Game Times.
A temporary solution I made was just to make the Lobby 1 Player Server only.
Can a Staff member please take notice of at least 1 of the 3 possibly 4 threads posted in this section about the ongoing problems with the Network? and respond to one, to let us know what is happening? Because atm I’m thinking that no action is being taken place, when this is a serious problem that needs to be looked into.
I do really hope roblox is able to fix the networking problems they have been having recently…
My guess may be how there have been larger amounts of users now? And maybe they had to slow their servers to allow more servers? (I have a VERY basic knowledge of servers )