Im trying to make the webhook send a message when the event is fired.
Code :
game.Lighting.ExploitBot.Event:connect(function(plr,cause)
game.SoundService.CaughtNoob:Play()
print(plr.Name.." noob exploiter")
local HttpServ = game:GetService('HttpService')
local url = "https://discord.com/api/webhooks/xxxxxxx"
local data =
{
["content"] = "",
["embeds"] = {{
["title"] = "someone was banned lol",
["description"] = "lool",
["type"] = "rich",
["color"] = tonumber(0xffffff),
["fields"] = {
{
["name"] = "Player",
["value"] = plr,
["inline"] = true
},
{
["name"] = "__Title__",
["value"] = cause,
["inline"] = true
}
}
}}
}
local newdata = HttpServ:JSONEncode(data)
HttpServ:PostAsync(url, newdata)
game.Lighting.SystemMessage:FireAllClients(plr.Name.." just got busted by the gorilla lord.... lol. You won't see them anytime soon ; )",Enum.Font.Arcade,Color3.new(1,0.5,0.5),true)
local baninfo = {cause,GetDate(),"Exploiting","System"}
if plr.Character and plr.Character:FindFirstChild("HumanoidRootPart") then
table.insert(baninfo,tostring(plr.Character.HumanoidRootPart.CFrame.p))
else
table.insert(baninfo,"-")
end
if plr.Character and plr.Character:FindFirstChild("_battle") then
table.insert(baninfo,plr.Character["_battle"].Value.Name)
else
table.insert(baninfo,"-")
end
game.Lighting.Assets.Despacito2:Clone().Parent = plr.PlayerGui
if plr.UserId ~= 76355774 and plr.UserId ~= 81898264 then
game:GetService("DataStoreService"):GetDataStore("UTMonsterMania"..plr.UserId):SetAsync("BanInfo",baninfo)
end
delay(10,function() if plr then plr:Kick("You have been banned for: "..baninfo[3]) end end)
end)
game.Lighting.InfinityGauntlet.OnServerEvent:Connect(function(plr,reason)
print("B A N")
if typeof(reason) == "string" then
print(reason)
game.Lighting.ExploitBot:Fire(plr,reason)
else
print("lol noob exploiter")
game.Lighting.ExploitBot:Fire(plr,"Attempt to ban themselves (nice)")
end
end)function GetDate(s)
print("timedato")
local get = os.date("*t",os.time())
local date = ""