Advertisement
Guest User

Untitled

a guest
Jan 20th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.08 KB | None | 0 0
  1. -- XXI#0021
  2.  
  3. local ScreenGui = Instance.new("ScreenGui")
  4. local Frame = Instance.new("Frame")
  5. local XXIbutton = Instance.new("TextButton")
  6. --don't forget to v0uch
  7. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  8.  
  9. Frame.Parent = ScreenGui
  10. Frame.BackgroundColor3 = Color3.new(0.45098, 0.45098, 0.45098)
  11. Frame.BackgroundTransparency = 0.30000001192093
  12. Frame.BorderColor3 = Color3.new(0, 0, 0)
  13. Frame.BorderSizePixel = 2
  14. Frame.Position = UDim2.new(0.680526853, 0, 0.846673965, 0)
  15. Frame.Size = UDim2.new(0, 183, 0, 48)
  16.  
  17. XXIbutton.Name = "XXIbutton"
  18. XXIbutton.Parent = ScreenGui
  19. XXIbutton.BackgroundColor3 = Color3.new(0.45098, 0.45098, 0.45098)
  20. XXIbutton.BackgroundTransparency = 0.30000001192093
  21. XXIbutton.Position = UDim2.new(0.680412412, 0, 0.846613586, 0)
  22. XXIbutton.Size = UDim2.new(0, 183, 0, 48)
  23. XXIbutton.Font = Enum.Font.SciFi
  24. XXIbutton.Text = "Auto Buy xd"
  25. XXIbutton.TextColor3 = Color3.new(0, 0, 0)
  26. XXIbutton.TextSize = 14
  27. -- hi
  28. function SCRIPT_IOEM86_FAKESCRIPT() -- XXIbutton.Script
  29. local script = Instance.new('Script')
  30. script.Parent = XXIbutton
  31. XXIbutton.MouseButton1Click:connect (function()
  32. XXIbutton.Text = "Auto Buy xd"
  33. local send = game.ReplicatedStorage:WaitForChild('Items')
  34.  
  35. game.ReplicatedStorage.Limitteds.ChildAdded:connect(function(x)
  36. if x:IsA('Folder') then
  37. local id = x:WaitForChild('AssetID')
  38. local price = x:WaitForChild('Price')
  39. if id and price then
  40. local result
  41. local succ, err = pcall(function()
  42. result = send:InvokeServer(price.Value, id.Value, x.Name, "ash1337")
  43. end)
  44. if succ then
  45. if result then
  46. warn('Successfully bought: ' .. x.Name)
  47. else
  48. warn('Failed to buy: ' .. x.Name)
  49. end
  50.  
  51. else
  52. warn('Ran into an error when trying to buy ' .. x.Name .. ': ' .. err)
  53. end
  54. end
  55. end
  56. end)
  57.  
  58. warn('Auto-buy loaded!')
  59. end)
  60.  
  61. end
  62. coroutine.resume(coroutine.create(SCRIPT_IOEM86_FAKESCRIPT))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement