Advertisement
TheRealHeh

Untitled

Dec 20th, 2019
448
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.51 KB | None | 0 0
  1. local TeleportService = game:GetService("TeleportService")
  2. local VirtualUser=game:service'VirtualUser'
  3. --[[// Anti AFK \\--
  4. game:service'Players'.LocalPlayer.Idled:connect(function()
  5. VirtualUser:CaptureController()
  6. VirtualUser:ClickButton2(Vector2.new())
  7. end)
  8. --\\ Credits To Who Man //--
  9. ]]
  10.  
  11. game:WaitForChild("Players")
  12. wait(10)
  13.  
  14.  
  15.  
  16.  
  17. if game.Players.LocalPlayer.__LOADED.Value == true then
  18. --// Autofarm \\--
  19. local settings = {
  20. ["Coin Farm"] = {
  21. ["Enabled"] = true;
  22. ["MinHP"] = 5000;
  23. ["MaxHP"] = 9e+18;
  24. }
  25. }
  26.  
  27. game.Workspace['__THINGS'].Drops.ChildAdded:Connect(function()
  28. for i , v in pairs(game.Workspace['__THINGS'].Drops:GetChildren()) do
  29. for r = 0 , 8 , 1 do
  30. local oh1 = { {v.Name, "id"..r }, { false, false } }
  31. game:GetService("Workspace")["__THINGS"]["__REMOTES"]["take drop"]:FireServer(oh1)
  32. end
  33. end
  34. end)
  35. while true do
  36. wait()
  37. for num,coin in pairs(game.workspace['__THINGS'].Coins:GetChildren()) do
  38. local a = {}
  39. if coin:FindFirstChild("Settings") ~= nil and coin.Settings.Health.Value <= settings["Coin Farm"]["MaxHP"] and coin.Settings.Health.Value >= settings["Coin Farm"]["MinHP"] then
  40. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = coin.POS.CFrame + Vector3.new(0,9e+4,0)
  41. game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  42. for i , c in pairs(game.Players.LocalPlayer.PlayerGui.Inventory.Frame.Container.Holder.Pets:GetChildren()) do
  43. if c:FindFirstChild("Equipped") ~= nil and c.Equipped.Visible == true then
  44. table.insert(a,c.Name)
  45. workspace.__THINGS.__REMOTES:FindFirstChild"join coin":InvokeServer({{coin.Name,c.Name},{false,false}})
  46. workspace.__THINGS.__REMOTES:FindFirstChild"change pet target":FireServer({{c.Name,"Coin",coin.Name},{false,false,false}})
  47. for i = 0 , 50, 1 do
  48. workspace.__THINGS.__REMOTES:FindFirstChild"farm coin":FireServer({{coin.Name,c.Name},{false,false}})
  49. end;end
  50. end
  51. repeat
  52. wait()
  53. for i , c in pairs(a) do
  54. workspace.__THINGS.__REMOTES:FindFirstChild"farm coin":FireServer({{coin.Name,c},{false,false}})
  55. end
  56. game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  57. until game.workspace['__THINGS'].Coins:FindFirstChild(coin.Name) == nil or game.Players.LocalPlayer.Character == nil or coin == nil
  58. wait(20)
  59. TeleportService:Teleport(4527908664, game.Players.LocalPlayer)
  60. end
  61. end
  62. end
  63. --\\ Made By koala bear#6258 //--
  64.  
  65.  
  66.  
  67.  
  68.  
  69. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement