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

What Is HTTP Service Useful for?

Asked by 7 years ago

I'm trying to understand how to Use this service

3 answers

Log in to vote
2
Answered by 7 years ago

You can use this for connecting to the web, using it to encode things into JSON and decode it from. You could make a facebook post with it, a discord bot, etc.

Ad
Log in to vote
2
Answered by 7 years ago
Edited 7 years ago

HTTPService is very useful. As hiimgoodpack said, you can send HTTP Requests to Discord or Trello. I've written an example for you on making a discord bot using HTTP Requests. This should make sense, just make sure HTTPService is enabled.

local url = "discord webhook url" --research on how to make a webhook, it's very easy.
local content = {
['username'] = "This is a bot!", 
['content'] = "This is what the bot says!"
}
content = http:JSONEncode(content)
game:GetService("HTTPService"):PostAsync(url, content) --Post our content

Please accept my answer if this helped!

0
Hopefully I got this right, I wrote this from scratch. PyccknnXakep 1225 — 7y
0
Interesting, but I want to know how to retrieve data from roblox, such as like getting the amount of players on my game, like the text Value. "Playing <NumofPlayers>" I want retrieve that data or Text value and put it on a Gui GeezuzFusion 200 — 7y
0
You do not need HTTP service. You should just do #game.Players:GetPlayers() for num of players. hiimgoodpack 2009 — 7y
Log in to vote
0
Answered by
iRexBot 147
7 years ago

HTTP Service has a wide range of uses from sending messages outside of roblox to getting live messages from discord to trello! It's mainly used for applications, live shouts and more that allows people to get live results of anything!

Live time bans are possible thanks to http service

Answer this question