Advertisement
welplol34

Untitled

Oct 9th, 2022 (edited)
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. --#### Variables ####--
  2. local Player = game.Players.LocalPlayer;
  3. local Character = Player.Character or Player.CharacterAdded:Wait();
  4. local ChestFolder = game.Workspace.Chests;
  5.  
  6. --#### Services ####--
  7. local TeleportService = game:GetService("TeleportService");
  8. local VIM = game:GetService("VirtualInputManager");
  9.  
  10. --#### LOAD ####--
  11.  
  12. syn.queue_on_teleport([[
  13. --### CODE ###--
  14.  
  15. repeat task.wait() until game:IsLoaded();
  16.  
  17. local Player = game.Players.LocalPlayer;
  18. local Character = Player.Character or Player.CharacterAdded:Wait();
  19.  
  20. repeat task.wait() until Player and Player.Character;
  21.  
  22. task.wait(7);
  23.  
  24. loadstring(game:HttpGet("https://pastebin.com/raw/K07vcS8e"))()
  25. ]])
  26.  
  27. --#### Farm ####--
  28.  
  29. function Farm()
  30.  
  31. --#### Press Key ####--
  32.  
  33. task.spawn(function()
  34. VIM:SendKeyEvent(true, "Z", false, game);
  35. task.wait(1);
  36. VIM:SendKeyEvent(false, "Z", false, game);
  37. end)
  38.  
  39. --#### Auto Chest ####--
  40.  
  41. for _, Chest in pairs(ChestFolder:GetDescendants()) do
  42. if Chest:IsA("ClickDetector") and Chest.Parent.Parent.Active.Value == true and not Chest.Parent.Parent:FindFirstChild("DirtPileChest") then
  43.  
  44. Character.HumanoidRootPart.CFrame = Chest.Parent.CFrame;
  45. task.wait(0.47);
  46. fireclickdetector(Chest);
  47.  
  48. end
  49. end
  50.  
  51. Player:Kick("Hopping Server...");
  52.  
  53. end
  54.  
  55. task.spawn(function()
  56. Farm(); -- Call function to start it
  57. end)
  58.  
  59. --#### Rejoin ####--
  60.  
  61. game:GetService("CoreGui").RobloxPromptGui.promptOverlay.DescendantAdded:Connect(function(Child)
  62. if Child.Name == "ErrorPrompt" then
  63. TeleportService:Teleport(game.PlaceId, Player);
  64. print("Teleporting...");
  65. end
  66. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement