Just a quick question, how to get an array with many different info about the player using the HttpService? I searched some topics about it, but I never used this service and Im confused :v
Example:
local HTTP = game:GetService("HttpService")
local infoArray = HTTP:JSONDecode(
HTTP:GetAsync("https://friends.rprxy.xyz/v1/users/1816810703/friends/count"),
HTTP:GetAsync("https://friends.rprxy.xyz/v1/users/1816810703/followers/count")
)
for _, d in pairs(infoArray) do
print(d)
end
Maybe I should make a new GetAsync per request and add each one into the table? :v
I already tried many different ways… I just dont know JSON at all :v
I checked the International Space Station http request. And the NASA JSON request which is this…
local HTTP = game:GetService("HttpService")
link1 = "https://friends.rprxy.xyz/v1/users/1816810703/friends/count"
link2 = "https://friends.rprxy.xyz/v1/users/1816810703/followers/count"
local infoArray = {
HTTP:JSONDecode(HTTP:GetAsync(link1)), HTTP:JSONDecode(HTTP:GetAsync(link2))
}
for _, d in pairs(infoArray) do
print(d)
end