Advertisement
PainfulExploits

DRILLING SIMULATOR GUI AUTOFARM

Apr 22nd, 2019
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.40 KB | None | 0 0
  1. -- tutorial how to use this gui https://www.youtube.com/watch?v=j6dMosPDq54
  2.  
  3. local me = game.Players.LocalPlayer
  4. local ok = false
  5.  
  6. -- Objects
  7.  
  8. local ScreenGui = Instance.new("ScreenGui")
  9. local Frame = Instance.new("Frame")
  10. local TextButton = Instance.new("TextButton")
  11. local TextLabel = Instance.new("TextLabel")
  12. local TextLabel_2 = Instance.new("TextLabel")
  13. -- Properties
  14.  
  15. ScreenGui.Parent = game:GetService("CoreGui")
  16.  
  17. Frame.Parent = ScreenGui
  18. Frame.BackgroundColor3 = Color3.new(0.301961, 0.733333, 0.996078)
  19. Frame.BorderColor3 = Color3.new(0, 0, 0)
  20. Frame.Position = UDim2.new(0.0127118528, 0, 0.775043964, 0)
  21. Frame.Selectable = true
  22. Frame.Size = UDim2.new(0, 189, 0, 109)
  23. Frame.Active = true
  24. Frame.Draggable = true
  25.  
  26. TextButton.Parent = Frame
  27. TextButton.BackgroundColor3 = Color3.new(0.262745, 0.780392, 1)
  28. TextButton.Position = UDim2.new(0.117364712, 0, 0.506880462, 0)
  29. TextButton.Size = UDim2.new(0, 143, 0, 40)
  30. TextButton.Font = Enum.Font.Highway
  31. TextButton.Text = "SEMI-FARM is OFF"
  32. TextButton.TextColor3 = Color3.new(0.796079, 0.235294, 0.356863)
  33. TextButton.TextSize = 15
  34.  
  35. TextLabel.Parent = Frame
  36. TextLabel.BackgroundColor3 = Color3.new(0.286275, 0.690196, 1)
  37. TextLabel.BorderSizePixel = 0
  38. TextLabel.Position = UDim2.new(-0.00161084533, 0, -0.00398874283, 0)
  39. TextLabel.Size = UDim2.new(0, 189, 0, 40)
  40. TextLabel.Font = Enum.Font.Highway
  41. TextLabel.Text = "SEMI-Autofarm by PainfulExplits"
  42. TextLabel.TextColor3 = Color3.new(0.796079, 0.235294, 0.356863)
  43. TextLabel.TextSize = 15
  44.  
  45. TextButton.MouseButton1Down:connect(function()
  46. if ok then
  47. TextButton.Text = "SEMI-FARM is OFF"
  48. TextButton.TextColor3 = Color3.new(0.796079, 0.235294, 0.356863)
  49. else
  50. TextButton.Text = "SEMI-FARM is ON"
  51. TextButton.TextColor3 = Color3.new(0.0980392, 0.411765, 0.796079)
  52. TextButton.Font = Enum.Font.SourceSansBold
  53. end
  54. ok = not ok
  55. end)
  56. local farm = coroutine.wrap(function()
  57. while wait() do
  58. if ok then
  59. for _,v in pairs(workspace.playerPlots[me.Name]:GetChildren()) do
  60. if string.find(v.Name, "") then
  61. me.lootSearchEvent:FireServer("minePlot", v)
  62. me.lootSearchEvent:FireServer("collectPlot", v:WaitForChild(me.equippedDrill.Value))
  63. game:GetService("ReplicatedStorage").rEvents.sellEvent:FireServer("sellWholeBackpack")
  64. end
  65. end
  66. end
  67. end
  68. end)
  69. farm()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement