Advertisement
gluxiisbad123

gluxiisbad123

Aug 2nd, 2021
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.83 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("AutoFarm")
  4. local f = w:CreateFolder("AutoBuy")
  5. local e = w:CreateFolder("Mix")
  6. local u = w:CreateFolder("Credits")
  7. SelectedArea = "Spawn"
  8. Areas = {}
  9. for i,v in pairs(game:GetService("Workspace")["__MAP"].Areas:GetChildren()) do
  10. table.insert(Areas,v.Name)
  11. end
  12. SelectedEgg = "Cracked Egg"
  13. Eggs = {}
  14. for i,v in pairs(game:GetService("ReplicatedStorage").Game.Eggs:GetChildren()) do
  15. table.insert(Eggs,v.Name)
  16. end
  17.  
  18. b:Toggle("AutoCoin v1 (Pro)",function(bool)
  19. shared.toggle = bool
  20. AutoFarmClosestPartv1 = bool
  21. end)
  22.  
  23. b:Toggle("AutoCoin v2 (Noob)",function(bool)
  24. shared.toggle = bool
  25. AutoFarmClosestPartv2 = bool
  26. end)
  27.  
  28. b:Toggle("AutoCollectDrop",function(bool)
  29. shared.toggle = bool
  30. AutoCollectDrop = bool
  31. end)
  32.  
  33. f:Dropdown("Select Egg",Eggs,true,function(a)
  34. SelectedEgg = a
  35. end)
  36.  
  37. f:Toggle("Buy Egg",function(bool)
  38. shared.toggle = bool
  39. AutoBuyEgg = bool
  40. end)
  41.  
  42. e:Toggle("AntiAfk",function(bool)
  43. shared.toggle = bool
  44. AntiAfk = bool
  45. end)
  46.  
  47. e:Dropdown("Selecte Area",Areas,true,function(a)
  48. SelectedArea = a
  49. end)
  50.  
  51. e:Button("Tp Area",function()
  52. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(game:GetService("Workspace")["__MAP"].Areas[SelectedArea].Ground.CFrame.Position + Vector3.new(0,30,0))
  53. end)
  54.  
  55. --Credits
  56. u:Button("maxgat5#8395",function()
  57. setclipboard("maxgat5#8395")
  58. end)
  59.  
  60. u:Button("Discord Server",function()
  61. setclipboard("https://discord.gg/K4txdRSVfq")
  62. end)
  63.  
  64. function ClosestPart()
  65. local dist = math.huge
  66. local target = nil
  67. for i,v in pairs(game:GetService("Workspace")["__THINGS"].Coins:GetChildren()) do
  68. if v.ClassName == "Folder" then
  69. if v:FindFirstChild("Coin") then
  70. if v.Coin.Transparency == 0 then
  71. local magnitude = (v.Coin.Position - game:GetService("Players").LocalPlayer.Character.Head.Position).magnitude
  72. if magnitude < dist then
  73. dist = magnitude
  74. target = v.Name
  75. end
  76. end
  77. end
  78. end
  79. end
  80. return target
  81. end
  82.  
  83. spawn(function()
  84. while wait() do
  85. pcall(function()
  86. if AutoFarmClosestPartv1 == true then
  87. for i,v in pairs(game:GetService("Workspace")["__THINGS"].Pets:GetChildren()) do
  88. if v.ClassName == "Part" then
  89. if AutoFarmClosestPartv1 == true then
  90. workspace.__THINGS.__REMOTES["join coin"]:InvokeServer({tostring(ClosestPart()),{tostring(v.Name)}})
  91. workspace.__THINGS.__REMOTES["farm coin"]:FireServer({tostring(ClosestPart()),tostring(v.Name)})
  92. end
  93. end
  94. end
  95. end
  96. end)
  97.  
  98. pcall(function()
  99. if AutoFarmClosestPartv2 == true then
  100. for i,v in pairs(game:GetService("Workspace")["__THINGS"].Pets:GetChildren()) do
  101. if v.ClassName == "Part" then
  102. if AutoFarmClosestPartv2 == true then
  103. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(game:GetService("Workspace")["__THINGS"].Coins[ClosestPart()].Coin.CFrame.Position + Vector3.new(0,0,0))
  104. spawn(function()
  105. workspace.__THINGS.__REMOTES["join coin"]:InvokeServer({tostring(ClosestPart()),{tostring(v.Name)}})
  106. workspace.__THINGS.__REMOTES["farm coin"]:FireServer({tostring(ClosestPart()),tostring(v.Name)})
  107. end)
  108. end
  109. end
  110. end
  111. end
  112. end)
  113. end
  114. end)
  115.  
  116. game:GetService('RunService').Stepped:connect(function()
  117. spawn(function()
  118. pcall(function()
  119. if AutoCollectDrop == true then
  120. for i,v in pairs(game:GetService("Workspace")["__THINGS"].Orbs:GetChildren()) do
  121. v.CanCollide = false
  122. v.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(0,0,0)
  123. end
  124. end
  125. end)
  126. end)
  127.  
  128. spawn(function()
  129. pcall(function()
  130. if AutoBuyEgg == true then
  131. workspace.__THINGS.__REMOTES["buy egg"]:InvokeServer({tostring(SelectedEgg),false})
  132. end
  133. end)
  134. end)
  135.  
  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. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement