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

How to make a game logger with https service?

Asked by
GITSTP 19
4 years ago

Hi! I made a script where it would log a game if this is script was in my game and it wouldn't work :/

1local Webhook = "I AM NOT SHARING WEBHOOK LOLLL"
2local http = game:GetService("HttpService")
3local Data = {
4    ["content"] = ("https://roblox.com/games/"..game.PlaceId)
5}
6 
7Data = http:JSONEncode(Data)
8 
9http:PostAsync(Webhook, Data)

I tried doing the script I made above but it didn't work, please help!

1 answer

Log in to vote
0
Answered by 4 years ago

I rewrote the code a bit. Here it is:

1local http = game:GetService("HttpService")
2local Webhook = --Webhook link here. Not going to leak mine!
3local Data = {
4    ["content"] = "https://roblox.com/games/"..game.PlaceId
5}
6 
7Data = http:JSONEncode(Data)
8 
9http:PostAsync(Webhook, Data)

Here is an image of the bot posting the game.

Ad

Answer this question