ItsOmega
|
  |
| Joined: 05 Oct 2014 |
| Total Posts: 196 |
|
|
| 29 Jun 2016 04:51 PM |
local Http = game:GetService("HttpService") local Url = "https://roblox-proxy.cf/games/getgameinstancesjson"
local JSONEncode = function(Table) if type(Table) ~= "table" then warn("JSONEncode cannot run "..tostring(type(Table))) return false end return Http:JSONEncode(Table) end
local JSONDecode = function(String) if type(String) ~= "string" then warn("JSONDecode cannot run "..tostring(type(String))) return false end return Http:JSONDecode(String) end
local JSON = function(PageNumber) -- Returns JSON as in.. {"PlaceId":95206881,"ShowShutdownAllButton":false,"Collection":[],"TotalCollectionSize":0} if not PageNumber or PageNumber == nil or type(PageNumber) ~= "number" then PageNumber = 0 end return(Http:GetAsync(Url.."?placeId="..game.PlaceId.."&startindex="..PageNumber)) end
local Table = Http:JSONDecode( JSON() )
print(Table.PlaceId,Table.Collection,Table.TotalCollectionSize)
|
|
|
| Report Abuse |
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 29 Jun 2016 04:52 PM |
just loop through the table and see if it provides names or id then use GetPlayerNameFromIdAsync() or something
|
|
|
| Report Abuse |
|
ItsOmega
|
  |
| Joined: 05 Oct 2014 |
| Total Posts: 196 |
|
| |