So today Arsenal reached 1 billion visits (congrats, btw) and I noticed that the number in the top left corner (amount of visits) kept changing, and now that my game is about to reach 1000 visits, I want to do a countdown like that…
The thing is, I’ve never used HttpService and I learned a bit about it but not enough. I looked at the topic at the beginning of this post, but that hasn’t been solved.
I unfortunately wouldn’t like to spoonfeed you the whole code but I’ll give you an example of how you can retrive your game data from an API
local HttpService = game:GetService("HttpService")
local API_URL = "https://games.roblox.com/v1/games?universeIds=" .. game.GameId -- API that you want to get from
local Data = HttpService:GetAsync(API_URL):JSONDecode()
How about use PlayerAdded, MessagingService instead of HtppService. Like everytime a player is added you send a message to all servers and add a value of some sort
I’ve tackled this problem in the past. What I found to work best was to create a quick command in my discord bot that returned the game statistics using the Roblox Games API. Then with the JSON all I did was parse through the contents for the stats I wanted.