Universal Script 📌
1.0k Views
108 Executions

discord sender

Universal Script 📌
Astell
AstellPublished 10
1 year ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No 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

View Raw
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)


Comments

4
Log in to join the conversation. Login
Infinitelucky's profile picture
Infinitelucky1 year ago

W script

2
Astell's profile picture
AstellUploader1 year ago

@Infinitelucky ty!

1
Unverifed's profile picture
Unverifed1 year ago

yay

1
draxdrako0's profile picture
draxdrako01 year ago(edited)

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

1

More universal scripts

See all
Script hub
159.8k
1.5M
Bumped 2 hours ago
Key System

Script hub

#15 this week

Verified script badgeAirflow HUB

Universal Script 📌
2.3k
991
Bumped 2 hours ago
Script hub
1.6M
1.9M
Bumped 2 hours ago
Key System

Script hub

#10 this week

Verified script badgeSnowy Hub 500+ Games & 25600+ Features

Universal Script 📌
40.4k
817.4k
Bumped 4 hours ago
Universal Script 📌
133.7k
24.2k
Bumped 5 hours ago
Key System