CPP 995
Coal Mine Script 2 By venuslock on 6th April 2024 08:56:30 AM
  1. getgenv().autofarm = true -- set this to false if you want to stop autofarm (you need plot to start autofarm)
  2.  
  3.  
  4.  
  5. --------------------------------------------------------------------------------------------------------------
  6. local LocalPlayer = game:GetService("Players").LocalPlayer
  7. local lastpos = LocalPlayer.Character.HumanoidRootPart.CFrame
  8. while getgenv().autofarm do wait()
  9.     local MyTycoon = workspace["TycoonKit 1.13"].Tycoons[LocalPlayer.Team.Name]
  10.     local SpawnCoal = MyTycoon.Purchased.StartTycoon.Clicker.CoalProxPrompt
  11.     if (LocalPlayer.Character.HumanoidRootPart.Position - SpawnCoal.Parent.Position).Magnitude > 40 then
  12.         LocalPlayer.Character.HumanoidRootPart.CFrame = SpawnCoal.Parent.CFrame
  13.     end
  14.     fireproximityprompt(SpawnCoal)
  15.     for _,v in pairs(MyTycoon.Drops:GetChildren()) do
  16.         if v:IsA("Part") and v.Parent.Name == MyTycoon.Drops.Name then
  17.            v.Position = MyTycoon.Essentials.Conveyor.CollectorPart.Position + Vector3.new(0, 0.3, 0)
  18.         end
  19.     end
  20. end
  21.  
  22. repeat task.wait() until not getgenv().autofarm
  23. LocalPlayer.Character.HumanoidRootPart.CFrame = lastpos
  24. --------------------------------------------------------------------------------------------------------------

Texbin is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.