Advertisement
XurSF

Untitled

Jan 7th, 2021
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.99 KB | None | 0 0
  1. local TresureBreakSimulator = Instance.new("ScreenGui")
  2. local BG = Instance.new("Frame")
  3. local Line = Instance.new("Frame")
  4. local ToolBoxBG = Instance.new("Frame")
  5. local ToolBox = Instance.new("TextBox")
  6. local AutoFarm = Instance.new("TextButton")
  7. local AutoRebirth = Instance.new("TextButton")
  8. local Top = Instance.new("TextLabel")
  9.  
  10. --Toggle
  11. local Farm = false
  12. local Rebirth = false
  13.  
  14. --ButtonToggle
  15. local Click1 = false
  16. local Click2 = false
  17.  
  18. TresureBreakSimulator.Name = "TresureBreakSimulator"
  19. TresureBreakSimulator.Parent = game.CoreGui
  20. TresureBreakSimulator.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  21. BG.Name = "BG"
  22. BG.Parent = TresureBreakSimulator
  23. BG.BackgroundColor3 = Color3.new(1, 0.823529, 0.54902)
  24. BG.BackgroundTransparency = 0.20000000298023
  25. BG.BorderColor3 = Color3.new(0, 0, 0)
  26. BG.BorderSizePixel = 5
  27. BG.Position = UDim2.new(0.604587197, 0, 0.30796814, 0)
  28. BG.Size = UDim2.new(0, 250, 0, 150)
  29. BG.Active = true
  30. BG.Selectable = true
  31. BG.Draggable = true
  32. Line.Name = "Line"
  33. Line.Parent = BG
  34. Line.BackgroundColor3 = Color3.new(0, 0, 0)
  35. Line.BorderSizePixel = 0
  36. Line.Position = UDim2.new(0, 0, 0, 72)
  37. Line.Size = UDim2.new(0, 250, 0, 5)
  38. ToolBoxBG.Name = "ToolBoxBG"
  39. ToolBoxBG.Parent = BG
  40. ToolBoxBG.BackgroundColor3 = Color3.new(1, 0.823529, 0.54902)
  41. ToolBoxBG.BackgroundTransparency = 0.20000000298023
  42. ToolBoxBG.BorderColor3 = Color3.new(0, 0, 0)
  43. ToolBoxBG.BorderSizePixel = 5
  44. ToolBoxBG.Position = UDim2.new(0, 25, 1, 5)
  45. ToolBoxBG.Size = UDim2.new(0, 200, 0, 50)
  46. ToolBox.Name = "ToolBox"
  47. ToolBox.Parent = ToolBoxBG
  48. ToolBox.BackgroundColor3 = Color3.new(0.490196, 0.490196, 0.490196)
  49. ToolBox.BorderColor3 = Color3.new(0.0980392, 0.0980392, 0.0980392)
  50. ToolBox.BorderSizePixel = 0
  51. ToolBox.Size = UDim2.new(0, 200, 0, 50)
  52. ToolBox.Font = Enum.Font.GothamBold
  53. ToolBox.PlaceholderColor3 = Color3.new(0, 0, 0)
  54. ToolBox.PlaceholderText = "Tool Name"
  55. ToolBox.Text = game.Players.LocalPlayer.Backpack:FindFirstChildOfClass("Tool").Name
  56. ToolBox.TextColor3 = Color3.new(0, 0, 0)
  57. ToolBox.TextSize = 35
  58. ToolBox.TextWrapped = true
  59. AutoFarm.Name = "AutoFarm"
  60. AutoFarm.Parent = BG
  61. AutoFarm.BackgroundColor3 = Color3.new(0.882353, 0.882353, 0.882353)
  62. AutoFarm.BorderColor3 = Color3.new(1, 0, 0)
  63. AutoFarm.BorderSizePixel = 5
  64. AutoFarm.Position = UDim2.new(0, 25, 0, 5)
  65. AutoFarm.Size = UDim2.new(0, 200, 0, 62)
  66. AutoFarm.Font = Enum.Font.GothamBold
  67. AutoFarm.Text = "Auto Farm"
  68. AutoFarm.TextColor3 = Color3.new(1, 0, 0)
  69. AutoFarm.TextScaled = true
  70. AutoFarm.TextSize = 14
  71. AutoFarm.TextWrapped = true
  72. AutoFarm.MouseButton1Click:Connect(function()
  73. if Click1 then
  74. Click1 = false
  75. Farm = false
  76. AutoFarm.TextColor3 = Color3.new(1,0,0)
  77. AutoFarm.BorderColor3 = Color3.new(1,0,0)
  78. else
  79. if game.Players.LocalPlayer.Character:FindFirstChild(ToolBox.Text) then
  80. print('Already EquipTool')
  81. else
  82. game.Players.LocalPlayer.Character.Humanoid:EquipTool(game.Players.LocalPlayer.Backpack[ToolBox.Text])
  83. end
  84. Click1 = true
  85. Farm = true
  86. AutoFarm.TextColor3 = Color3.new(0,1,0)
  87. AutoFarm.BorderColor3 = Color3.new(0,1,0)
  88. end
  89. end)
  90. AutoRebirth.Name = "AutoRebirth"
  91. AutoRebirth.Parent = BG
  92. AutoRebirth.BackgroundColor3 = Color3.new(0.882353, 0.882353, 0.882353)
  93. AutoRebirth.BorderColor3 = Color3.new(1, 0, 0)
  94. AutoRebirth.BorderSizePixel = 5
  95. AutoRebirth.Position = UDim2.new(0, 25, 0, 82)
  96. AutoRebirth.Size = UDim2.new(0, 200, 0, 62)
  97. AutoRebirth.Font = Enum.Font.GothamBold
  98. AutoRebirth.Text = "Auto Rebirth"
  99. AutoRebirth.TextColor3 = Color3.new(1, 0, 0)
  100. AutoRebirth.TextScaled = true
  101. AutoRebirth.TextSize = 14
  102. AutoRebirth.TextWrapped = true
  103. AutoRebirth.MouseButton1Click:Connect(function()
  104. if Click1 then
  105. Click1 = false
  106. Rebirth = false
  107. AutoRebirth.TextColor3 = Color3.new(1,0,0)
  108. AutoRebirth.BorderColor3 = Color3.new(1,0,0)
  109. else
  110. Click1 = true
  111. Rebirth = true
  112. AutoRebirth.TextColor3 = Color3.new(0,1,0)
  113. AutoRebirth.BorderColor3 = Color3.new(0,1,0)
  114. end
  115. end)
  116. Top.Name = "Top"
  117. Top.Parent = BG
  118. Top.Active = true
  119. Top.BackgroundColor3 = Color3.new(1, 0.823529, 0.54902)
  120. Top.BorderColor3 = Color3.new(0, 0, 0)
  121. Top.BorderSizePixel = 5
  122. Top.Position = UDim2.new(0, 25, 0, -30)
  123. Top.Selectable = true
  124. Top.Size = UDim2.new(0, 200, 0, 25)
  125. Top.Font = Enum.Font.GothamBold
  126. Top.Text = "Treasure Break Simulator"
  127. Top.TextColor3 = Color3.new(0, 0, 0)
  128. Top.TextScaled = true
  129. Top.TextSize = 14
  130. Top.TextWrapped = true
  131.  
  132. local Character = game.Workspace:WaitForChild(game.Players.LocalPlayer.Name)
  133.  
  134. function Sell()
  135. local OldPos = Character.HumanoidRootPart.CFrame
  136. Character.HumanoidRootPart.CFrame = CFrame.new(3, 10, -160)
  137. game.ReplicatedStorage.Events.AreaSell:FireServer()
  138. wait(0.1)
  139. Character.HumanoidRootPart.CFrame = OldPos
  140. end
  141.  
  142. local function RE()
  143. while true do
  144. wait(1)
  145. if Rebirth == true then
  146. local a = game.Players.LocalPlayer.PlayerGui.Gui.Buttons.Coins.Amount.Text:gsub(',','')
  147. local b = game.Players.LocalPlayer.PlayerGui.Gui.Rebirth.Needed.Coins.Amount.Text:gsub(',','')
  148. print(tonumber(a))
  149. print(tonumber(b))
  150. if tonumber(a) > tonumber(b) then
  151. warn('Calculation Complete!')
  152. game.ReplicatedStorage.Events.Rebirth:FireServer()
  153. ToolBox.Text = "Bucket"
  154. repeat wait(.1) until game.Players.LocalPlayer.PlayerGui.Gui.Popups.GiveReward.Visible == true
  155. game.Players.LocalPlayer.PlayerGui.Gui.Popups.GiveReward.Visible = false
  156. wait()
  157. end
  158. end
  159. end
  160. end
  161.  
  162. spawn(RE)
  163.  
  164. while true do
  165. wait()
  166. if Farm then
  167. local Sand = nil
  168. local SandName = ""
  169. for i,v in pairs (game.Workspace.SandBlocks:GetChildren()) do
  170. if not Farm then
  171. Sell()
  172. break
  173. end
  174. if v:FindFirstChild("Chest") then
  175. if v.CFrame.X > -40 and v.CFrame.X < 20 and v.CFrame.Z < -175 and v.CFrame.Z > -235 then
  176. local Next = false
  177. if v == nil then
  178. Next = false
  179. else
  180. Next = true
  181. Sand = v
  182. SandName = v.Name
  183. end
  184. if Next == true then
  185. local Success,Problem = pcall(function()
  186. if game.Players[game.Players.LocalPlayer.Name].PlayerGui.Gui.Popups.BackpackFull.Visible == true then Sell() end
  187. Sand.CanCollide = false
  188. local Coins = game.Players.LocalPlayer.PlayerGui.Gui.Buttons.Coins.Amount.Text
  189. repeat
  190. if game.Players[game.Players.LocalPlayer.Name].PlayerGui.Gui.Popups.BackpackFull.Visible == true then Sell() end
  191. if not Farm then
  192. wait(.1)
  193. Character.HumanoidRootPart.CFrame = CFrame.new(3, 10, -160)
  194. wait(1)
  195. break
  196. end
  197. Character.HumanoidRootPart.Anchored = true
  198. wait()
  199. Character.HumanoidRootPart.CFrame = Sand.CFrame
  200. wait()
  201. Character.HumanoidRootPart.Anchored = false
  202. Character:WaitForChild(ToolBox.Text)['RemoteClick']:FireServer(game.Workspace.SandBlocks[SandName])
  203. wait()
  204. until game.Players.LocalPlayer.PlayerGui.Gui.Buttons.Coins.Amount.Text ~= Coins
  205. Next = false
  206. end)
  207. if Success then
  208. print('Worked')
  209. else
  210. warn(Problem)
  211. end
  212. end
  213. end
  214. end
  215. end
  216. end
  217. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement