suramraja1

GDWE

May 17th, 2024 (edited)
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 8.70 KB | None | 0 0
  1. getgenv().autoWorldConfig = {
  2.     AUTO_REBIRTH = true,
  3.     ZONE_TO_REACH = 99,
  4.     PURCHASE_CHECK_DELAY = 1
  5. }
  6. -- Max Zone For World 1: 99
  7. -- Max Zone For World 2: 124
  8.  
  9. loadstring(game:HttpGet("https://pastebin.com/raw/YQU1GjPS"))()
  10.  
  11. loadstring(game:HttpGet("https://raw.githubusercontent.com/fdvll/pet-simulator-99/main/cpuReducer.lua"))()
  12.  
  13. game:GetService("ReplicatedStorage").Network:FindFirstChild("Mailbox: Claim All"):InvokeServer()
  14.  
  15. local fruitsModule = require(game:GetService("ReplicatedStorage").Library.Client.FruitCmds)
  16. local fruitIds = {}
  17. local neededFruits = {}
  18.  
  19. for itemId, itemData in pairs(require(game:GetService("ReplicatedStorage").Library).Save.Get().Inventory.Fruit) do
  20.     if itemData["id"] ~= "Candycane" then
  21.         local fruitName = itemData["id"]
  22.         fruitIds[fruitName] = itemId
  23.         table.insert(neededFruits, fruitName)
  24.     end
  25. end
  26.  
  27. for fruitName, fruitData in pairs(fruitsModule.GetActiveFruits()) do
  28.     if #fruitData < 20 then
  29.         fruitsModule.Consume(fruitIds[fruitName], (20 - #fruitData))
  30.     end
  31.     for i = 1, #neededFruits do
  32.         if neededFruits[i] == fruitName then
  33.             table.remove(neededFruits, i)
  34.         end
  35.     end
  36.     task.wait(0.15)
  37. end
  38.  
  39. for _, fruit in neededFruits do
  40.     fruitsModule.Consume(fruitIds[fruit], 20)
  41.     task.wait(0.15)
  42. end
  43.  
  44. require(game:GetService("ReplicatedStorage").Library.Client.Network).Fired("Fruits: Update"):Connect(function(data)
  45.     task.wait(1)
  46.     for fruitName, fruitData in pairs(data) do
  47.         if #fruitData < 20 then
  48.             require(game:GetService("ReplicatedStorage").Library).Network.Fire("Fruits: Consume", fruitIds[fruitName], 1)
  49.         end
  50.     end
  51. end)
  52.  
  53. coroutine.wrap(function()
  54.     _G.autoPetSlot = true
  55.  
  56.     local GEM_WAIT_DELAY = 60 -- time it will wait before checking your gem count again
  57.     local RANK_WAIT_DELAY = 60 -- time it will wait before checking your rank again
  58.  
  59.  
  60.     local Workspace = game:GetService("Workspace")
  61.     local ReplicatedStorage = game:GetService("ReplicatedStorage")
  62.     local Library = ReplicatedStorage:WaitForChild("Library")
  63.     local LocalPlayer = game:GetService("Players").LocalPlayer
  64.  
  65.     local diamondCost = {
  66.         [1] = 250,
  67.         [2] = 500,
  68.         [3] = 750,
  69.         [4] = 1000,
  70.         [5] = 1250,
  71.         [6] = 1500,
  72.         [7] = 1750,
  73.         [8] = 2000,
  74.         [9] = 2250,
  75.         [10] = 2500,
  76.         [11] = 2750,
  77.         [12] = 3000,
  78.         [13] = 3250,
  79.         [14] = 3500,
  80.         [15] = 3750,
  81.         [16] = 4000,
  82.         [17] = 4250,
  83.         [18] = 4500,
  84.         [19] = 4750,
  85.         [20] = 5000,
  86.         [21] = 5250,
  87.         [22] = 5500,
  88.         [23] = 5750,
  89.         [24] = 6000,
  90.         [25] = 6250,
  91.         [26] = 6500,
  92.         [27] = 6750,
  93.         [28] = 7000,
  94.         [29] = 6250,
  95.         [30] = 7250,
  96.         [31] = 8500,
  97.         [32] = 10000,
  98.         [33] = 15000,
  99.         [34] = 20000,
  100.         [35] = 30000,
  101.         [36] = 35000,
  102.         [37] = 45000,
  103.         [38] = 60000,
  104.         [39] = 70000,
  105.         [40] = 85000,
  106.         [41] = 100000,
  107.         [42] = 150000,
  108.         [43] = 200000,
  109.         [44] = 250000,
  110.         [45] = 300000,
  111.         [46] = 350000,
  112.         [47] = 400000,
  113.         [48] = 450000,
  114.         [49] = 500000,
  115.         [50] = 550000,
  116.         [51] = 600000,
  117.         [52] = 650000,
  118.         [53] = 700000,
  119.         [54] = 750000,
  120.         [55] = 800000,
  121.         [56] = 850000,
  122.         [57] = 900000,
  123.         [58] = 950000,
  124.         [59] = 1000000,
  125.         [60] = 1050000,
  126.         [61] = 1100000,
  127.         [62] = 1150000,
  128.         [63] = 1200000,
  129.         [64] = 1250000,
  130.         [65] = 1300000,
  131.         [66] = 1350000,
  132.         [67] = 1400000,
  133.         [68] = 1450000,
  134.         [69] = 1500000,
  135.         [70] = 1550000,
  136.         [71] = 1600000,
  137.         [72] = 1650000,
  138.         [73] = 1700000,
  139.         [74] = 1750000,
  140.         [75] = 1800000,
  141.         [76] = 1850000,
  142.         [77] = 1900000,
  143.         [78] = 1950000,
  144.         [79] = 2000000,
  145.         [80] = 2050000,
  146.         [81] = 2100000,
  147.         [82] = 2150000,
  148.         [83] = 2200000,
  149.         [84] = 2250000,
  150.         [85] = 2300000,
  151.         [86] = 2350000,
  152.         [87] = 2400000,
  153.         [88] = 2450000,
  154.         [89] = 2500000
  155.     }
  156.  
  157.  
  158.     local currentEquips = require(Library.Client.Save).Get().PetSlotsPurchased
  159.     local currentmaxPurchaseableEquips = require(Library.Client.RankCmds).GetMaxPurchasableEquipSlots()
  160.     local originalPosition = LocalPlayer.Character.HumanoidRootPart.CFrame
  161.  
  162.     local function teleportToEquipMachine()
  163.         local zonePath = Workspace.Map["4 | Green Forest"]
  164.         LocalPlayer.Character.HumanoidRootPart.CFrame = zonePath.PERSISTENT.Teleport.CFrame
  165.         task.wait()
  166.  
  167.         if not zonePath:FindFirstChild("INTERACT") then
  168.             local loaded = false
  169.             local detectLoad = zonePath.ChildAdded:Connect(function(child)
  170.                 if child.Name == "INTERACT" then
  171.                     loaded = true
  172.                 end
  173.             end)
  174.  
  175.             repeat
  176.                 task.wait()
  177.             until loaded
  178.  
  179.             detectLoad:Disconnect()
  180.         end
  181.  
  182.         LocalPlayer.Character.HumanoidRootPart.CFrame = zonePath.INTERACT.Machines.EquipSlotsMachine.PadGlow.CFrame
  183.     end
  184.  
  185.     print("Starting auto pet slot purchase")
  186.     while _G.autoPetSlot do
  187.  
  188.         print("Waiting for enough gems")
  189.         while require(Library.Client.CurrencyCmds).Get("Diamonds") < diamondCost[currentEquips + 1] do
  190.             task.wait(GEM_WAIT_DELAY)
  191.         end
  192.  
  193.         if currentEquips < require(Library.Client.RankCmds).GetMaxPurchasableEquipSlots() then
  194.             print("Buying slot " .. tostring(currentEquips + 1) .. " for " .. tostring(diamondCost[currentEquips + 1]) .. " diamonds")
  195.  
  196.             teleportToEquipMachine()
  197.  
  198.             task.wait()
  199.  
  200.             local args = {
  201.                 [1] = currentEquips + 1
  202.             }
  203.  
  204.             game:GetService("ReplicatedStorage").Network.EquipSlotsMachine_RequestPurchase:InvokeServer(unpack(args))
  205.             currentEquips = currentEquips + 1
  206.  
  207.             print("Purchased pet equip slot " .. tostring(currentEquips + 1))
  208.             LocalPlayer.Character.HumanoidRootPart.CFrame = originalPosition
  209.         else
  210.             print("Already have max amount of pet equip slots, waiting for rankup")
  211.             while currentmaxPurchaseableEquips == require(Library.Client.RankCmds).GetMaxPurchasableEquipSlots() do
  212.                 task.wait(RANK_WAIT_DELAY)
  213.             end
  214.         end
  215.     end
  216. end)()
  217.  
  218. coroutine.wrap(function() ---auto claim rank
  219. if game:GetService("Players").LocalPlayer.PlayerGui.GoalsSide.Frame.Quests.QuestsGradient.QuestsHolder.RankUpNotif.Visible == true then
  220.     local ClaimHadiah = game:GetService("ReplicatedStorage").Network.Ranks_ClaimReward
  221.     ClaimHadiah:FireServer(1)
  222.     task.wait(0.5)
  223.     ClaimHadiah:FireServer(2)
  224.     task.wait(0.5)
  225.     ClaimHadiah:FireServer(3)
  226.     task.wait(0.5)
  227.     ClaimHadiah:FireServer(4)
  228.     task.wait(0.5)
  229.     ClaimHadiah:FireServer(5)
  230.     task.wait(0.5)
  231.     ClaimHadiah:FireServer(6)
  232.     task.wait(0.5)
  233.     ClaimHadiah:FireServer(7)
  234.     task.wait(0.5)
  235.     ClaimHadiah:FireServer(8)
  236.     task.wait(0.5)
  237.     ClaimHadiah:FireServer(9)
  238.     task.wait(0.5)
  239.     ClaimHadiah:FireServer(10)
  240.     task.wait(0.5)
  241.     ClaimHadiah:FireServer(11)
  242.     task.wait(0.5)
  243.     ClaimHadiah:FireServer(12)
  244.     task.wait(0.5)
  245.     ClaimHadiah:FireServer(13)
  246.     task.wait(0.5)
  247.     ClaimHadiah:FireServer(14)
  248.     task.wait(0.5)
  249.     ClaimHadiah:FireServer(15)
  250.     task.wait(0.5)
  251.     ClaimHadiah:FireServer(16)
  252.     task.wait(0.5)
  253.     ClaimHadiah:FireServer(17)
  254.     task.wait(0.5)
  255.     ClaimHadiah:FireServer(18)
  256.     task.wait(0.5)
  257.     ClaimHadiah:FireServer(18)
  258.     task.wait(0.5)
  259.     ClaimHadiah:FireServer(19)
  260.     task.wait(0.5)
  261.     ClaimHadiah:FireServer(20)
  262.     task.wait(0.5)
  263.     ClaimHadiah:FireServer(21)
  264.     task.wait(0.5)
  265.     ClaimHadiah:FireServer(22)
  266.     task.wait(0.5)
  267.     ClaimHadiah:FireServer(23)
  268.     task.wait(0.5)
  269.     ClaimHadiah:FireServer(24)
  270.     task.wait(0.5)
  271.     ClaimHadiah:FireServer(25)
  272.     task.wait(1)
  273.     ClaimHadiah:FireServer(26)
  274. end
  275. end)()
  276.  
  277. coroutine.wrap(function() --collect orb ps 99
  278.     while task.wait(20) do
  279.         game:GetService("VirtualInputManager"):SendMouseButtonEvent(500, 250, 0, true, game, 1) -- click tengah layar
  280.         task.wait(0.1)
  281.         game:GetService("VirtualInputManager"):SendMouseButtonEvent(500, 250, 0, false, game, 1)
  282.     end
  283. end)()
  284.  
  285. coroutine.wrap(function()
  286.     pcall(function()
  287.         task.wait(60)
  288.         game:GetService("CoreGui").Codex.gui.Enabled = false
  289.         task.wait(1)
  290.         game:service'VirtualInputManager':SendKeyEvent(true, "Tab", false, game)
  291.     end)
  292. end)()
Add Comment
Please, Sign In to add comment