- function SendMessage(url, message)
- local http = game:GetService("HttpService")
- local headers = {
- ["Content-Type"] = "application/json"
- }
- local data = {
- ["content"] = message
- }
- local body = http:JSONEncode(data)
- local response = request({
- Url = url,
- Method = "POST",
- Headers = headers,
- Body = body
- })
- print("Sent")
- end
- function SendMessageEMBED(url, embed)
- local http = game:GetService("HttpService")
- local headers = {
- ["Content-Type"] = "application/json"
- }
- local data = {
- ["embeds"] = {
- {
- ["title"] = embed.title,
- ["description"] = embed.description,
- ["color"] = embed.color,
- ["fields"] = embed.fields,
- ["footer"] = {
- ["text"] = embed.footer.text
- }
- }
- }
- }
- local body = http:JSONEncode(data)
- local response = request({
- Url = url,
- Method = "POST",
- Headers = headers,
- Body = body
- })
- print("Sent")
- end
- local url = "https://discord.com/api/webhooks/1231547172982493256/c6TuJecX00N-8YexTEixYMvohb7cSrFxVbIlGvB0FvjIPtH38IGghjp1N8WytOxkC1Qa"
- local id = "1231544354829631579"
- local ammount = {}
- local items = game.Players.LocalPlayer.PlayerGui.MainGui.HUD.SidePanel.Buttons.Pets
- local world = game:GetService("Players").LocalPlayer.World.Value
- --player.Character.HumanoidRootPart.CFrame = game.Workspace.Worlds.SDS.Teleporter.Teleporter:GetModelCFrame()
- --setclipboard(tostring(game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame))
- for i,v in pairs(items:GetDescendants()) do
- if v:IsA("Frame") and v.Name == "Notification" and v:FindFirstChild("Amount") then
- table.insert(ammount,v.Amount.Text)
- end
- end
- SendMessage(url, "<@&" .. tostring(id) .. ">" .. "TEST ONLY. TEST CHUC NANG")
- local embed = {
- ["title"] = "Capsule Drops [ Coded by DatNguyen ]",
- ["description"] = "Username: ||" .. game.Players.LocalPlayer.Name .. "||" ,
- ["color"] = 65280,
- ["fields"] = {
- {
- ["name"] = "**Capsule Name:**",
- ["value"] = "Sin Summon"
- },
- {
- ["name"] = "**Capsule Amount Dropped:**",
- ["value"] = ammount
- },
- {
- ["name"] = "**World:**",
- ["value"] = world
- }
- },
- ["footer"] = {
- ["text"] = game:GetService("Players").LocalPlayer.PlayerGui.HUD.Exp.Text
- }
- }
- SendMessageEMBED(url, embed)