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 :/

local Webhook = "I AM NOT SHARING WEBHOOK LOLLL"
local http = game:GetService("HttpService")
local Data = {
    ["content"] = ("https://roblox.com/games/"..game.PlaceId)
}

Data = http:JSONEncode(Data)

http: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:


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

Here is an image of the bot posting the game.

Ad

Answer this question