Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to make a game logger with https service?

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

✓ Accepted answer

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.