Advertisement
Qamyz

Untitled

Apr 20th, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.90 KB | None | 0 0
  1. local me = game.Players.LocalPlayer
  2. local ok = false
  3.  
  4. local ScreenGui = Instance.new("ScreenGui")
  5. local Frame = Instance.new("Frame")
  6. local TextButton = Instance.new("TextButton")
  7. local TextLabel = Instance.new("TextLabel")
  8. local TextLabel_2 = Instance.new("TextLabel")
  9.  
  10. ScreenGui.Parent = game:GetService("CoreGui")
  11.  
  12. Frame.Parent = ScreenGui
  13. Frame.BackgroundColor3 = Color3.new(0.301961, 0.301961, 0.301961)
  14. Frame.BorderColor3 = Color3.new(0, 0, 0)
  15. Frame.Position = UDim2.new(0.172302201, 0, 0.29214862, 0)
  16. Frame.Selectable = true
  17. Frame.Size = UDim2.new(0, 299, 0, 233)
  18. Frame.Active = true
  19. Frame.Draggable = true
  20.  
  21. TextButton.Parent = Frame
  22. TextButton.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255)
  23. TextButton.Position = UDim2.new(0.0327655859, 0, 0.337103128, 0)
  24. TextButton.Size = UDim2.new(0, 279, 0, 74)
  25. TextButton.Font = Enum.Font.SciFi
  26. TextButton.Text = "FARM = OFF"
  27. TextButton.TextColor3 = Color3.new(0.541176, 0, 0)
  28. TextButton.TextSize = 50
  29.  
  30. TextLabel.Parent = Frame
  31. TextLabel.BackgroundColor3 = Color3.new(0.207843, 0.207843, 0.207843)
  32. TextLabel.BorderSizePixel = 0
  33. TextLabel.Position = UDim2.new(-0.00161084533, 0, -0.00398874283, 0)
  34. TextLabel.Size = UDim2.new(0, 299, 0, 25)
  35. TextLabel.Font = Enum.Font.SciFi
  36. TextLabel.Text = "Drilling Simulator AutoFarm"
  37. TextLabel.TextColor3 = Color3.new(0.439216, 0.709804, 0)
  38. TextLabel.TextSize = 13
  39.  
  40. TextLabel_2.Parent = Frame
  41. TextLabel_2.BackgroundColor3 = Color3.new(0.207843, 0.207843, 0.207843)
  42. TextLabel_2.BackgroundTransparency = 100
  43. TextLabel_2.BorderColor3 = Color3.new(0, 0, 0)
  44. TextLabel_2.Position = UDim2.new(-0.00572396815, 0, 0.843203187, 0)
  45. TextLabel_2.Size = UDim2.new(0, 299, 0, 25)
  46. TextLabel_2.Font = Enum.Font.SciFi
  47. TextLabel_2.Text = "by banbus#9227"
  48. TextLabel_2.TextColor3 = Color3.new(1, 1, 0)
  49. TextLabel_2.TextSize = 15
  50.  
  51. TextButton.MouseButton1Down:connect(function()
  52. if ok then
  53. TextButton.Text = "FARM = OFF"
  54. TextButton.TextColor3 = Color3.new(0.541176, 0, 0)
  55. else
  56. TextButton.Text = "FARM = ON"
  57. TextButton.TextColor3 = Color3.fromRGB(0, 134, 0)
  58. end
  59. ok = not ok
  60. end)
  61. local farm = coroutine.wrap(function()
  62. while wait() do
  63. if ok then
  64. for _,v in pairs(workspace.playerPlots[me.Name]:GetChildren())
  65. if string.find(v.Name, "") then
  66. me.lootSearchEvent:FireServer("minePlot", v)
  67. me.lootSearchEvent:FireServer("collectPlot", v:WaitForChild(me.equippedDrill.Value))
  68. game:GetService("ReplicatedStorage").rEvents.sellEvent:FireServer("sellWholeBackpack")
  69. end
  70. end
  71. end
  72. end
  73. end)
  74. farm()
  75. local move = coroutine.wrap(function()
  76. while wait() do
  77. if ok then
  78. for i = 1,75 do
  79. wait()
  80. me.Character.HumanoidRootPart.CFrame = CFrame.new(me.Character.HumanoidRootPart.Position + Vector3.new(-1,0,0))
  81. end
  82. for i = 1,75 do
  83. wait()
  84. me.Character.HumanoidRootPart.CFrame = CFrame.new(me.Character.HumanoidRootPart.Position + Vector3.new(-0.5,0,0.5))
  85. end
  86. for i = 1,75 do
  87. wait()
  88. me.Character.HumanoidRootPart.CFrame = CFrame.new(me.Character.HumanoidRootPart.Position + Vector3.new(0.5,0,-0.5))
  89. end
  90. for i = 1,75 do
  91. wait()
  92. me.Character.HumanoidRootPart.CFrame = CFrame.new(me.Character.HumanoidRootPart.Position + Vector3.new(0,0,-1))
  93. end
  94. for i = 1,75 do
  95. wait()
  96. me.Character.HumanoidRootPart.CFrame = CFrame.new(me.Character.HumanoidRootPart.Position + Vector3.new(0,0,1))
  97. end
  98. for i = 1,75 do
  99. wait()
  100. me.Character.HumanoidRootPart.CFrame = CFrame.new(me.Character.HumanoidRootPart.Position + Vector3.new(1,0,0))
  101. end
  102. end
  103. end
  104. end)
  105. move()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement