discord sender
Key RequiredUniversal

discord sender

Universal ScriptAstellAstell 1K views 98 executesUpdated Oct 19, 2025
5.0/ 5(2 votes)
20100% Positive
Lua Script•48 lines (1402 chars)
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)
	else
		warn("Failed to send webhook: " .. tostring(err))
	end
end

sendWebhook()

print("Script fully executed by " .. username .. " (" .. scriptName .. ") in " .. gameName)

Features & Information

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

Community Comments (4)

InfiniteluckyInfiniteluckyOct 19, 2025

W script

Replying to @Infinitelucky
AstellAstellOct 19, 2025

@Infinitelucky ty!

draxdrako0draxdrako0Oct 19, 2025(edited)

I've been needing somthing like that for a long time now thanks

UnverifedUnverifedOct 20, 2025

yay

More Scripts for Universal Scripts