Advertisement
Guest User

forest

a guest
Nov 20th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.07 KB | None | 0 0
  1. local FSGui = Instance.new("ScreenGui")
  2. local MainFrame = Instance.new("Frame")
  3. local Title = Instance.new("TextLabel")
  4. local Close = Instance.new("TextButton")
  5. local Frame = Instance.new("Frame")
  6. local Farm = Instance.new("TextButton")
  7. local Farming = Instance.new("TextLabel")
  8. local FarmLabel = Instance.new("TextLabel")
  9. local Tier = Instance.new("TextBox")
  10. local RebirthLabel = Instance.new("TextLabel")
  11. local RebirthAmount = Instance.new("TextLabel")
  12. local Rebirth = Instance.new("TextButton")
  13. local Rebirthing = Instance.new("TextLabel")
  14. local Minimize = Instance.new("TextButton")
  15.  
  16. FSGui.Name = "FSGui"
  17. FSGui.Parent = game.CoreGui
  18.  
  19. MainFrame.Name = "MainFrame"
  20. MainFrame.Parent = FSGui
  21. MainFrame.Active = true
  22. MainFrame.BackgroundColor3 = Color3.new(1, 1, 1)
  23. MainFrame.Position = UDim2.new(0, 295, 0, 145)
  24. MainFrame.Selectable = true
  25. MainFrame.Size = UDim2.new(0, 180, 0, 20)
  26. MainFrame.Style = Enum.FrameStyle.RobloxRound
  27. MainFrame.Draggable = true
  28.  
  29. Title.Name = "Title"
  30. Title.Parent = MainFrame
  31. Title.BackgroundColor3 = Color3.new(1, 1, 1)
  32. Title.BackgroundTransparency = 1
  33. Title.Position = UDim2.new(0, 15, 0, -5)
  34. Title.Size = UDim2.new(0, 135, 0, 15)
  35. Title.Font = Enum.Font.Gotham
  36. Title.Text = "Forest Simulator Gui"
  37. Title.TextColor3 = Color3.new(1, 1, 1)
  38. Title.TextSize = 14
  39.  
  40. Close.Name = "Close"
  41. Close.Parent = MainFrame
  42. Close.BackgroundColor3 = Color3.new(0, 0, 0)
  43. Close.BackgroundTransparency = 1
  44. Close.BorderColor3 = Color3.new(1, 1, 1)
  45. Close.Position = UDim2.new(0, 155, 0, -5)
  46. Close.Size = UDim2.new(0, 15, 0, 15)
  47. Close.Font = Enum.Font.Gotham
  48. Close.Text = "X"
  49. Close.TextColor3 = Color3.new(1, 0, 0)
  50. Close.TextSize = 13
  51.  
  52. Frame.Parent = MainFrame
  53. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  54. Frame.Position = UDim2.new(0, -3, 0, 12)
  55. Frame.Size = UDim2.new(0, 171, 0, 125)
  56. Frame.Style = Enum.FrameStyle.RobloxSquare
  57.  
  58. Farm.Name = "Farm"
  59. Farm.Parent = Frame
  60. Farm.BackgroundColor3 = Color3.new(1, 1, 1)
  61. Farm.Position = UDim2.new(0, 0, 0, 20)
  62. Farm.Size = UDim2.new(0, 120, 0, 30)
  63. Farm.Style = Enum.ButtonStyle.RobloxRoundButton
  64. Farm.Font = Enum.Font.Gotham
  65. Farm.Text = "Auto Farm"
  66. Farm.TextColor3 = Color3.new(0, 0, 0)
  67. Farm.TextSize = 15
  68.  
  69. Farming.Name = "Farming"
  70. Farming.Parent = Frame
  71. Farming.BackgroundColor3 = Color3.new(0, 0, 0)
  72. Farming.BackgroundTransparency = 1
  73. Farming.BorderColor3 = Color3.new(1, 1, 1)
  74. Farming.BorderSizePixel = 0
  75. Farming.Position = UDim2.new(0, 115, 0, 20)
  76. Farming.Size = UDim2.new(0, 45, 0, 30)
  77. Farming.Font = Enum.Font.Gotham
  78. Farming.Text = "OFF"
  79. Farming.TextColor3 = Color3.new(1, 0, 0)
  80. Farming.TextSize = 14
  81.  
  82. FarmLabel.Name = "FarmLabel"
  83. FarmLabel.Parent = Frame
  84. FarmLabel.BackgroundColor3 = Color3.new(0, 0, 0)
  85. FarmLabel.BackgroundTransparency = 1
  86. FarmLabel.BorderColor3 = Color3.new(1, 1, 1)
  87. FarmLabel.BorderSizePixel = 0
  88. FarmLabel.Position = UDim2.new(0, -5, 0, -5)
  89. FarmLabel.Size = UDim2.new(0, 130, 0, 25)
  90. FarmLabel.Font = Enum.Font.Gotham
  91. FarmLabel.Text = "Farming Tier :"
  92. FarmLabel.TextColor3 = Color3.new(1, 1, 1)
  93. FarmLabel.TextSize = 16
  94.  
  95. Tier.Name = "Tier"
  96. Tier.Parent = Frame
  97. Tier.BackgroundColor3 = Color3.new(0.45098, 0.45098, 0.45098)
  98. Tier.Position = UDim2.new(0, 120, 0, -2)
  99. Tier.Size = UDim2.new(0, 30, 0, 20)
  100. Tier.Font = Enum.Font.Gotham
  101. Tier.PlaceholderColor3 = Color3.new(0, 0, 0)
  102. Tier.Text = "12"
  103. Tier.TextColor3 = Color3.new(0, 0, 0)
  104. Tier.TextSize = 16
  105.  
  106. RebirthLabel.Name = "RebirthLabel"
  107. RebirthLabel.Parent = Frame
  108. RebirthLabel.BackgroundColor3 = Color3.new(0, 0, 0)
  109. RebirthLabel.BackgroundTransparency = 1
  110. RebirthLabel.BorderColor3 = Color3.new(1, 1, 1)
  111. RebirthLabel.BorderSizePixel = 0
  112. RebirthLabel.Position = UDim2.new(0, 0, 0, 55)
  113. RebirthLabel.Size = UDim2.new(0, 90, 0, 25)
  114. RebirthLabel.Font = Enum.Font.Gotham
  115. RebirthLabel.Text = "Rebirths :"
  116. RebirthLabel.TextColor3 = Color3.new(1, 1, 1)
  117. RebirthLabel.TextSize = 16
  118.  
  119. RebirthAmount.Name = "RebirthAmount"
  120. RebirthAmount.Parent = Frame
  121. RebirthAmount.BackgroundColor3 = Color3.new(0, 0, 0)
  122. RebirthAmount.BackgroundTransparency = 1
  123. RebirthAmount.BorderColor3 = Color3.new(1, 1, 1)
  124. RebirthAmount.BorderSizePixel = 0
  125. RebirthAmount.Position = UDim2.new(0, 85, 0, 55)
  126. RebirthAmount.Size = UDim2.new(0, 65, 0, 25)
  127. RebirthAmount.Font = Enum.Font.Gotham
  128. RebirthAmount.Text = "135/145"
  129. RebirthAmount.TextColor3 = Color3.new(1, 1, 0)
  130. RebirthAmount.TextSize = 16
  131.  
  132. Rebirth.Name = "Rebirth"
  133. Rebirth.Parent = Frame
  134. Rebirth.BackgroundColor3 = Color3.new(1, 1, 1)
  135. Rebirth.Position = UDim2.new(0, 0, 0, 80)
  136. Rebirth.Size = UDim2.new(0, 120, 0, 30)
  137. Rebirth.Style = Enum.ButtonStyle.RobloxRoundButton
  138. Rebirth.Font = Enum.Font.Gotham
  139. Rebirth.Text = "Auto Rebirth"
  140. Rebirth.TextColor3 = Color3.new(0, 0, 0)
  141. Rebirth.TextSize = 15
  142.  
  143. Rebirthing.Name = "Rebirthing"
  144. Rebirthing.Parent = Frame
  145. Rebirthing.BackgroundColor3 = Color3.new(0, 0, 0)
  146. Rebirthing.BackgroundTransparency = 1
  147. Rebirthing.BorderColor3 = Color3.new(1, 1, 1)
  148. Rebirthing.BorderSizePixel = 0
  149. Rebirthing.Position = UDim2.new(0, 115, 0, 80)
  150. Rebirthing.Size = UDim2.new(0, 45, 0, 30)
  151. Rebirthing.Font = Enum.Font.Gotham
  152. Rebirthing.Text = "OFF"
  153. Rebirthing.TextColor3 = Color3.new(1, 0, 0)
  154. Rebirthing.TextSize = 15
  155.  
  156. Minimize.Name = "Minimize"
  157. Minimize.Parent = MainFrame
  158. Minimize.BackgroundColor3 = Color3.new(0, 0, 0)
  159. Minimize.BackgroundTransparency = 1
  160. Minimize.BorderColor3 = Color3.new(1, 1, 1)
  161. Minimize.Position = UDim2.new(0, -5, 0, -5)
  162. Minimize.Size = UDim2.new(0, 15, 0, 15)
  163. Minimize.Font = Enum.Font.Gotham
  164. Minimize.Text = "-"
  165. Minimize.TextColor3 = Color3.new(1, 0, 0)
  166. Minimize.TextSize = 22
  167.  
  168. local plr = game:GetService("Players").LocalPlayer
  169. local rebirths = plr.PlayerGui.Rebirth.Background.ExpBar.Health
  170. local remotes = game:GetService("ReplicatedStorage").Remotes
  171. local pieces = string.split(rebirths.Text, "/")
  172. local open = true
  173.  
  174. _G.farm = false
  175. _G.clip = false
  176. _G.rebirth = false
  177.  
  178. RebirthAmount.Text = rebirths.Text
  179.  
  180. Close.MouseButton1Click:Connect(function()
  181. FSGui:Destroy()
  182. end)
  183.  
  184. Minimize.MouseButton1Click:Connect(function()
  185. if open == true then
  186. open = false
  187. Frame.Visible = false
  188. else if open == false then
  189. open = true
  190. Frame.Visible = true
  191. end
  192. end
  193. end)
  194.  
  195. Rebirth.MouseButton1Click:Connect(function()
  196. if _G.rebirth then
  197. _G.rebirth = false
  198. Rebirthing.TextColor3 = Color3.new(1, 0, 0)
  199. Rebirthing.Text = "OFF"
  200. else if not _G.rebirth then
  201. _G.rebirth = true
  202. Rebirthing.TextColor3 = Color3.new(0, 1, 0)
  203. Rebirthing.Text = "ON"
  204. end
  205. end
  206. end)
  207.  
  208. Farm.MouseButton1Click:Connect(function()
  209. if _G.farm and _G.clip then
  210. _G.farm = false
  211. _G.clip = false
  212. Farming.TextColor3 = Color3.new(1, 0, 0)
  213. Farming.Text = "OFF"
  214. else if not _G.farm and not _G.clip then
  215. _G.farm = true
  216. _G.clip = true
  217. Farming.TextColor3 = Color3.new(0, 1, 0)
  218. Farming.Text = "ON"
  219. end
  220. end
  221. end)
  222.  
  223. while wait() do
  224. if _G.farm then
  225. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game:GetService("Workspace").SellALL.CFrame
  226. wait(0.1)
  227. for i,v in pairs(game:GetService("Workspace").DestroyableItems[Tier.Text].Trees:GetChildren()) do
  228. if v.HitBox then
  229. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = v.HitBox.CFrame
  230. repeat
  231. wait()
  232. game.Players.LocalPlayer.Character:findFirstChildOfClass("Tool").Remote:FireServer(v.HitBox)
  233. until v.Health.Value < 0
  234. end
  235. end
  236. end
  237. end
  238.  
  239. while wait() do
  240. if _G.rebirth then
  241. if pieces[1] == pieces[2] then
  242. remotes.Rebirth:FireServer()
  243. end
  244. end
  245. end
  246.  
  247. game:GetService('RunService').Stepped:connect(function()
  248. if _G.clip == true then
  249. game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Humanoid"):ChangeState(11)
  250. end
  251. end)
  252.  
  253. RebirthAmount.Text = (rebirths.Value)
  254.  
  255. rebirths.Changed:connect(function()
  256. RebirthAmount.Text = (rebirths.Value)
  257. end)
  258.  
  259. plr.Idled:connect(function()
  260. game:GetService("VirtualUser"):Button2Down(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  261. wait(1)
  262. game:GetService("VirtualUser"):Button2Up(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  263. end)
  264.  
  265. if game:GetService("Players").LocalPlayer.PlayerGui.BossEvent.Enabled == true then
  266. game:GetService("Players").LocalPlayer.PlayerGui.BossEvent.Enabled = false
  267. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement