Advertisement
Gerard_games

aaaaaaaa pet sim gem farm aaaaaaaa

Aug 18th, 2021
626,193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.11 KB | None | 0 0
  1.  
  2. --Anti AFK stolen from infinite yield // the readily available old one :)
  3. local GC = getconnections or get_signal_cons
  4. if GC then
  5.     for i,v in pairs(GC(game.Players.LocalPlayer.Idled)) do
  6.         if v["Disable"] then
  7.             v["Disable"](v)
  8.         elseif v["Disconnect"] then
  9.             v["Disconnect"](v)
  10.         end
  11.     end
  12. else
  13.     print("lol bad exploit")
  14.     local vu = game:GetService("VirtualUser")
  15.     game:GetService("Players").LocalPlayer.Idled:connect(function()
  16.         vu:Button2Down(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  17.         wait(1)
  18.         vu:Button2Up(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  19.     end)
  20. end
  21.  
  22. function FarmCoin(CoinID, PetID)
  23.    game.workspace['__THINGS']['__REMOTES']["join coin"]:InvokeServer({[1] = CoinID, [2] = {[1] = PetID}})
  24.    game.workspace['__THINGS']['__REMOTES']["farm coin"]:FireServer({[1] = CoinID, [2] = PetID})
  25. end
  26.  
  27. function GetMyPets()
  28.    local returntable = {}
  29.    for i,v in pairs(game:GetService("Players").LocalPlayer.PlayerGui.Inventory.Frame.Main.Pets:GetChildren()) do
  30.        if v.ClassName == 'TextButton' and v.Equipped.Visible then
  31.            table.insert(returntable, v.Name)
  32.        end
  33.    end
  34.    return returntable
  35. end
  36.  
  37. function GetCoins(world, area)
  38.    local returntable = {}
  39.    local ListCoins = game.workspace['__THINGS']['__REMOTES']["get coins"]:InvokeServer({})[1]
  40.    for i,v in pairs(ListCoins) do
  41.        if string.lower(v.w) == string.lower(world) and string.lower(v.a) == string.lower(area) then
  42.            table.insert(returntable, i)
  43.        end
  44.    end
  45.    return returntable
  46. end
  47.  
  48. function CollectOrbs()
  49.    local ohTable1 = {[1] = {}}
  50.    for i,v in pairs(game.workspace['__THINGS'].Orbs:GetChildren()) do
  51.        ohTable1[1][i] = v.Name
  52.    end
  53.    game.workspace['__THINGS']['__REMOTES']["claim orbs"]:FireServer(ohTable1)
  54. end
  55.  
  56. while wait() and not _G.Stop do
  57.    local cointhiny = GetCoins(_G.World, _G.Area)
  58.    local pethingy = GetMyPets()
  59.    for i = 1, #cointhiny do
  60.        pcall(function() FarmCoin(cointhiny[i], pethingy[i%#pethingy+1]) end)
  61.        pcall(function() CollectOrbs() end)
  62.    end
  63. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement