How do i grab the number of players in another game

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    to be able to see how many players are in another game

  2. What is the issue? Include screenshots / videos if possible!
    im getting the error “HttpService is not allowed to access ROBLOX resources”

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    Looked through the hub, i see some other URL’s but im not sure how they work or which is best

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

local url = "http://games.roblox.com/v1/games?universeIds=10433776983"

local res = game:GetService("HttpService"):GetAsync(url) 

local body = game:GetService("HttpService"):JSONDecode(res) --res would be the response from the server

local playerCount = body.data[1].playing
print(playerCount)

i don’t know a lot about API, HttpService and proxy but with what i know i can say:
If you receive the error “HttpService is not authorized to access ROBLOX resources”, it is because you are trying to access from HttpService using roblox.com, which you cannot. Because it is blocked by ROBLOX. and the only way to bypass this is using a proxy