Advertisement
anonmods

Petcollect

Sep 15th, 2021
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.49 KB | None | 0 0
  1. local library = loadstring(game:HttpGet(('https://raw.githubusercontent.com/Maxgat5/UiLib/main/lua')))()
  2. local w = library:CreateWindow("Pet Simulator X")
  3. local b = w:CreateFolder("Pet Collection")
  4. local e = w:CreateFolder("Mix")
  5. local u = w:CreateFolder("Credits")
  6.  
  7. b:Button("Start",function()
  8. if game:GetService("Workspace")["__MAP"].Interactive:FindFirstChild("Dominus Gate") then
  9. game:GetService("Workspace")["__MAP"].Interactive["Dominus Gate"]:Destroy()
  10. end
  11. Eggs = {}
  12. noclip = true
  13. for i,v in pairs(game:GetService("Workspace")["__MAP"].Eggs:GetDescendants()) do
  14. if v.Name == "PriceHUD" then
  15. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(v.Parent.Egg.CFrame.Position + Vector3.new(0,5,0))
  16. wait(.2)
  17. for i1,v1 in pairs(v.Parent.EggInfo.Frame.Pets:GetChildren()) do
  18. if v1.ClassName == "Frame" then
  19. table.insert(Eggs,v1.Thumbnail.Image)
  20. end
  21. end
  22. wait(.1)
  23. end
  24. end
  25. noclip = false
  26. game:GetService("Players").LocalPlayer.PlayerGui.Collection.Enabled = true
  27. game:GetService("Players").LocalPlayer.PlayerGui.Collection.Frame.Title.Text = "Select Pet"
  28. game:GetService("Players").LocalPlayer.PlayerGui.Collection.Frame.Bottom.Visible = false
  29. game:GetService("Players").LocalPlayer.PlayerGui.Collection.Frame.Container.Size = UDim2.new(1,0,1,0)
  30. for i,v in pairs(game:GetService("Players").LocalPlayer.PlayerGui.Collection.Frame.Container.Holder:GetChildren()) do
  31. if v.ClassName == "TextButton" then
  32. v.MouseButton1Click:Connect(function()
  33. game:GetService("Players").LocalPlayer.PlayerGui.Collection.Enabled = false
  34. SelectedImage = ""
  35. EggName = ""
  36. PetsCount = ""
  37. EggPrice = ""
  38. local ScG = Instance.new("ScreenGui",game:GetService("CoreGui"))
  39. ScG.Name = "Maxgat5"
  40. if not ScG:FindFirstChild("Maxgat5") then
  41. SelectedImage = v.PetIcon.Image
  42. local Cloned = v:Clone()
  43. Cloned.Parent = ScG
  44. Cloned.PetIcon.ImageColor3 = Color3.new(255,255,255)
  45. Cloned.PetIcon.Locked.Visible = false
  46. Cloned.Position = UDim2.new(0.053, 0,0.824, 0)
  47. Cloned.AnchorPoint = Vector2.new(0.5, 0)
  48. Cloned.Size = UDim2.new(0.076, 0,0.143, 0)
  49. Cloned.Name = "Maxgat5"
  50. end
  51. if ScG:FindFirstChild("Maxgat5") then
  52. if table.find(Eggs,v.PetIcon.Image) then
  53. print('Found!')
  54. SelectedImage = v.PetIcon.Image
  55. ScG.Maxgat5.PetIcon.Image = v.PetIcon.Image
  56. noclip = true
  57. for i,v in pairs(game:GetService("Workspace")["__MAP"].Eggs:GetDescendants()) do
  58. if v.Name == "PriceHUD" then
  59. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(v.Parent.Egg.CFrame.Position + Vector3.new(0,5,0))
  60. wait(.2)
  61. for i1,v1 in pairs(v.Parent.EggInfo.Frame.Pets:GetChildren()) do
  62. if v1.ClassName == "Frame" then
  63. if v1.Thumbnail.Image == SelectedImage then
  64. EggPrice = v.EggCost.Amount.Text
  65. end
  66. end
  67. end
  68. wait(.1)
  69. end
  70. end
  71. noclip = false
  72. wait(2)
  73. for i2,v2 in pairs(game:GetService("Workspace")["__MAP"].Eggs:GetDescendants()) do
  74. if v2.Name == "Amount" then
  75. if v2.ClassName == "TextLabel" then
  76. if v2.Text == EggPrice then
  77. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(v2.Parent.Parent.Parent.Egg.CFrame.Position + Vector3.new(0,5,0))
  78. repeat
  79. wait()
  80. keypress(0x45)
  81. wait()
  82. keyrelease(0x45)
  83. wait()
  84. until game:GetService("Players").LocalPlayer.PlayerGui.Message.Enabled == true
  85. wait(1)
  86. local test = tostring(game:GetService("Players").LocalPlayer.PlayerGui.Message.Frame.Desc.Text)
  87. local test1 = string.gsub(test,"Buy and open ","@")
  88. local test2 = string.gsub(test1,"a ","@")
  89. local test3 = string.gsub(test2,"@.*@","")
  90. local test4 = string.gsub(test3," for ","@")
  91. local test5 = string.gsub(test4," Coins??","@")
  92. local Egg = string.gsub(test5,"@.*@","")
  93. EggName = Egg
  94. print(EggName)
  95. repeat
  96. wait()
  97. number = 0
  98. for i,v3 in pairs(game:GetService("Players").LocalPlayer.PlayerGui.Inventory.Frame.Main.Pets:GetChildren()) do
  99. if v3:FindFirstChild("PetIcon") then
  100. if v3.PetIcon.Image == SelectedImage then
  101. number = number + 1
  102. end
  103. end
  104. end
  105. PetsCount = number
  106. workspace.__THINGS.__REMOTES["buy egg"]:InvokeServer({tostring(EggName),false})
  107. until tonumber(PetsCount) ~= 0
  108. end
  109. end
  110. end
  111. end
  112. else
  113. print('Not Found!')
  114. end
  115. end
  116. end)
  117. end
  118. end
  119. end)
  120.  
  121. e:Toggle("AntiAfk",function(bool)
  122. shared.toggle = bool
  123. AntiAfk = bool
  124. end)
  125.  
  126. --Credits
  127. u:Button(game:service("HttpService"):JSONDecode(game:HttpGet("https://raw.githubusercontent.com/Maxgat5/Decode/main/JSON")).username,function()
  128. setclipboard(game:service("HttpService"):JSONDecode(game:HttpGet("https://raw.githubusercontent.com/Maxgat5/Decode/main/JSON")).username)
  129. end)
  130.  
  131. u:Button("Discord Server",function()
  132. setclipboard(game:service("HttpService"):JSONDecode(game:HttpGet("https://raw.githubusercontent.com/Maxgat5/Decode/main/JSON")).discord)
  133. end)
  134.  
  135. game:GetService('RunService').Stepped:connect(function()
  136. spawn(function()
  137. if AntiAfk == true then
  138. local bb=game:service'VirtualUser'
  139. bb:CaptureController()
  140. bb:ClickButton2(Vector2.new())
  141. end
  142. end)
  143. if noclip == true then
  144. game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  145. end
  146. for i,v in pairs(game:GetService("Players").LocalPlayer.PlayerGui.Collection.Frame.Container.Holder:GetChildren()) do
  147. if v.ClassName == "TextButton" then
  148. if v.PetIcon.Locked.Visible == false then
  149. v:Destroy()
  150. end
  151. end
  152. end
  153. for i,v in pairs(game:GetService("Players").LocalPlayer.PlayerGui.Collection.Frame.Container.Holder:GetChildren()) do
  154. if v.ClassName == "TextButton" then
  155. if v.PetIcon.ImageColor3 == Color3.new(0, 0, 0) then
  156. v.PetIcon.ImageColor3 = Color3.new(255,255,255)
  157. end
  158. if v.PetIcon.Locked.Visible == true then
  159. v.PetIcon.Locked.TextTransparency = 1
  160. end
  161. end
  162. end
  163. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement