generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: How can I get every players name from this?

Previous Thread :: Next Thread 
ItsOmega is not online. 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 is not online. 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 is not online. ItsOmega
Joined: 05 Oct 2014
Total Posts: 196
29 Jun 2016 05:03 PM
??


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image