
1.0k Views
108 Executions
Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
READ MEEE !!!!!!!!!!!!!!!!!!!! so what this script does is that it will use your discord bot in your discord server to say what player is using your script in the game they are in and what script they are using by making the bot say the screengui name how to use this: to use this you need to put this script in a screen gui then edit the script and the change the "local webhookUrl = "YOUR WEBHOOK URL HERE" " to your discord web hook url and then you need to name your screengui so you know what script they are using
local webhookUrl = "YOUR WEBHOOK URL HERE"
local Players = game:GetService("Players")
local HttpService = game:GetService("HttpService")
local MarketplaceService = game:GetService("MarketplaceService")
local player = Players.LocalPlayer
local username = player.Name
local placeId = game.PlaceId
local gameInfo = MarketplaceService:GetProductInfo(placeId, Enum.InfoType.Asset)
local gameName = gameInfo.Name or "Unknown Game"
local screenGui = script.Parent
local scriptName = "Unknown Script"
if screenGui:IsA("ScreenGui") then
scriptName = screenGui.Name
end
local message = "@" .. username .. " is using the script: " .. scriptName .. " in " .. gameName
local function sendWebhook()
local http = http_request or request or syn.request or http.request or function(data)
return HttpService:PostAsync(data.Url, data.Body, Enum.HttpContentType.ApplicationJson)
end
local success, err = pcall(function()
http({
Url = webhookUrl,
Method = "POST",
Headers = {
["Content-Type"] = "application/json"
},
Body = HttpService:JSONEncode({
content = message
})
})
end)
if success then
print("Webhook sent automatically for " .. username .. " (" .. scriptName .. ") in " .. gameName)










W script
@Infinitelucky ty!
yay
I've been needing somthing like that for a long time now thanks