Advertisement
Guest User

Untitled

a guest
Jan 20th, 2018
1,597
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.21 KB | None | 0 0
  1. --Script Created by Ajax
  2.  
  3. local Ajax = Instance.new("ScreenGui")
  4. local mainframe = Instance.new("Frame")
  5. local steal = Instance.new("TextButton")
  6. local noclip = Instance.new("TextButton")
  7. local size = Instance.new ("TextBox")
  8. local credit = Instance.new("TextLabel")
  9.  
  10. Ajax.Name = "Ajax"
  11. Ajax.Parent = game.CoreGui
  12.  
  13. mainframe.Name = "mainframe"
  14. mainframe.Parent = Ajax
  15. mainframe.BackgroundColor3 = Color3.new(1,1,1)
  16. mainframe.Position = UDim2.new(0,0,0,200)
  17. mainframe.Size = UDim2.new(0,300,0,400)
  18. mainframe.BackgroundTransparency = 1
  19.  
  20. steal.Name = "Autobuy"
  21. steal.Parent = mainframe
  22. steal.BackgroundColor3 = Color3.new(1,1,1,1)
  23. steal.Position = UDim2.new(0,0,0,230)
  24. steal.Size = UDim2.new(1,0,0.18,0)
  25. steal.Style = "RobloxRoundDropdownButton"
  26. steal.Text = "AutoBuy : Off"
  27. steal.TextScaled = true
  28. steal.BackgroundTransparency = 0.5
  29.  
  30. steal.MouseButton1Click:connect (function()
  31. steal.Text = "AutoBuy : On"
  32. local send = game.ReplicatedStorage:WaitForChild('Items')
  33.  
  34. game.ReplicatedStorage.Limitteds.ChildAdded:connect(function(c)
  35. if c:IsA('Folder') then
  36. local id = c:WaitForChild('AssetID')
  37. local price = c:WaitForChild('Price')
  38. if id and price then
  39. local result
  40. local succ, err = pcall(function()
  41. result = send:InvokeServer(price.Value, id.Value, c.Name, "ash1337")
  42. end)
  43. if succ then
  44. if result then
  45. warn('Successfully bought: ' .. c.Name)
  46. else
  47. warn('Failed to buy: ' .. c.Name)
  48. end
  49.  
  50. else
  51. warn('Ran into an error when trying to buy ' .. c.Name .. ': ' .. err)
  52. end
  53. end
  54. end
  55. end)
  56.  
  57. warn('Auto-buy loaded!')
  58. end)
  59.  
  60.  
  61.  
  62. size.Name = "item"
  63. size.Parent = mainframe
  64. size.Position = UDim2.new(0,0,1,0)
  65. size.Size = UDim2.new(1,0,0.18,0)
  66. size.BackgroundColor3 = Color3.fromRGB(6, 140, 66)
  67. size.Text = "Mass Buy - This feature allows you to buy anything in catalog for free (Enter Item Name here, Cant Have N/A Serial)"
  68. size.TextScaled = true
  69. size.TextColor3 = Color3.fromRGB(1,1,1)
  70. size.BackgroundTransparency = 0
  71.  
  72. noclip.Name = "BuyItem"
  73. noclip.Parent = size
  74. noclip.BackgroundColor3 = Color3.fromRGB(6, 140, 66)
  75. noclip.Position = UDim2.new(0,0,1,0)
  76. noclip.Size = UDim2.new(1,0,0,50)
  77. noclip.Text = "Buy"
  78. noclip.TextScaled = true
  79. noclip.TextColor3 = Color3.fromRGB(1,1,1)
  80. noclip.BackgroundTransparency = 0.3
  81.  
  82. noclip.MouseButton1Click:connect (function()
  83. local itemname = size.Text
  84. local children = game.ReplicatedStorage.Limitteds:GetChildren()
  85. for i = 1, #children do
  86. local children2 = children[i].Privates:GetChildren()
  87. if (children[i].Name == itemname) then
  88. print(children[i].Name)
  89. print("Found item!")
  90. for i = 1, #children2 do
  91. game.ReplicatedStorage.PrivateSale:InvokeServer(1, children2[i].Id.Value, itemname, children2[i].Name)
  92. print(i.." Name:", children2[i].Name)
  93. end
  94. end
  95. end
  96. end)
  97.  
  98.  
  99.  
  100. credit.Name = "credit"
  101. credit.Parent = mainframe
  102. credit.BackgroundTransparency = 1
  103. credit.Size = UDim2.new(1,0,0.15,0)
  104. credit.Text = "Gui made by Ajax"
  105. credit.BackgroundColor3 = Color3.new(178,34,34)
  106. credit.Position = UDim2.new(0,0,0,685)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement