Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to get the game visits using HttpService?

Asked by 5 years ago

Hi,I want an example of using HttpService to get the game visits because I didn't find any tutorial on how to do that.

0
He's trying to get the number of visits the game has so he can put it in a print or gui to show how many visits the game has. He's not trying to exploit visits! iiDev_Hunt3r 64 — 5y
0
Umm...How can exploit the game visits and I'm very very noob scripter,I just wanna know the game visits like what asimo did in jailbreak in the live event. User#24146 20 — 5y
0
Just go to your games page and see the visits no need for HttpService User#24403 69 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

You actually do not need to manually get them, you can rip stats, etc from the game page itself.

Since HttpService literally lets you see the structure of a webpage, you could by theory, grab the number from the page.

Edit: I would find the two above paragraphs to be wrong since you CANNOT get stats from Roblox sites due to "trust checks" as stated in:

https://wiki.roblox.com/index.php?title=User:Seranok/Using_HttpService#Restrictions

--

BUT, I unfortunately do not know how to do that so... I decided to do about an hour - two hours of research since such a topic is of my interest too -- it is NOT easy and I still don't know, really, but I'll provide what I can.

https://devforum.roblox.com/t/is-there-a-web-api-to-get-place-visits-or-currently-playing/169659

The above has an answer that describes getting total visits & people playing through a javascript, intended for a website.

Assuming you own a website, you could by theory use that, have it set to a JSON of some sorts then get code like in:

https://wiki.roblox.com/index.php?title=User:Seranok/Using_HttpService#Usage

To get that code from the JSON in the website of yours, to then display in your Roblox place.

All what I've recommended is hypothetical and isn't a true solution as I haven't tried it, but it was my best attempt.

Ad

Answer this question