BjeffeHund

Mower sim autofarm

Jan 18th, 2020
1,759
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.31 KB | None | 0 0
  1. local ScreenGui = Instance.new("ScreenGui")
  2. local Frame = Instance.new("Frame")
  3. local currenttier = Instance.new("TextLabel")
  4. local tier = Instance.new("TextLabel")
  5. ScreenGui.Parent = game.CoreGui
  6. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  7. Frame.Parent = ScreenGui
  8. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  9. Frame.Position = UDim2.new(0.461720586, 0, 0.110278375, 0)
  10. Frame.Size = UDim2.new(0, 142, 0, 130)
  11. Frame.Active = true
  12. Frame.Draggable = true
  13. currenttier.Name = "current tier"
  14. currenttier.Parent = Frame
  15. currenttier.BackgroundColor3 = Color3.new(1, 1, 1)
  16. currenttier.Size = UDim2.new(0, 142, 0, 47)
  17. currenttier.Font = Enum.Font.SourceSans
  18. currenttier.Text = "Current Tier:"
  19. currenttier.TextColor3 = Color3.new(0, 0, 0)
  20. currenttier.TextSize = 14
  21. currenttier.TextWrapped = true
  22. tier.Name = "tier"
  23. tier.Parent = Frame
  24. tier.BackgroundColor3 = Color3.new(1, 1, 1)
  25. tier.BackgroundTransparency = 1
  26. tier.Position = UDim2.new(0, 0, 0.484615386, 0)
  27. tier.Size = UDim2.new(0, 142, 0, 43)
  28. tier.Font = Enum.Font.SourceSans
  29. tier.TextColor3 = Color3.new(0, 0, 0)
  30. tier.TextScaled = true
  31. tier.TextSize = 14
  32. tier.TextWrapped = true
  33. local Autofarm = _G.settings.On
  34. local Speed = _G.settings.Speed
  35. local move = _G.settings.TimeBetweenMove
  36. local autoUpgrade = _G.settings["Auto Upgrade"]
  37. local autoRebirth = _G.settings["Auto Rebirth"]
  38. repeat wait() until game.Players.LocalPlayer.Character ~= nil
  39. repeat wait() until game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart")
  40. if game:GetService("Workspace"):FindFirstChild("Bench") then
  41. game:GetService("Workspace").Bench:Destroy()
  42. end
  43. wait(0.5)
  44. local hum2 = game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart")
  45. game:GetService("Workspace").Pads.Shop.CFrame = hum2.CFrame
  46. game.Players.LocalPlayer.Character.Humanoid:ChangeState(3)
  47. wait(1)
  48. local auto_equip = coroutine.wrap(function()
  49. game:GetService('RunService').Stepped:connect(function()
  50. if Autofarm then
  51. for i,x in pairs(game:GetService("Workspace").Pads:GetChildren()) do
  52. if x:IsA("Part") and game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then
  53. x.CFrame = game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart").CFrame + Vector3.new(math.random(-10,10),0,0)
  54. end
  55. end
  56. for i,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  57. v.Parent = game.Players.LocalPlayer.Character
  58. end
  59. end
  60. end)
  61. end)
  62. auto_equip()
  63. local q = coroutine.wrap(function()
  64. while wait() do
  65. if Autofarm then
  66. local hum = game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart")
  67. local lol = {}
  68. for i,v in pairs(game:GetService("Workspace")["Main Island Models"]:GetChildren()) do
  69. if string.find(v.Name, "Tree") then
  70. if v:FindFirstChild("MeshPart") then
  71. table.insert(lol, v)
  72. end
  73. end
  74. end
  75. local kek = lol[math.random(1, #lol)]
  76. game:GetService("TweenService"):create(hum,TweenInfo.new((hum.Position-kek.MeshPart.Position).Magnitude/Speed,Enum.EasingStyle.Quad), {CFrame = kek.MeshPart.CFrame*CFrame.new(0,-7,0)}):Play()
  77. wait(move)
  78. end
  79. end
  80. end)
  81. q()
  82. local tpsell = coroutine.wrap(function()
  83. while wait() do
  84. if Autofarm then
  85. game:GetService("ReplicatedStorage").RF:InvokeServer("grassCollect", {[1] = 1})
  86. game:GetService("ReplicatedStorage").RF:InvokeServer("grassCollect", {[1] = 2})
  87. end
  88. end
  89. end)
  90. tpsell()
  91. local shitGame = coroutine.wrap(function()
  92. while wait(0.5) do
  93. local hum3 = game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart")
  94. if autoUpgrade then
  95. local remote = game:GetService("ReplicatedStorage").RF
  96. zoinks = 0
  97. arse = {}
  98. for i,v in pairs(game:GetService("Players").LocalPlayer.PlayerGui.gameUI.shopFrame.scrollingFrame:GetChildren()) do
  99. if v:IsA("TextButton") then
  100. table.insert(arse, v)
  101. if v.Text == "" then
  102. zoinks = zoinks+1
  103. end
  104. end
  105. end
  106. if _G.settings.auto_rebirth_settings.Enabled and autoRebirth and zoinks ~= 0 then
  107. if zoinks >= tonumber(_G.settings.auto_rebirth_settings.CustomTeirRebirth) then
  108. print("Ok")
  109. game:GetService("ReplicatedStorage").RF:InvokeServer("Rebirth", {})
  110. end
  111. end
  112. if zoinks ~= 0 then
  113. tier.Name = zoinks
  114. tier.Text = zoinks
  115. for i,x in pairs(arse[zoinks]:GetDescendants()) do
  116. if x:IsA("Model") then
  117. remote:InvokeServer("buyOrEquipMower", {[1] = x.Name})
  118. remote:InvokeServer("buyUpgrade", {[1] = "rangeLevel"})
  119. remote:InvokeServer("buyUpgrade", {[1] = "bagLevel"})
  120. for i,c in pairs(arse[zoinks - 1]:GetDescendants()) do
  121. if c:IsA("Model") then
  122. remote:InvokeServer("buyOrEquipMower", {[1] = c.Name})
  123. end
  124. end
  125. end
  126. end
  127. end
  128. end
  129. end
  130. end)
  131. shitGame()
  132. local notvis = coroutine.wrap(function()
  133. while wait() do
  134. if Autofarm then
  135. local hum2 = game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart")
  136. game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  137. hum2.Velocity = Vector3.new(-200,-200,-200)
  138. if game:GetService("Players").LocalPlayer.PlayerGui.gameUI.shopFrame ~= nil then
  139. game:GetService("Players").LocalPlayer.PlayerGui.gameUI.shopFrame.Visible = false
  140. end
  141. end
  142. end
  143. end)
  144. notvis()
  145. local rebirth = coroutine.wrap(function()
  146. while wait(1) do
  147. if autoRebirth then
  148. if not _G.settings.auto_rebirth_settings.Enabled then
  149. game:GetService("ReplicatedStorage").RF:InvokeServer("Rebirth", {})
  150. end
  151. end
  152. end
  153. end)
  154. game:GetService("Players").LocalPlayer.Idled:connect(function()
  155. game:GetService("VirtualUser"):Button2Down(Vector2.new())
  156. end)
  157. rebirth()
Add Comment
Please, Sign In to add comment