Advertisement
Guest User

PS GUI

a guest
Sep 21st, 2019
489
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.26 KB | None | 0 0
  1. local PS = Instance.new("ScreenGui")
  2. local MainFrame = Instance.new("Frame")
  3. local Title = Instance.new("TextLabel")
  4. local Frame = Instance.new("Frame")
  5.  
  6. local Farm = Instance.new("TextButton")
  7. local Sell = Instance.new("TextButton")
  8.  
  9.  
  10. --Properties:
  11.  
  12. PS.Name = "PS"
  13. PS.Parent = game.CoreGui
  14.  
  15. MainFrame.Name = "MainFrame"
  16. MainFrame.Parent = PS
  17. MainFrame.Active = true
  18. MainFrame.BackgroundColor3 = Color3.new(0, 0, 0)
  19. MainFrame.BackgroundTransparency = 0
  20. MainFrame.BorderColor3 = Color3.new(1, 1, 1)
  21. MainFrame.Position = UDim2.new(0, 325, 0, 125)
  22. MainFrame.Selectable = true
  23. MainFrame.Draggable = true
  24. MainFrame.Size = UDim2.new(0, 175, 0, 25)
  25.  
  26. Title.Name = "Title"
  27. Title.Parent = MainFrame
  28. Title.BackgroundColor3 = Color3.new(1, 1, 1)
  29. Title.BackgroundTransparency = 1
  30. Title.Position = UDim2.new(0, 15, 0, 0)
  31. Title.Size = UDim2.new(0, 145, 0, 25)
  32. Title.Font = Enum.Font.GothamBold
  33. Title.Text = "Popsicle Simulator"
  34. Title.TextColor3 = Color3.new(1, 1, 1)
  35. Title.TextSize = 14
  36. Title.TextScaled = true
  37.  
  38. Frame.Parent = MainFrame
  39. Frame.BackgroundColor3 = Color3.new(0, 0, 0)
  40. Frame.BackgroundTransparency = 0
  41. Frame.BorderColor3 = Color3.new(1, 1, 1)
  42. Frame.Position = UDim2.new(0, 0, 0, 25)
  43. Frame.Size = UDim2.new(0, 175, 0, 50)
  44.  
  45. Farm.Name = "Farm"
  46. Farm.Parent = Frame
  47. Farm.BackgroundColor3 = Color3.new(0, 0, 0)
  48. Farm.BackgroundTransparency = 0.5
  49. Farm.BorderColor3 = Color3.new(1, 1, 1)
  50. Farm.Position = UDim2.new(0, 10, 0, 10)
  51. Farm.Size = UDim2.new(0, 75, 0, 20)
  52. Farm.Font = Enum.Font.GothamBold
  53. Farm.Text = "Autofarm: OFF"
  54. Farm.TextColor3 = Color3.new(1, 0, 0)
  55. Farm.TextSize = 14
  56. Farm.TextScaled = true
  57.  
  58. Sell.Name = "Sell"
  59. Sell.Parent = Frame
  60. Sell.BackgroundColor3 = Color3.new(0, 0, 0)
  61. Sell.BackgroundTransparency = 0.5
  62. Sell.BorderColor3 = Color3.new(1, 1, 1)
  63. Sell.Position = UDim2.new(0, 90, 0, 10)
  64. Sell.Size = UDim2.new(0, 75, 0, 20)
  65. Sell.Font = Enum.Font.GothamBold
  66. Sell.Text = "Sell: OFF"
  67. Sell.TextColor3 = Color3.new(1, 0, 0)
  68. Sell.TextSize = 14
  69. Sell.TextScaled = true
  70.  
  71.  
  72.  
  73. -- Scripts:
  74.  
  75. local r = game:GetService('ReplicatedStorage').Events.Remote['PlayerClickEvent']
  76. local rs = game:GetService('RunService').RenderStepped
  77. local plr = game.Players.LocalPlayer
  78. local char = plr.Character.HumanoidRootPart
  79. local mini = true
  80.  
  81. _G.sell = false
  82. _G.shiny = false
  83. _G.farm = false
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90. Farm.MouseButton1Down:connect(function()
  91. if _G.farm == true then
  92. _G.farm = false
  93. Farm.TextColor3 = Color3.new(1, 0, 0)
  94. Farm.Text = "Autofarm: OFF"
  95. else
  96. _G.farm = true
  97. Farm.TextColor3 = Color3.new(0, 0.666667, 0)
  98. Farm.Text = "Autofarm: ON"
  99.  
  100. while rs:wait() and _G.farm == true do
  101. for i = 1,10 do
  102. r:FireServer(game.ReplicatedStorage.Events.Remote.PlayerClickEvent)
  103. end
  104. end
  105. end
  106. end)
  107.  
  108. Sell.MouseButton1Down:connect(function()
  109. if _G.sell == true then
  110. _G.sell = false
  111. Sell.TextColor3 = Color3.new(1, 0, 0)
  112. Sell.Text = "Sell: OFF"
  113. else
  114. _G.sell = true
  115. Sell.TextColor3 = Color3.new(0, 0.666667, 0)
  116. Sell.Text = "Sell: ON"
  117. while _G.sell == true do
  118. game.Workspace.GameObjects.SellHexagonPart.CanCollide = false
  119. game.Workspace.GameObjects.SellHexagonPart.Transparency = 1
  120. game.Workspace.GameObjects.SellHexagonPart.CFrame = char.CFrame + Vector3.new(0,math.random(-1,1),0)
  121. wait()
  122. end
  123. end
  124. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement