So, the title explains it, How would I make a gui that says how many likes does the game have.
I’ve never used APIS So I don’t know how would I do it, I’ve tried every way possible but couldn’t.
NOTE: I’ve looked everywhere on the forum and the ones I found don’t work. Please help asap
I’ve done a bit of research but I don’t think there is a way to get the number of likes on your roblox game just through roblox scripts. You would require APIs etc. for it.
If you need help with using external APIs, you can search #resources for the API.
Use HttpService:GetAsunc() or something like that with the url you got, it will return the data you wanted, in the web i told you about it says the format returned is a table so you will get a table, get the values for it
local httpService = game:GetService("HttpService")
local url = "https://games.roblox.com/docs#!/Votes/get_v1_games_votes"
local data = httpService:GetAsync(url) --returns a table
I’ve tried printing the data But for some reason I can’t access the roblox resecures?
That’s the error.
HttpService is not allowed to access ROBLOX resources
Code
local httpService = game:GetService("HttpService")
local url = "https://games.roblox.com/docs#!/Votes/get_v1_games_votes"
local data = httpService:GetAsync(url)
print(data[1])
print(data)
Now it’s giving me error from the data line (Variable)
HttpError: DnsResolve
Code
local httpService = game:GetService("HttpService")
local url = "https://games.www.rprxy.xyz/docs#!/Votes/get_v1_games_votes"
local data = httpService:GetAsync(url)
print(data[1])
print(data)