Advertisement
michaelishot666

ufo script

Sep 10th, 2021
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.24 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:Button("AdriaD2103#0001",function()
  74. setclipboard("AdriaD2103#0001")
  75. end)
  76.  
  77. u:Button(game:service("HttpService"):JSONDecode(game:HttpGet("https://raw.githubusercontent.com/Maxgat5/Decode/main/JSON")).username,function()
  78. setclipboard(game:service("HttpService"):JSONDecode(game:HttpGet("https://raw.githubusercontent.com/Maxgat5/Decode/main/JSON")).username)
  79. end)
  80.  
  81. u:Button("Discord Server",function()
  82. setclipboard(game:service("HttpService"):JSONDecode(game:HttpGet("https://raw.githubusercontent.com/Maxgat5/Decode/main/JSON")).discord)
  83. end)
  84.  
  85. game:GetService('RunService').Stepped:connect(function()
  86. spawn(function()
  87. if AntiAfk == true then
  88. local bb=game:service'VirtualUser'
  89. bb:CaptureController()
  90. bb:ClickButton2(Vector2.new())
  91. end
  92. end)
  93. end)
  94.  
  95. spawn(function()
  96. while wait() do
  97. if Egg == true then
  98. for i,v in pairs(Eggs) do
  99. if SelectedEgg == v then
  100. game:GetService("ReplicatedStorage").RemoteEvent:FireServer("Purchase One Egg",i,{["Pets"] = {},["Hats"] = {}})
  101. end
  102. end
  103. end
  104. end
  105. end)
  106.  
  107. spawn(function()
  108. while wait() do
  109. if AutoKill == true then
  110. for i,v in pairs(game.Workspace.Humans:GetChildren()) do
  111. if v.HumanGui.StarFrame.Star1.StarAmount.Text == Level then
  112. spawn(function()
  113. game:GetService("ReplicatedStorage").RemoteEvent:FireServer("Damage Humans",{[tostring(v.Name)] = {["Last"] = 0,["Current"] = 99999999999999999999999}})
  114. end)
  115. end
  116. end
  117. end
  118. end
  119. end)
  120.  
  121. spawn(function()
  122. while wait() do
  123. if AutoCollectDrop == true then
  124. for i,v in pairs(game:GetService("Workspace"):GetChildren()) do
  125. if string.find(v.Name,"Item") then
  126. for i1,v1 in pairs(v:GetChildren()) do
  127. firetouchinterest(game.Players.LocalPlayer.Character.HumanoidRootPart, v1, 0)
  128. firetouchinterest(game.Players.LocalPlayer.Character.HumanoidRootPart, v1, 1)
  129. end
  130. end
  131. end
  132. end
  133. end
  134. end)
  135.  
  136. spawn(function()
  137. while wait() do
  138. if UFO == true then
  139. game:GetService("ReplicatedStorage").RemoteEvent:FireServer("Buy +1 UFO", 1)
  140. end
  141. end
  142. end)
  143.  
  144. spawn(function()
  145. while wait() do
  146. if UFOUpgrade == true then
  147. for i,v in pairs(game:GetService("Players").LocalPlayer.PlayerGui.MainGui.UFOFrame.UFOContents.Contents.ScrollingFrame:GetChildren()) do
  148. pcall(function()
  149. game:GetService("ReplicatedStorage").RemoteEvent:FireServer("Buy UFO Upgrade", 1, tonumber(v.Name))
  150. end)
  151. end
  152. end
  153. end
  154. end)
  155.  
  156. spawn(function()
  157. while wait() do
  158. if KillLevel == true then
  159. game:GetService("ReplicatedStorage").RemoteEvent:FireServer("Damage Humans",{[Enemyid] = {["Last"] = 0,["Current"] = 99999999999999999999999}})
  160. game:GetService("ReplicatedStorage").RemoteEvent:FireServer("Retreat UFOs")
  161. end
  162. end
  163. end)
  164.  
  165. pcall(function()
  166. if game:GetService("CoreGui"):FindFirstChild("PurchasePromptApp") then
  167. game:GetService("CoreGui").PurchasePromptApp:Destroy()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement