You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
to be able to see how many players are in another game -
What is the issue? Include screenshots / videos if possible!
im getting the error “HttpService is not allowed to access ROBLOX resources” -
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)