King_96

Islands VenDump (Vending price collector)

Nov 15th, 2021
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.13 KB | None | 0 0
  1. -- This script will print a list of a visited island vending machines items, type of sale, and price.
  2. -- A .txt will be saved to your Workspace folder for comparison.
  3. -- I also made this tool to fix the word wrap issue and make it readable and not 1 long line.
  4. -- https://www.mediafire.com/file/7wfakglq3yx4fap/vendDump.rar/file
  5. -- P.S to Void admins....
  6. -- I never sent anything let alone had intentions of any bad, I wanted to help the community.
  7.  
  8. local owner = ""
  9. local island = ""
  10. local blocks = ""
  11. local item = ""
  12. local price = ""
  13. local mode = ""   --mode 1 is buying, 0 is selling
  14. local code = ""
  15. local counter = 0
  16. local HttpService = game:GetService("HttpService")
  17.  
  18. _G.vendingTable = {}
  19.  
  20. --Find Owner
  21. for i , v in pairs(game.Players:GetChildren()) do
  22.    if v:FindFirstChild("Visitor") and v.Visitor.Value == false then
  23.        owner = v.Name
  24.        code = v.JoinCode.Value
  25.        local oBody = game.Workspace[owner]
  26.        local reply = "Island Owner:" .. owner .. " - Join Code:" .. code
  27.        print(reply)
  28.        _G.vendingTable[#_G.vendingTable+1] = reply
  29.        local a = Instance.new("BoxHandleAdornment", oBody)
  30.         a.Name = "Owner"
  31.         a.Parent = oBody
  32.         a.AlwaysOnTop = true
  33.         a.ZIndex = 0
  34.         a.Size = oBody.HumanoidRootPart.Size
  35.         a.Transparency = 0.1
  36.         a.Color = BrickColor.new("Really red")
  37.         local BillboardGui = Instance.new("BillboardGui", oBody)
  38.         local TextLabel = Instance.new("TextLabel")
  39.         BillboardGui.Adornee = oBody
  40.         BillboardGui.Name = "Owner"
  41.         BillboardGui.Size = UDim2.new(0, 100, 0, 150)
  42.         BillboardGui.StudsOffset = Vector3.new(0, 1, 0)
  43.         BillboardGui.AlwaysOnTop = true
  44.         TextLabel.Parent = BillboardGui
  45.         TextLabel.BackgroundTransparency = 1
  46.         TextLabel.Position = UDim2.new(0, 0, 0, -50)
  47.         TextLabel.Size = UDim2.new(0, 100, 0, 100)
  48.         TextLabel.Font = Enum.Font.SourceSansSemibold
  49.         TextLabel.TextSize = 40
  50.         TextLabel.TextColor3 = Color3.new(196, 40, 28)
  51.         TextLabel.TextStrokeTransparency = 0
  52.         TextLabel.TextYAlignment = Enum.TextYAlignment.Bottom
  53.         TextLabel.Text = "Owner"
  54.     end
  55. end
  56.  
  57. --Get Island    
  58. for i,v in pairs(game:GetService("Workspace").Islands:GetChildren()) do
  59.     if v:FindFirstChild("Blocks") then
  60.         island = v
  61.         blocks = v.Blocks
  62.         else
  63.             print("Unable to find island!")
  64.     end
  65. end
  66.  
  67. --Look for vending machine
  68. for i,v in pairs(blocks:GetChildren()) do
  69.     if v.Name == "vendingMachine" or v.Name == "vendingMachine1"  then
  70.         counter = counter +1
  71.         price = v.TransactionPrice.Value
  72.         if v.Mode.Value == 1 then
  73.             mode = "Buying"
  74.             elseif v.Mode.Value == 0 then
  75.             mode = "Selling"
  76.         end
  77.        for x,y in pairs(v.SellingContents:GetChildren()) do
  78.         item = y.Name
  79.         local answer = mode.. " a " .. item .. " for $" .. price
  80.         --print(answer)
  81.         _G.vendingTable[#_G.vendingTable+1] = answer
  82.         wait(0.001)
  83.        end
  84.     end
  85. end
  86. local saveAs = "AMT_scan- ".. owner .. ".txt"
  87. local json
  88. json = HttpService:JSONEncode(_G.vendingTable)
  89. writefile(saveAs, json)
  90.  print("Done Scanning:" .. counter .. " Vending Machines...")
  91.  print("            Made By King")
Add Comment
Please, Sign In to add comment