GameData Proxy not displaying accurate info?

Hey all, I fixed my prior proxy problem but now I’ve run into another one.

A quick TL;DR, I am making a hub game that displays the players currently playing in each server. That way new people who join know where to go for the activity.

Currently, it displays every server as having ‘0 Players’ in it, even though there are people in the game? Here’s the code:

r_s.Events.Proxy.OnServerEvent:Connect(function(player, gameid)
	
	local HttpService = game:GetService("HttpService")

	local QUERY_URL = "https://games.roproxy.com/v1/games?universeIds="
	local GAME_ID = gameid

	-- "https://games.rprxy.xyz/v1/games?universeIds=000000"
	local endpointResponse = HttpService:GetAsync(QUERY_URL .. GAME_ID)
	local decodedResponse = HttpService:JSONDecode(endpointResponse)
	local gameData = decodedResponse.data

	local gameInformation = gameData[1]
	local playersInGame = gameInformation.playing
	
	print(playersInGame)

	r_s.Events.Proxy:FireClient(player, playersInGame)
	
end)

Essentially, anytime someone clicks on a map location it’ll fire this to the server to theoretically run the proxy to grab the players playing data. However it just continues displaying them as having 0 players. Anyone know why?

1 Like