How can I check if roblox DataStoreService is down with a script? I am trying to make a script that when the DataStoreService is down then take the user out of the game (kick).
What do you mean by “roblox DatastoreService is down”?
1 Like
Well, when services are unavailable due to downtime?
you can wrap the loading of data inside a pcall. If in any case it fails, you can kick them like so:
local success, response = pcall(function()
--Data loading stuff here
end)
if not success then
warn("Failed to load data.")
plr:Kick("Your data failed to load")
end
1 Like
You could wrap : GetDataStore in pcalls to see if it failed or not
1 Like
I believe you can go check out some available APIs related to that and maybe use HTTPService?
1 Like
That’s correct, after investigating, a found a website that it’s connected to the roblox status page: https://4277980205320394.hostedstatus.com/1.0/status/59db90dbcdeb2f04dadcf16d
I can do an HTTP request on that URL and get the JSON file.
1 Like
how does this work around plrs who are first joining the game though??