Advertisement
jjsnappy

UFO Simulator

Feb 2nd, 2022
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.54 KB | None | 0 0
  1. local library = loadstring(game:HttpGet(('https://raw.githubusercontent.com/Maxgat5/UiLib/main/lua')))()
  2. local w = library:CreateWindow("UFO Simulator")
  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. Level = ""
  8. SelectedEgg = "Bunny Egg"
  9. Eggs = {}
  10. for i,v in pairs(game:GetService("Workspace").EggCapsules:GetChildren()) do
  11. a = string.gsub(v.Name,"Capsule -- ","")
  12. table.insert(Eggs,a)
  13. end
  14.  
  15. b:Toggle("AutoKill",function(bool)
  16. shared.toggle = bool
  17. AutoKill = bool
  18. end)
  19.  
  20. b:Box("Level","number",function(a)
  21. Level = a
  22. end)
  23.  
  24. b:Toggle("AutoCollectDrop",function(bool)
  25. shared.toggle = bool
  26. AutoCollectDrop = bool
  27. end)
  28.  
  29. f:Dropdown("Select Egg",Eggs,true,function(a)
  30. SelectedEgg = a
  31. end)
  32.  
  33. f:Toggle("Egg",function(bool)
  34. shared.toggle = bool
  35. Egg = bool
  36. end)
  37.  
  38. f:Toggle("UFO",function(bool)
  39. shared.toggle = bool
  40. UFO = bool
  41. end)
  42.  
  43. f:Toggle("UFOUpgrade",function(bool)
  44. shared.toggle = bool
  45. UFOUpgrade = bool
  46. end)
  47.  
  48. e:Toggle("AntiAfk",function(bool)
  49. shared.toggle = bool
  50. AntiAfk = bool
  51. end)
  52.  
  53. e:Box("Walkspeed","number",function(a)
  54. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = a
  55. end)
  56.  
  57. e:Button("Tp World",function()
  58. for _,v in pairs(game:GetService("Workspace").UITouchObjects["Teleport-Home"]:GetDescendants()) do
  59. if string.find(v.Name, "TouchPart") then
  60. for _,v1 in pairs(v:GetChildren()) do
  61. firetouchinterest(game.Players.LocalPlayer.Character.HumanoidRootPart, v1.Parent, 0)
  62. firetouchinterest(game.Players.LocalPlayer.Character.HumanoidRootPart, v1.Parent, 1)
  63. end
  64. end
  65. end
  66. end)
  67.  
  68. e:Button("Rejoin",function()
  69. game:GetService("TeleportService"):Teleport(game.PlaceId,game:GetService("Players").LocalPlayer)
  70. end)
  71.  
  72. --Credits
  73. u:Label("Youtube Subs: "..getgenv().Subscribers,{
  74. TextSize = 25;
  75. TextColor = Color3.fromRGB(255,255,255);
  76. BgColor = Color3.fromRGB(69,69,69)
  77. })
  78.  
  79. u:Label("Discord Members: "..getgenv().TotalMembers,{
  80. TextSize = 25;
  81. TextColor = Color3.fromRGB(255,255,255);
  82. BgColor = Color3.fromRGB(69,69,69)
  83. })
  84.  
  85. u:Label("Pastebin Views: "..getgenv().TotalPastebinViews,{
  86. TextSize = 25;
  87. TextColor = Color3.fromRGB(255,255,255);
  88. BgColor = Color3.fromRGB(69,69,69)
  89. })
  90.  
  91. u:Button("Discord Server",function()
  92. setclipboard(getgenv().Discord)
  93. end)
  94.  
  95. u:Button("Youtube Channel",function()
  96. setclipboard(getgenv().Youtube)
  97. end)
  98.  
  99. u:Button("Pastebin Page",function()
  100. setclipboard(getgenv().Pastebin)
  101. end)
  102.  
  103. u:Button(getgenv().Username,function()
  104. setclipboard(getgenv().Username)
  105. end)
  106.  
  107. game:GetService('RunService').Stepped:connect(function()
  108. spawn(function()
  109. if AntiAfk == true then
  110. local bb=game:service'VirtualUser'
  111. bb:CaptureController()
  112. bb:ClickButton2(Vector2.new())
  113. end
  114. end)
  115. end)
  116.  
  117. spawn(function()
  118. while wait() do
  119. if Egg == true then
  120. for i,v in pairs(Eggs) do
  121. if SelectedEgg == v then
  122. game:GetService("ReplicatedStorage").RemoteEvent:FireServer("Purchase One Egg",i,{["Pets"] = {},["Hats"] = {}})
  123. end
  124. end
  125. end
  126. end
  127. end)
  128.  
  129. spawn(function()
  130. while wait() do
  131. if AutoKill == true then
  132. for i,v in pairs(game.Workspace.Humans:GetChildren()) do
  133. if v.HumanGui.StarFrame.Star1.StarAmount.Text == Level then
  134. spawn(function()
  135. game:GetService("ReplicatedStorage").RemoteEvent:FireServer("Damage Humans",{[tostring(v.Name)] = {["Last"] = 0,["Current"] = 99999999999999999999999}})
  136. end)
  137. end
  138. end
  139. end
  140. end
  141. end)
  142.  
  143. spawn(function()
  144. while wait() do
  145. if AutoCollectDrop == true then
  146. for i,v in pairs(game:GetService("Workspace"):GetChildren()) do
  147. if string.find(v.Name,"Item") then
  148. for i1,v1 in pairs(v:GetChildren()) do
  149. firetouchinterest(game.Players.LocalPlayer.Character.HumanoidRootPart, v1, 0)
  150. firetouchinterest(game.Players.LocalPlayer.Character.HumanoidRootPart, v1, 1)
  151. end
  152. end
  153. end
  154. end
  155. end
  156. end)
  157.  
  158. spawn(function()
  159. while wait() do
  160. if UFO == true then
  161. game:GetService("ReplicatedStorage").RemoteEvent:FireServer("Buy +1 UFO", 1)
  162. end
  163. end
  164. end)
  165.  
  166. spawn(function()
  167. while wait() do
  168. if UFOUpgrade == true then
  169. for i,v in pairs(game:GetService("Players").LocalPlayer.PlayerGui.MainGui.UFOFrame.UFOContents.Contents.ScrollingFrame:GetChildren()) do
  170. pcall(function()
  171. game:GetService("ReplicatedStorage").RemoteEvent:FireServer("Buy UFO Upgrade", 1, tonumber(v.Name))
  172. end)
  173. end
  174. end
  175. end
  176. end)
  177.  
  178. spawn(function()
  179. while wait() do
  180. if KillLevel == true then
  181. game:GetService("ReplicatedStorage").RemoteEvent:FireServer("Damage Humans",{[Enemyid] = {["Last"] = 0,["Current"] = 99999999999999999999999}})
  182. game:GetService("ReplicatedStorage").RemoteEvent:FireServer("Retreat UFOs")
  183. end
  184. end
  185. end)
  186.  
  187. pcall(function()
  188. if game:GetService("CoreGui"):FindFirstChild("PurchasePromptApp") then
  189. game:GetService("CoreGui").PurchasePromptApp:Destroy()
  190. end
  191. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement