ScriptsQP

Untitled

Jun 10th, 2024
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.94 KB | None | 0 0
  1. getgenv().config = {
  2. farm = {
  3. toggle = false,
  4. singleTarget = false,
  5. farmPrint = false,
  6. radius = 70,
  7. wait = 0.2
  8. },
  9. autoLootbag = false,
  10. autoOrb = false
  11. }
  12.  
  13. repeat task.wait() until game:IsLoaded() if game.PlaceId ~= 8737899170 then game.Players.LocalPlayer:Kick("wrong game") end
  14. print("Pet Simulator 99 | griffindoescooking")
  15.  
  16. local LocalPlayer = game.Players.LocalPlayer
  17. local HumanoidRootPart = LocalPlayer.Character:FindFirstChild("HumanoidRootPart", true)
  18.  
  19. local vim = game:GetService("VirtualInputManager")
  20. local sqrt = math.sqrt
  21. local pow = math.pow
  22.  
  23. local Things = game.workspace['__THINGS']
  24. local Lootbags = Things.Lootbags
  25. local Orbs = Things.Orbs
  26. local ShinyRelics = Things.ShinyRelics
  27. local Breakables = Things.Breakables
  28. local Pets = Things.Pets
  29. local Network = game:GetService("ReplicatedStorage").Network
  30. local PetInventory = LocalPlayer.PlayerGui.Inventory.Frame.Main.Pets.EquippedPets
  31.  
  32. getgenv().currentCoins = {}
  33. getgenv().equippedPets = {}
  34. getgenv().totalClaimed = 0
  35. getgenv().totalTime = 0
  36.  
  37. local function indexPets()
  38. table.clear(equippedPets)
  39. for _,pet in ipairs(Pets:GetChildren()) do
  40. if PetInventory:FindFirstChild(pet.Name) then
  41. table.insert(equippedPets, pet.Name)
  42. end
  43. end
  44. return equippedPets
  45. end
  46. local function calcDistance(obj1,obj2)
  47. local pPosX,pPosZ = obj1.CFrame.X,obj1.CFrame.Z
  48. local hPosX, hPosZ = obj2.CFrame.X, obj2.CFrame.Z
  49.  
  50. return sqrt(pow(pPosX-hPosX, 2) + pow(pPosZ-hPosZ, 2))
  51. end
  52. local function getCenter()
  53. local frame = Instance.new("Frame")
  54. frame.Parent = game.CoreGui
  55. frame.Name = LocalPlayer.Name
  56. frame.AnchorPoint = Vector2.new(0.5,0.5)
  57. frame.Position = UDim2.fromScale(0.5,0.5)
  58. frame.Size = UDim2.fromOffset(10,10)
  59. frame.Visible = false
  60.  
  61. return {frame.AbsolutePosition.X,frame.AbsolutePosition.Y}
  62. end
  63. local function sendNotification(title,text,duration)
  64. game:GetService("StarterGui"):SetCore("SendNotification",{
  65. Title = title,
  66. Text = text,
  67. Duration = tonumber(duration),
  68. Callback = function() end,
  69. Button1 = "Got It!"
  70. })
  71. end
  72. local libary = loadstring(game:HttpGet("https://raw.githubusercontent.com/idonthaveoneatm/Libraries/normal/tmp/src"))()
  73. local main = libary:CreateWindow({
  74. Title = "Pet Simulator 99"
  75. })
  76. local farming = main:CreateTab({
  77. Name = "Farming",
  78. Icon = "rbxassetid://10709769841"
  79. }) farming:CreateSection("Farming")
  80. local egg = main:CreateTab({
  81. Name = "Egging",
  82. Icon = "rbxassetid://10723345518"
  83. }) egg:CreateSection("Egging")
  84. local teleports = main:CreateTab({
  85. Name = "Teleports"
  86. }) teleports:CreateSection("Teleport")
  87. local credits = main:CreateTab({
  88. Name = "Credits",
  89. Icon = "rbxassetid://10723396402"
  90. }) credits:CreateSection("Credits")
  91.  
  92. farming:CreateToggle({
  93. Name = "Farm Coins",
  94. Callback = function(value)
  95. config.farm.toggle = value
  96. while config.farm.toggle and task.wait() do
  97.  
  98. for _,v in ipairs(Breakables:GetChildren()) do
  99. if v.Name ~= "Highlight" and v:FindFirstChild("Hitbox", true) then
  100. local part = v:FindFirstChild("Hitbox", true)
  101.  
  102. if calcDistance(part, HumanoidRootPart) <= config.farm.radius then
  103. if config.farm.singleTarget then
  104. local tmpName = v.Name
  105. local startTime = os.clock()
  106.  
  107. repeat
  108. if calcDistance(part, HumanoidRootPart) > config.farm.radius then
  109. break
  110. end
  111. task.wait(config.farm.wait)
  112. Network.Breakables_PlayerDealDamage:FireServer(v.Name)
  113. until not Breakables:FindFirstChild(v.Name)
  114.  
  115. totalClaimed = totalClaimed + 1; totalTime = totalTime + (os.clock() - startTime)
  116. if config.farm.farmPrint then print("farmed "..tmpName.." in: "..tostring(os.clock() - startTime).." Avg: "..tostring(totalTime/totalClaimed)) end
  117. else
  118. if not table.find(currentCoins, v.Name) then
  119. table.insert(currentCoins, v.Name)
  120. task.spawn(function()
  121. local tmpPart = part
  122. local tmpName = v.Name
  123. local startTime = os.clock()
  124. repeat
  125. if calcDistance(tmpPart, HumanoidRootPart) > config.farm.radius then
  126. table.remove(currentCoins, table.find(currentCoins, v.Name))
  127. break
  128. end
  129.  
  130. task.wait(config.farm.wait*math.random(1,2))
  131.  
  132. Network.Breakables_PlayerDealDamage:FireServer(tmpName)
  133. until not Breakables:FindFirstChild(tmpName)
  134.  
  135. table.remove(currentCoins, table.find(currentCoins, v.Name))
  136. totalClaimed = totalClaimed + 1; totalTime = totalTime + (os.clock() - startTime)
  137. if config.farm.farmPrint then print("farmed "..tmpName.." in: "..tostring(os.clock() - startTime).." Avg: "..tostring(totalTime/totalClaimed)) end
  138. end)
  139. end
  140. end
  141. end
  142. end
  143. end
  144.  
  145. end
  146. end
  147. })
  148. farming:CreateToggle({
  149. Name = "Single Target",
  150. Callback = function(value)
  151. config.farm.singleTarget = value
  152. end
  153. })
  154. farming:CreateToggle({
  155. Name = "Console Print",
  156. Callback = function(value)
  157. config.farm.farmPrint = value
  158. end
  159. })
  160. farming:CreateInput({
  161. Name = "Radius (Default: 70)",
  162. Callback = function(value)
  163. if tonumber(value) then
  164. config.farm.radius = tonumber(value)
  165. else
  166. config.farm.radius = 40
  167. sendNotification("Radius Error","You need the RADIUS to be a number. It is now 40",50)
  168. end
  169. end
  170. })
  171. farming:CreateInput({
  172. Name = "Wait Time (Default: 0.2)",
  173. Callback = function(value)
  174. if tonumber(value) then
  175. config.farm.wait = tonumber(value)
  176. else
  177. config.farm.wait = 0.2
  178. sendNotification("Wait Time Error","You need the WAIT TIME to be a number. It is now 0.2",50)
  179. end
  180. end
  181. })
  182. farming:CreateSection("Collection")
  183. farming:CreateToggle({
  184. Name = "Collect Orbs",
  185. Callback = function(value)
  186. config.autoOrb = value
  187. while config.autoOrb and task.wait() do
  188.  
  189. for _, orb in ipairs(Orbs:GetChildren()) do
  190. if orb:IsA("Part") then
  191. orb.CFrame = HumanoidRootPart.CFrame
  192. end
  193. end
  194.  
  195. end
  196. end
  197. })
  198. farming:CreateToggle({
  199. Name = "Collect Lootbags",
  200. Callback = function(value)
  201. config.autoLootbag = value
  202. while config.autoLootbag and task.wait() do
  203.  
  204. for _, lootbag in ipairs(Lootbags:GetDescendants()) do
  205. if lootbag:IsA("MeshPart") then
  206. lootbag.CFrame = HumanoidRootPart.CFrame
  207. end
  208. end
  209.  
  210. end
  211. end
  212. })
  213.  
  214. egg:CreateTextLabel("Soon...")
  215.  
  216. teleports:CreateTextLabel("Soon...")
  217.  
  218. credits:CreateTextLabel("UI: griffindoescooking")
  219. credits:CreateTextLabel("Script: griffindoescooking")
  220. credits:CreateSection("Discord: ")
  221. credits:CreateButton({
  222. Name = "Discord",
  223. Callback = function()
  224. setclipboard("discord.gg/vF4qcGSxbn")
  225. end
  226. })
Advertisement
Add Comment
Please, Sign In to add comment