Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Script Created by Ajax
- local Ajax = Instance.new("ScreenGui")
- local mainframe = Instance.new("Frame")
- local steal = Instance.new("TextButton")
- local noclip = Instance.new("TextButton")
- local size = Instance.new ("TextBox")
- local credit = Instance.new("TextLabel")
- Ajax.Name = "Ajax"
- Ajax.Parent = game.CoreGui
- mainframe.Name = "mainframe"
- mainframe.Parent = Ajax
- mainframe.BackgroundColor3 = Color3.new(1,1,1)
- mainframe.Position = UDim2.new(0,0,0,200)
- mainframe.Size = UDim2.new(0,300,0,400)
- mainframe.BackgroundTransparency = 1
- steal.Name = "Autobuy"
- steal.Parent = mainframe
- steal.BackgroundColor3 = Color3.new(1,1,1,1)
- steal.Position = UDim2.new(0,0,0,230)
- steal.Size = UDim2.new(1,0,0.18,0)
- steal.Style = "RobloxRoundDropdownButton"
- steal.Text = "AutoBuy : Off"
- steal.TextScaled = true
- steal.BackgroundTransparency = 0.5
- steal.MouseButton1Click:connect (function()
- steal.Text = "AutoBuy : On"
- local send = game.ReplicatedStorage:WaitForChild('Items')
- game.ReplicatedStorage.Limitteds.ChildAdded:connect(function(c)
- if c:IsA('Folder') then
- local id = c:WaitForChild('AssetID')
- local price = c:WaitForChild('Price')
- if id and price then
- local result
- local succ, err = pcall(function()
- result = send:InvokeServer(price.Value, id.Value, c.Name, "ash1337")
- end)
- if succ then
- if result then
- warn('Successfully bought: ' .. c.Name)
- else
- warn('Failed to buy: ' .. c.Name)
- end
- else
- warn('Ran into an error when trying to buy ' .. c.Name .. ': ' .. err)
- end
- end
- end
- end)
- warn('Auto-buy loaded!')
- end)
- size.Name = "item"
- size.Parent = mainframe
- size.Position = UDim2.new(0,0,1,0)
- size.Size = UDim2.new(1,0,0.18,0)
- size.BackgroundColor3 = Color3.fromRGB(6, 140, 66)
- size.Text = "Mass Buy - This feature allows you to buy anything in catalog for free (Enter Item Name here, Cant Have N/A Serial)"
- size.TextScaled = true
- size.TextColor3 = Color3.fromRGB(1,1,1)
- size.BackgroundTransparency = 0
- noclip.Name = "BuyItem"
- noclip.Parent = size
- noclip.BackgroundColor3 = Color3.fromRGB(6, 140, 66)
- noclip.Position = UDim2.new(0,0,1,0)
- noclip.Size = UDim2.new(1,0,0,50)
- noclip.Text = "Buy"
- noclip.TextScaled = true
- noclip.TextColor3 = Color3.fromRGB(1,1,1)
- noclip.BackgroundTransparency = 0.3
- noclip.MouseButton1Click:connect (function()
- local itemname = size.Text
- local children = game.ReplicatedStorage.Limitteds:GetChildren()
- for i = 1, #children do
- local children2 = children[i].Privates:GetChildren()
- if (children[i].Name == itemname) then
- print(children[i].Name)
- print("Found item!")
- for i = 1, #children2 do
- game.ReplicatedStorage.PrivateSale:InvokeServer(1, children2[i].Id.Value, itemname, children2[i].Name)
- print(i.." Name:", children2[i].Name)
- end
- end
- end
- end)
- credit.Name = "credit"
- credit.Parent = mainframe
- credit.BackgroundTransparency = 1
- credit.Size = UDim2.new(1,0,0.15,0)
- credit.Text = "Gui made by Ajax"
- credit.BackgroundColor3 = Color3.new(178,34,34)
- credit.Position = UDim2.new(0,0,0,685)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement