Why it doesn't work?

Why it doesn’t work?

game.ReplicatedStorage:WaitForChild("GetGamesFunc").OnServerInvoke = function(player)
	local HttpGetRequest = HttpService:GetAsync("https://games.roproxy.com/v2/groups/------/games?accessFilter=Public&sortOrder=Asc&limit=100")
	local FormattedRequest = HttpService:JSONDecode(HttpGetRequest)
	local ReturnTable = {["data"] = {}}
	for i,v in pairs(FormattedRequest.data) do
		print(v.name)
		local InsertTable = {
			["id"] = v.id,
			["name"] = v.name,
			["description"] = v.description,
			["rootPlaceId"] = v.rootPlace.id,
		}
		table.insert(ReturnTable.data, InsertTable)
	end
	return ReturnTable
end

We’re gonna need more than that. What’s the output saying? What do you want it to do?

Also, in the table.insert(), you’re inserting the data into a different table to the one you created. You created ReturnTable[“data”], but you’re inserting inserting data into ReturnTable.data

I’m just not call invoke function in local script :man_facepalming:

Screen Shot 2022-01-26 at 20.36.41
I’m not familiar with roproxy.com, but this looks like a place where you should put your Group ID.

yes, but…_____________________

It’s working successfully