The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
Pet Simulator X MASTERY FARM SCRIPT script pastebin roblox
By Pet Simulator X MASTERY FARM SCRIPT on 2024-11-26 08:00 am | Syntax: LUA | Views: 20



New Script | Raw | Show/Hide line no. | Copy text to clipboard
  1. _G.Enabled = true --// set to "false" to disable the script
  2.  
  3. local useGolden = true --// Set to "false" if you don't want to open golden eggs
  4.  
  5.  
  6. --// DON'T EDIT BELOW IF YOU DONT KNOW WHAT YOU'RE DOING
  7.  
  8. local event = workspace.__THINGS.__REMOTES:FindFirstChild("buy egg")
  9.  
  10. local rprint
  11.  
  12. local Normal_Eggs = {}
  13. local Golden_Eggs = {}
  14. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  15.  
  16. local Eggs = ReplicatedStorage:WaitForChild("Game").Eggs
  17.  
  18. if rconsolewarn then
  19. rconsoleclear()
  20. rprint = rconsolewarn
  21. else
  22. rprint = print
  23. end
  24.  
  25. function Time(Tick) -- Not By me
  26. if typeof(Tick) ~= "number" then
  27. return warn('Integer expected, got', typeof(Tick))
  28. end
  29. local Tick = tick() - Tick
  30. local Weeks = math.floor(math.floor(math.floor(math.floor(Tick / 60) / 60) / 24) / 7)
  31. local Days =  math.floor(math.floor(math.floor(Tick / 60) / 60) / 24)
  32. local Hours = math.floor(math.floor(Tick / 60) / 60)
  33. local Minutes = math.floor(Tick / 60)
  34. local Seconds = math.floor(Tick)
  35. local MilliSeconds = (Tick * 1000)
  36. local Format = ""
  37. if Weeks > 0 then
  38. Format = Format .. string.format("%d Week/s, ", Weeks)
  39. end
  40. if Days > 0 then
  41. Format = Format .. string.format("%d Day/s, ", Days % 7)
  42. end
  43. if Hours > 0 then
  44. Format = Format .. string.format("%d Hour/s, ", Hours % 24)
  45. end
  46. if Minutes > 0 then
  47. Format = Format .. string.format("%d Minute/s, ", Minutes % 60)
  48. end
  49. if Seconds > 0 then
  50. Format = Format .. string.format("%d Second/s, ", Seconds % 60)
  51. end
  52. if MilliSeconds > 0 then
  53. Format = Format .. string.format("%d Ms", MilliSeconds % 1000)
  54. end
  55. return Format
  56. end
  57.  
  58. local startTick = tick()
  59.  
  60. for _,eggFolder in pairs(Eggs:GetChildren()) do
  61. for _,eggName in pairs(eggFolder:GetChildren()) do
  62. if string.find(eggName.Name, "Golden") then
  63. table.insert(Golden_Eggs, eggName.Name)
  64. else
  65. table.insert(Normal_Eggs, eggName.Name)
  66. end
  67. end
  68. task.wait()
  69. end
  70.  
  71. rprint("Added all eggs to database. Took "..tostring(Time(startTick)))
  72.  
  73.  
  74. while _G.Enabled == true and wait(0.05) do
  75. local args = {}
  76. local normalegg = Normal_Eggs[math.random(1, #Normal_Eggs)]
  77. local goldenegg = Golden_Eggs[math.random(1, #Golden_Eggs)]
  78. if useGolden == true then
  79. if math.random(1,2) == 1 then
  80. args = {normalegg, false}
  81. rprint("[Mastery Farm] Buying: "..normalegg)
  82. else
  83. args = {goldenegg, false}
  84. rprint("[Mastery Farm] Buying: "..goldenegg)
  85. end
  86. else
  87. args = {normalegg, false}
  88. rprint("[Mastery Farm] Buying: "..normalegg)
  89. end
  90. local e = event:InvokeServer(args)
  91. repeat wait() until e ~= nil
  92. rprint("Running Time: "..tostring(Time(startTick)))
  93. end



  • Recent Roblox Scripts