Advertisement
michaelishot666

tap farm

Aug 28th, 2021
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.54 KB | None | 0 0
  1. local library = loadstring(game:HttpGet(('https://raw.githubusercontent.com/Maxgat5/UiLib/main/lua')))()
  2. local w = library:CreateWindow("Tap Farm Tycoon")
  3. local b = w:CreateFolder("AutoFarm")
  4. local e = w:CreateFolder("Mix")
  5. local u = w:CreateFolder("Credits")
  6.  
  7. b:Toggle("AutoPlant",function(bool)
  8. shared.toggle = bool
  9. AutoPlant = bool
  10. end)
  11.  
  12. b:Toggle("AutoTransplant",function(bool)
  13. shared.toggle = bool
  14. AutoTransplant = bool
  15. end)
  16.  
  17. e:Toggle("AntiAfk",function(bool)
  18. shared.toggle = bool
  19. AntiAfk = bool
  20. end)
  21.  
  22. e:Button("Tp Plot",function()
  23. for i,v in pairs(game:GetService("Workspace").Plots:GetDescendants()) do
  24. if v.ClassName == "TextLabel" then
  25. if v.Text == game.Players.LocalPlayer.Name.."'s Farmland" then
  26. if v.Parent.Parent.Parent.Parent.Position == Vector3.new(208, -9.5, 216) then
  27. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(v.Parent.Parent.Parent.Parent.CFrame.Position + Vector3.new(0,20,0))
  28. end
  29. end
  30. end
  31. end
  32. end)
  33.  
  34. e:Button("Select Plot",function()
  35. for i,v in pairs(game:GetService("Workspace").Plots:GetDescendants()) do
  36. if v.ClassName == "TextLabel" then
  37. if v.Text == "Nobody's Farmland" then
  38. if v.Parent.Parent.Parent.Parent.Position == Vector3.new(208, -9.5, 216) then
  39. workspace.GlobalEvents.BuyPlot:FireServer(v.Parent.Parent.Parent.Parent)
  40. end
  41. end
  42. end
  43. end
  44. end)
  45.  
  46. u:Button("maxgat5#8395",function()
  47. setclipboard("maxgat5#8395")
  48. end)
  49.  
  50. u:Button("Discord Server",function()
  51. setclipboard("https://discord.gg/K4txdRSVfq")
  52. end)
  53.  
  54. game:GetService('RunService').Stepped:connect(function()
  55. if AntiAfk == true then
  56. local bb=game:service'VirtualUser'
  57. bb:CaptureController()
  58. bb:ClickButton2(Vector2.new())
  59. end
  60. end)
  61.  
  62. while wait() do
  63. if AutoPlant == true then
  64. for i=40,70 do
  65. for i1=40,70 do
  66. if AutoPlant == true then
  67. workspace.GlobalEvents.Plant:FireServer({"Carrot",i1,i})
  68. end
  69. end
  70. end
  71. end
  72.  
  73. if AutoTransplant == true then
  74. for i2=1,5 do
  75. for i=40,70 do
  76. for i1=40,70 do
  77. if AutoTransplant == true then
  78. workspace.GlobalEvents.InteractTile:FireServer({i1,i})
  79. end
  80. end
  81. end
  82. end
  83. end
  84. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement