The API no longer has playerIds, was this removed because what happened to ROBLOX? If so, it messed up my serverlist script a lot now, and I can't use it to show player names I recognize. I wanted to know if there is another API that is similar that provides playerIds, but not the other one that is used by the site that uses imageUrls, it is useful, but I use a UI that is text only, w/out images on it and people don't keep consistent avatars. It would be nice if anyone can share some insight on what happened and if playerIds will be added back to the response for this API. I had to rewrite the way my script shows the serverlist now to this.
2020-12-04 | 00:07:38 BC GUID: 37702ceb-977f-4461-8978-d7b79336d54d FPS: 59.997532 PING: 159 PLAYERS LOST! GUID: f662424f-0e42-45c8-b896-5b2a77562250 FPS: 59.992275 PING: 63 PLAYERS LOST!
Here is a bit of my script if you wanted to know.
local time=os.date("*t") appendfile("cd/KohlsNBCLog.txt",("d-d-d | d:d:d BC\n"):format(time.year,time.month,time.day, time.hour,time.min,time.sec)) local lastdata = "0" while tostring(lastdata) ~= "nil" do pcall(function() if lastdata == "0" then local r = Fetch.Get("https://games.roblox.com/v1/games/112420803/servers/Public?sortOrder=Asc&limit=100") h = JSOND(r) else local r = Fetch.Get("https://games.roblox.com/v1/games/112420803/servers/Public?sortOrder=Asc&limit=100&cursor="..lastdata) h = JSOND(r) end end) lastdata = tostring(h.nextPageCursor) if h then for _,server in pairs(h.data) do if server.id then appendfile("cd/KohlsNBCLog.txt","GUID: "..server.id.."\n") else appendfile("cd/KohlsNBCLog.txt","SERVER ID LOST!\n") end if server.fps then appendfile("cd/KohlsNBCLog.txt","FPS: "..server.fps.."\n") else appendfile("cd/KohlsNBCLog.txt","FPS LOST!\n") end if server.ping then appendfile("cd/KohlsNBCLog.txt","PING: "..server.ping.."\n") else appendfile("cd/KohlsNBCLog.txt","PING LOST!\n") end if server.playerIds then for _1,player in pairs(server.playerIds) do pcall(function() asdf1 = Fetch.Get("https://api.roblox.com/users/"..tostring(player)) asdf2 = JSOND(asdf1) end) appendfile("cd/KohlsNBCLog.txt",asdf2.Username.."["..player.."]\n") end else appendfile("cd/KohlsNBCLog.txt","PLAYERS LOST!\n") end appendfile("cd/KohlsNBCLog.txt","\n") end appendfile("cd/KohlsNBCLog.txt","\n\n\n") else appendfile("cd/KohlsNBCLog.txt","Data missing?") end end
Love cd