Advertisement
XZTablets

XZBanHub

Mar 31st, 2020
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 9.06 KB | None | 0 0
  1. local flat_ui_lib = loadstring(game:HttpGet("https://pastebin.com/raw/stikyhSj"))()
  2.  
  3. local characters = {"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "y", "x", "z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "!", "@", "#", "$", "%", "*", "/", "\"", "=", "-", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0"}
  4.  
  5. local random_str_output = ""
  6.  
  7. game:GetService("StarterGui"):SetCore("ResetButtonCallback", false)
  8.  
  9. local anti_fall = loadstring(game:HttpGet("https://pastebin.com/raw/dEz9LFKu"))()
  10. anti_fall.Enable()
  11.  
  12. for i = 1, math.random(5, 10) do
  13.     local random_choice = math.random(1, #characters)
  14.     local chosen = characters[random_choice]
  15.     random_str_output = random_str_output .. chosen
  16. end
  17.  
  18. print(random_str_output)
  19.  
  20. local new_ui = flat_ui_lib:Create(false, random_str_output, "Q")
  21.  
  22. local auto = new_ui:AddOption("Auto")
  23.  
  24. local player = game.Players.LocalPlayer
  25. local character = player.Character
  26. local humanoid = character:WaitForChild("Humanoid")
  27.  
  28. local backpack = player.Backpack
  29.  
  30. local data = player.data
  31. local current_weapon = data.currentWeapon
  32. local purchased_weapons = data.purchasedWeapons
  33.  
  34. local weapon_buy_event = game:GetService("ReplicatedStorage").RemoteEvents.Weapons.Purchase
  35. local weapon_equip_event = game:GetService("ReplicatedStorage").RemoteEvents.Weapons.Equip
  36.  
  37. function buyWeapon(weapon)
  38.     weapon_buy_event:FireServer(weapon)
  39. end
  40.  
  41. function equipWeapon(weapon)
  42.     humanoid:EquipTool(weapon)
  43. end
  44.  
  45. local weapon_info = {
  46.     ["Stone Hammer"] = {
  47.         ["Cost"] = 0,
  48.         ["Bought"] = false,
  49.     },
  50.     ["Katana"] = {
  51.         ["Cost"] = 1000,
  52.         ["Bought"] = false,
  53.     },
  54.     ["Sun Blaze Rod"] = {
  55.         ["Cost"] = 5000,
  56.         ["Bought"] = false,
  57.     },
  58.     ["Wizard Scythe"] = {
  59.         ["Cost"] = 20000,
  60.         ["Bought"] = false,
  61.     },
  62.     ["UFO Scythe"] = {
  63.         ["Cost"] = 50000,
  64.         ["Bought"] = false,
  65.     },
  66.     ["Death Blade"] = {
  67.         ["Cost"] = 80000,
  68.         ["Bought"] = false,
  69.     },
  70.     ["Winter Blade"] = {
  71.         ["Cost"] = 150000,
  72.         ["Bought"] = false,
  73.     },
  74.     ["Omega Tri Blade"] = {
  75.         ["Cost"] = 300000,
  76.         ["Bought"] = false,
  77.     },
  78.     ["Crystalized Banner"] = {
  79.         ["Cost"] = 550000,
  80.         ["Bought"] = false,
  81.     },
  82.     ["Bubble Katana"] = {
  83.         ["Cost"] = 10000000,
  84.         ["Bought"] = false,
  85.     },
  86.     ["Bubble Scythe"] = {
  87.         ["Cost"] = 2500000,
  88.         ["Bought"] = false,
  89.     },
  90.     ["Fusion Banner"] = {
  91.         ["Cost"] = 6500000,
  92.         ["Bought"] = false,
  93.     },
  94.     ["Inferno Slammer"] = {
  95.         ["Cost"] = 13500000,
  96.         ["Bought"] = false,
  97.     },
  98.     ["Inferno Crusher"] = {
  99.         ["Cost"] = 25000000,
  100.         ["Bought"] = false,
  101.     },
  102.     ["Oceanic Slammer"] = {
  103.         ["Cost"] = 50000000,
  104.         ["Bought"] = false,
  105.     },
  106.     ["Coral Crusher"] = {
  107.         ["Cost"] = 115000000,
  108.         ["Bought"] = false,
  109.     },
  110.     ["Red Death"] = {
  111.         ["Cost"] = 200000000,
  112.         ["Bought"] = false,
  113.     },
  114.     ["Colorful Cutter"] = {
  115.         ["Cost"] = 350000000,
  116.         ["Bought"] = false,
  117.     }
  118. }
  119.  
  120. humanoid:UnequipTools()
  121.  
  122. local tool = backpack:FindFirstChild(current_weapon.Value)
  123. local damage_event = tool:FindFirstChild("Damage")
  124.  
  125. humanoid:EquipTool(tool)
  126.  
  127. local npcs_folder = game.Workspace.Zones.npcSpawn
  128.  
  129. local npcs = {}
  130. local npc_options = {}
  131.  
  132. for i,v in pairs(npcs_folder:GetChildren()) do
  133.     if not npcs[v.Name] then
  134.         npcs[v.Name] = v.Name
  135.         table.insert(npc_options, v.Name)
  136.     end
  137. end
  138.  
  139. local target = "New_Item"
  140.  
  141. local new_target = npcs_folder:FindFirstChild(target)
  142. local target_alive = true
  143.  
  144. local auto_farm = false
  145.  
  146. auto:AddToggle("Auto Farm", false, function(returned)
  147.     auto_farm = returned
  148. end)
  149.  
  150. auto:AddDropdown("Select Target", npc_options, function(returned)
  151.     target = returned
  152.     target_alive = false
  153. end)
  154.  
  155. spawn(function()
  156.     while wait(0.2) do
  157.         if auto_farm then
  158.             if new_target and new_target.PrimaryPart ~= nil and target_alive then
  159.                 character.HumanoidRootPart.CFrame = (new_target.PrimaryPart.CFrame + new_target.PrimaryPart.CFrame.LookVector * -0.2) * CFrame.new(-1.5, 0, 1.5)
  160.                 damage_event:FireServer(new_target, current_weapon.Value)
  161.             else
  162.                 if new_target then
  163.                     new_target:Destroy()
  164.                 end
  165.                 new_target = npcs_folder:FindFirstChild(target)
  166.                 target_alive = true
  167.             end
  168.         end
  169.     end
  170. end)
  171.  
  172. npcs_folder.ChildRemoved:Connect(function(child)
  173.     if child == new_target then
  174.         target_alive = false
  175.         humanoid:UnequipTools()
  176.         local best_tool = backpack:FindFirstChild(current_weapon.Value)
  177.         wait()
  178.         equipWeapon(best_tool)
  179.     end
  180. end)
  181.  
  182. function updateWeapons()
  183.     for i,v in pairs(purchased_weapons:GetChildren()) do
  184.         weapon_info[v.Name].Bought = v.Value
  185.         humanoid:UnequipTools()
  186.         local best_tool = backpack:FindFirstChild(current_weapon.Value)
  187.         wait()
  188.         equipWeapon(best_tool)
  189.     end
  190. end
  191.  
  192. updateWeapons()
  193.  
  194. local buy = new_ui:AddOption("Buy")
  195.  
  196. local auto_buy = false
  197.  
  198. buy:AddToggle("Auto Buy Weapons", false, function(returned)
  199.     auto_buy = returned
  200. end)
  201.  
  202. spawn(function()
  203.     while wait(0.5) do
  204.         if auto_buy then
  205.             local player_gold = data:FindFirstChild("💰Gold💰")
  206.             for i,v in next, (weapon_info) do
  207.                 if not v.Bought and v.Cost <= player_gold.Value then
  208.                     buyWeapon(i)
  209.                     updateWeapons()
  210.                     humanoid:UnequipTools()
  211.                     tool = backpack:FindFirstChild(current_weapon.Value)
  212.                     damage_event = tool:FindFirstChild("Damage")
  213.                     humanoid:EquipTool(tool)
  214.                 end
  215.             end
  216.         end
  217.     end
  218. end)
  219.  
  220. local egg_info = {
  221.     ["Egg1"] = {
  222.         ["Name"] = "Egg1",
  223.         ["Sub"] = "Common Egg",
  224.         ["Cost"] = 500
  225.     },
  226.     ["Egg2"] = {
  227.         ["Name"] = "Egg2",
  228.         ["Sub"] = "Cyne Egg",
  229.         ["Cost"] = 3000
  230.     },
  231.     ["Egg3"] = {
  232.         ["Name"] = "Egg3",
  233.         ["Sub"] = "Golem Egg",
  234.         ["Cost"] = 10000
  235.     },
  236.     ["Egg4"] = {
  237.         ["Name"] = "Egg4",
  238.         ["Sub"] = "Altar Egg",
  239.         ["Cost"] = 30000
  240.     }
  241. }
  242.  
  243. local egg_flags = {
  244.     ["Egg1"] = false,
  245.     ["Egg2"] = false,
  246.     ["Egg3"] = false,
  247.     ["Egg4"] = false
  248. }
  249.  
  250. buy:AddToggle("Auto Buy Common Egg", false, function(returned)
  251.     egg_flags["Egg1"] = returned
  252. end)
  253.  
  254. buy:AddToggle("Auto Buy Cyne Egg", false, function(returned)
  255.     egg_flags["Egg2"] = returned
  256. end)
  257.  
  258. buy:AddToggle("Auto Buy Golem Egg", false, function(returned)
  259.     egg_flags["Egg3"] = returned
  260. end)
  261.  
  262. buy:AddToggle("Auto Buy Altar Egg", false, function(returned)
  263.     egg_flags["Egg4"] = returned
  264. end)
  265.  
  266. local egg_event = game:GetService("ReplicatedStorage").RemoteFunctions.Pets.CheckStats
  267.  
  268. spawn(function()
  269.     while wait(0.5) do
  270.         local player_gold = data:FindFirstChild("💰Gold💰")
  271.         for i,v in pairs(egg_info) do
  272.             if v.Cost <= player_gold.Value then
  273.                 if egg_flags[v.Name] then
  274.                     egg_event:InvokeServer(v.Name)
  275.                 end
  276.             end
  277.         end
  278.     end
  279. end)
  280.  
  281. local pets = new_ui:AddOption("Pets")
  282.  
  283. local pet_flags = {
  284.     ["Common"] = false,
  285.     ["Unique"] = false,
  286.     ["Pure"] = false,
  287.     ["Wrathful"] = false,
  288.     ["EasyLeg"] = false
  289. }
  290.  
  291. local pet_info = require(game:GetService("ReplicatedStorage").Aero.Shared.PetInfoModule)
  292.  
  293. local easy_legendaries = {}
  294.  
  295. for i1,v in pairs(pet_info) do
  296.     for i2,j in pairs(v) do
  297.         for i3,k in pairs(j) do
  298.             if type(k) == "table" then
  299.                 for i4,l in next, k do
  300.                     if l[3] == "Legendary" then
  301.                         local d2 = l[2]
  302.                         local d1 = l[1]
  303.                         local percent = (d2 - d1)
  304.                         if percent >= 3 and string.sub(i4, 1, 2) ~= "MW" then
  305.                             table.insert(easy_legendaries, i4)
  306.                         end
  307.                     end
  308.                 end
  309.             end
  310.         end
  311.     end
  312. end
  313.  
  314. function getPetByName(pet_name)
  315.     for i,v in pairs(pet_info) do
  316.         for i,j in pairs(v) do
  317.             for i,k in pairs(j) do
  318.                 if type(k) == "table" then
  319.                     for i4,l in next, k do
  320.                         if i4 == pet_name then
  321.                             return l
  322.                         end
  323.                     end
  324.                 end
  325.             end
  326.         end
  327.     end
  328. end
  329.  
  330. pets:AddToggle("Sell Commons", false, function(returned)
  331.     pet_flags["Common"] = returned
  332. end)
  333.  
  334. pets:AddToggle("Sell Uniques", false, function(returned)
  335.     pet_flags["Unique"] = returned
  336. end)
  337.  
  338. pets:AddToggle("Sell Pures", false, function(returned)
  339.     pet_flags["Pure"] = returned
  340. end)
  341.  
  342. pets:AddToggle("Sell Wrathful", false, function(returned)
  343.     pet_flags["Wrathful"] = returned
  344. end)
  345.  
  346. pets:AddToggle("Sell Easy Legendary", false, function(returned)
  347.     pet_flags["EasyLeg"] = returned
  348. end)
  349.  
  350. local rarity = 3
  351.  
  352. local delete_pet_event = game:GetService("ReplicatedStorage").RemoteEvents.Pets.DeletePet
  353.  
  354. function deletePet(pet_id)
  355.     delete_pet_event:FireServer(tonumber(pet_id))
  356. end
  357.  
  358. spawn(function()
  359.     while wait(2) do
  360.         local user_pets = data.Pets
  361.         for i,v in pairs(user_pets:GetChildren()) do
  362.             local pet_rarity = getPetByName(v.PetName.Value)[rarity]
  363.             if pet_flags[pet_rarity] then
  364.                 deletePet(v)
  365.             elseif pet_rarity == "Legendary" and pet_flags["EasyLeg"] then
  366.                 deletePet(v)
  367.             end
  368.         end
  369.     end
  370. end)
  371.  
  372. local codes = new_ui:AddOption("Codes")
  373.  
  374. local codes_info = {
  375.     "AQTIS",
  376.     "WeRise!",
  377.     "CHRIS",
  378.     "LetsGO!"
  379. }
  380.  
  381. local codes_function = game:GetService("ReplicatedStorage").RemoteFunctions.Codes
  382.  
  383. codes:AddButton("Redeem Codes", function()
  384.     for i,v in pairs(codes_info) do
  385.         codes_function:InvokeServer(v)
  386.     end
  387. end)
  388.  
  389. local credits = new_ui:AddOption("Credits")
  390.  
  391. credits:AddHeader("Credits To")
  392.  
  393. credits:AddLabel("Kinlei#5790 - Scripter")
  394. credits:AddLabel("PlayAynsc - Don't Fall Module")
  395. credits:AddLabel("Interbyte Studio - Creating the Game")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement