XZTablets

XZBladeFlatUIUpdate

Mar 28th, 2020
477
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 9.20 KB | None | 0 0
  1. local flat = loadstring(game:HttpGet("https://pastebin.com/raw/stikyhSj"))()
  2.  
  3. local main = flat:Create(false, "XZBlade", "Q")
  4.  
  5. local home_option = main:AddOption("Home")
  6. local buy_option = main:AddOption("Buy")
  7. local sell_option = main:AddOption("Sell")
  8. local rank_option = main:AddOption("Rank")
  9. local perks_option = main:AddOption("Perks")
  10.  
  11. local player = game.Players.LocalPlayer
  12. local character = player.Character
  13.  
  14. local gui = player.PlayerGui
  15.  
  16. local ui = gui:FindFirstChild("UI")
  17. local upgrades = ui:FindFirstChild("Upgrade")
  18. local view = upgrades:FindFirstChild("View")
  19. local view_perks = view:FindFirstChild("Perks")
  20.  
  21. local mouse = player:GetMouse()
  22.  
  23. local runService = game:GetService("RunService")
  24.  
  25. local rs = game:GetService("ReplicatedStorage")
  26.  
  27. script.Parent = character
  28.  
  29. local data = player.Data
  30.  
  31. local stats = data.Stats
  32. local temp = data.Temp
  33. local found = data.Found
  34. local pets = data.Pets
  35. local gp = data.GP
  36. local collect = data.Collect
  37. local perks = data.Perks
  38.  
  39. local m_handler = game.ReplicatedStorage.RF
  40. local m_utility = game.ReplicatedStorage.RE
  41.  
  42. local sell_speed = (1/2)
  43.  
  44. local rank_costs = {0, 2000000, 150000000, 11000000000, 850000000000, 63000000000000, 475000000000000, 3500000000000000, 26000000000000000, 2E+17, 1.5E+18, 2.5E+20, 2.5E+21, 9.25E+23, 2.5E+26, 1.5E+28, 3.5E+29, 5E+30, 6E+31, 8E+32, 6E+33, 8.5E+35, 1E+37, 3.5E+38, 7E+39, 7E+41, 2.6E+43, 2E+45, 1E+47, 7E+49, 7E+50, 1E+52, 9.5E+54, 9E+56, 1.8E+58, 2E+59, 4E+60, 8E+61, 5E+62, 6E+64, 8E+66, 3E+68, 6E+69, 2E+72, 7E+75, 3E+79, 5E+85, 7E+90, 4E+95, 5E+97, 2E+102, 6E+107, 1.5E+111, 4E+114, 1.2E+118, 3.5E+121, 9.7E+124, 2.5E+128, 7.3E+131, 1.8E+135, 6.3E+138, 1.5E+142, 4.6E+145, 1.3E+149, 4E+152}
  45.  
  46. local jump_costs = {0, 5000, 30000, 120000, 350000, 10000000, 18000000, 35000000, 60000000, 140000000, 250000000, 500000000000, 3000000000000, 15000000000000, 2500000000000000, 8000000000000000, 15000000000000000, 8E+22, 5E+27, 1.5E+31, 1E+34, 1E+35, 1E+42, 1.1E+43, 5E+91, 1.1E+93}
  47.  
  48. local rank_perks = {
  49.     PetEvo = {
  50.         Tag = "Pet Starting Evolution",
  51.         Rarity = "Epic",
  52.         Value = { 0, 1, 2 }
  53.     },
  54.     EggLuck = {
  55.         Tag = "Egg Luck",
  56.         Rarity = "Epic",
  57.         Value = { 0, 0.01, 0.02 }
  58.     },
  59.     PetMulti = {
  60.         Tag = "Pet Multiplier",
  61.         Rarity = "Epic",
  62.         Value = { 1, 2, 3 }
  63.     },
  64.     RankMulti = {
  65.         Tag = "Rank Multiplier",
  66.         Rarity = "Epic",
  67.         Value = { 1, 2, 3 }
  68.     },
  69.     Power = {
  70.         Tag = "Power",
  71.         Rarity = "Rare",
  72.         Value = { 1, 2, 4, 6, 9, 12 }
  73.     },
  74.     Coin = {
  75.         Tag = "Coin",
  76.         Rarity = "Rare",
  77.         Value = { 1, 2, 4, 6, 9, 12 }
  78.     },
  79.     Gem = {
  80.         Tag = "Gem",
  81.         Rarity = "Rare",
  82.         Value = { 1, 2, 4, 6, 9, 12 }
  83.     },
  84.     PetCarry = {
  85.         Tag = "Pet Carry",
  86.         Rarity = "Rare",
  87.         Value = { 0, 1, 1, 1, 1 }
  88.     },
  89.     PetClone = {
  90.         Tag = "Pet Clone",
  91.         Rarity = "Rare",
  92.         Value = { 0, 1, 2, 3, 4 }
  93.     },
  94.     EggHatch = {
  95.         Tag = "Hatch Speed",
  96.         Rarity = "Rare",
  97.         Value = { 1, 1.333, 1.666, 2 }
  98.     },
  99.     Energy = {
  100.         Tag = "Max Energy",
  101.         Rarity = "Rare",
  102.         Value = { 1, 2, 4, 6, 9, 12 }
  103.     },
  104.     BossDmg = {
  105.         Tag = "Boss Damage",
  106.         Rarity = "Rare",
  107.         Value = { 0, 2, 4, 7, 10, 15 }
  108.     },
  109.     BladeCost = {
  110.         Tag = "Blade Cost",
  111.         Rarity = "Uncommon",
  112.         Value = { 1, 0.9, 0.8, 0.7 }
  113.     },
  114.     EnergyCost = {
  115.         Tag = "Energy Cost",
  116.         Rarity = "Uncommon",
  117.         Value = { 1, 0.9, 0.8, 0.7 }
  118.     },
  119.     JumpCost = {
  120.         Tag = "Jump Cost",
  121.         Rarity = "Uncommon",
  122.         Value = { 1, 0.9, 0.8, 0.7 }
  123.     },
  124.     RankCost = {
  125.         Tag = "Rank Cost",
  126.         Rarity = "Uncommon",
  127.         Value = { 1, 0.9, 0.8, 0.7 }
  128.     },
  129.     EggCost = {
  130.         Tag = "Egg Cost",
  131.         Rarity = "Uncommon",
  132.         Value = { 1, 0.9, 0.8, 0.7 }
  133.     },
  134.     ThrowSpeed = {
  135.         Tag = "Throw Speed",
  136.         Rarity = "Uncommon",
  137.         Value = { 1, 1.333, 1.666, 2 }
  138.     },
  139.     PetStorage = {
  140.         Tag = "Pet Storage",
  141.         Rarity = "Common",
  142.         Value = { 0, 50, 50, 50, 50, 50, 50, 50 }
  143.     },
  144.     BladeRange = {
  145.         Tag = "Blade Range",
  146.         Rarity = "Common",
  147.         Value = { 1, 1.333, 1.666, 2 }
  148.     }
  149. }
  150.  
  151. home_option:AddButton("Redeem Codes", function()
  152.     local codes = {
  153.         "snug",
  154.         "telanthric",
  155.         "vexsquad",
  156.         "discord",
  157.         "Thecookieboi",
  158.         "million",
  159.         "million2",
  160.         "razor",
  161.         "gamingdan",
  162.         "secret",
  163.         "TWITTER",
  164.         "PlanetMilo"
  165.     }
  166.    
  167.     for i,v in pairs(codes) do
  168.         m_handler:InvokeServer("Codes", v)
  169.     end
  170. end)
  171.  
  172. home_option:AddButton("Unlock Islands", function()
  173.     local n_islands = 21
  174.     local n_island = 2
  175.     for i = n_island, n_islands do
  176.         m_utility:FireServer("UnlockWorld", i)
  177.     end
  178. end)
  179.  
  180. home_option:AddButton("Collect Chests", function()
  181.     local chests = game.Workspace:FindFirstChild("Chest")
  182.     for i,v in pairs(chests:GetChildren()) do
  183.         m_handler:InvokeServer("Collect", v.Name)
  184.     end
  185. end)
  186.  
  187. local auto_throw_toggle = false
  188.  
  189. home_option:AddToggle("Auto Throw", false, function(status)
  190.     auto_throw_toggle = status
  191.     while auto_throw_toggle do
  192.         m_utility:FireServer("Throw", mouse.Hit.p)
  193.         runService.Heartbeat:Wait()
  194.     end
  195. end)
  196.  
  197. local auto_evolve = false
  198.  
  199. home_option:AddToggle("Auto Evolve Pets", false, function(returned)
  200.     auto_evolve = returned
  201.     while auto_evolve do
  202.         m_handler:InvokeServer("EvolveAll")
  203.         wait(1)
  204.     end
  205. end)
  206.  
  207. local auto_equip = false
  208.  
  209. home_option:AddToggle("Auto Equip Pets", false, function(returned)
  210.     auto_equip = returned
  211.     while auto_equip do
  212.         m_handler:InvokeServer("EquipBest")
  213.         wait(1)
  214.     end
  215. end)
  216.  
  217. local auto_sell_toggle = false
  218.  
  219. sell_option:AddToggle("Auto Sell", false, function(status)
  220.     auto_sell_toggle = status
  221. end)
  222.  
  223. local function getHighest(tab)
  224.     local highest
  225.     for i,v in pairs(tab) do
  226.         if not highest or highest < v then
  227.             highest = v
  228.         end
  229.     end
  230.     return highest
  231. end
  232.  
  233. spawn(function()
  234.     while wait() do
  235.         if auto_sell_toggle then
  236.             local sellTable = {}
  237.             for i,v in pairs(game.Workspace.Ignore.Rings:GetChildren()) do
  238.                 if v.Name:len() >= 5 then
  239.                     table.insert(sellTable, tonumber(v.Name:sub(1,-5)))
  240.                 end
  241.             end
  242.             local highestSellValue = getHighest(sellTable)
  243.             m_handler:InvokeServer("SellPower", game.Workspace.Ignore.Rings[tostring(highestSellValue).."Sell"].Collider)
  244.             wait(sell_speed)
  245.         end
  246.     end
  247. end)
  248.  
  249. sell_option:AddSlider("Sell Speed", 1, 4, 2, function(value)
  250.     sell_speed = (1/value)
  251. end)
  252.  
  253. buy_option:AddButton("Buy Blades", function()
  254.     m_handler:InvokeServer("BuyBlade", true)
  255. end)
  256.  
  257. buy_option:AddButton("Buy Energy", function()
  258.     m_handler:InvokeServer("BuyEnergy", true)
  259. end)
  260.  
  261. buy_option:AddButton("Buy Jump", function()
  262.     local user_coins = stats.Coins.Value
  263.     local stats_jump_cost = perks.JumpCost
  264.     local cost = math.floor(jump_costs[stats.Jump.Value + 1] * rank_perks[stats_jump_cost.Name].Value[stats_jump_cost.Value] + 0.5)
  265.     if cost <= user_coins then
  266.         m_handler:InvokeServer("BuyJump", true)
  267.     else
  268.         buy_option:SendAlert("[XZBlade.BuyJump]: Not enough coins. Cost: " .. cost, false, 3)
  269.     end
  270. end)
  271.  
  272. local buy_speed = (2/3)
  273.  
  274. local auto_blade = false
  275.  
  276. buy_option:AddToggle("Auto Buy Blades", false, function(value)
  277.     auto_blade = value
  278.     while auto_blade do
  279.         m_handler:InvokeServer("BuyBlade", true)
  280.         wait(buy_speed)
  281.     end
  282. end)
  283.  
  284. local auto_energy = false
  285.  
  286. buy_option:AddToggle("Auto Buy Energy", false, function(value)
  287.     auto_energy = value
  288.     while auto_energy do
  289.         m_handler:InvokeServer("BuyEnergy", true)
  290.         wait(buy_speed)
  291.     end
  292. end)
  293.  
  294. local auto_rank = false
  295.  
  296. buy_option:AddToggle("Auto Buy Ranks", false, function(value)
  297.     auto_rank = value
  298.     while auto_rank do
  299.         local user_coins = stats.Coins.Value
  300.         local stats_rank_cost = perks.RankCost
  301.         local cost = math.floor(rank_costs[stats.Rank.Value + 1] * rank_perks[stats_rank_cost.Name].Value[stats_rank_cost.Value] + 0.5)
  302.         if cost <= user_coins then
  303.             m_handler:InvokeServer("BuyRank")
  304.         end
  305.         wait(buy_speed)
  306.     end
  307. end)
  308.  
  309. local auto_perk = false
  310.  
  311. buy_option:AddToggle("Auto Buy Perks", false, function(value)
  312.     auto_perk = value
  313.     while auto_perk do
  314.         for i = 1, 3 do
  315.             m_handler:InvokeServer("BuyPerk", tostring(i))
  316.         end
  317.         wait(buy_speed)
  318.     end
  319. end)
  320.  
  321. buy_option:AddSlider("Buy Speed", 1, 4, 2, function(value)
  322.     buy_speed = (2/value)
  323. end)
  324.  
  325. rank_option:AddButton("Buy Rank", function()
  326.     local user_coins = stats.Coins.Value
  327.     local stats_rank_cost = perks.RankCost
  328.     local cost = math.floor(rank_costs[stats.Rank.Value + 1] * rank_perks[stats_rank_cost.Name].Value[stats_rank_cost.Value] + 0.5)
  329.     if cost <= user_coins then
  330.         m_handler:InvokeServer("BuyRank")
  331.     else
  332.         buy_option:SendAlert("[XZBlade.BuyRank]: Not enough coins. Cost: " .. cost, false, 3)
  333.     end
  334. end)
  335.  
  336. local mt = getrawmetatable(game)
  337. if setreadonly then setreadonly(mt, false) else make_writeable(mt, true) end
  338. local namecallMethod = getnamecallmethod or get_namecall_method
  339.  
  340. local ot = mt.__namecall
  341. mt.__namecall = function(self, ...)
  342.    local args = {...}
  343.    local method = namecallMethod()
  344.    if tostring(method) == "Kick" then
  345.       print('Kick attempt')
  346.        return
  347.    end
  348.    return ot(self, ...)
  349. end
  350.  
  351. local vu = game:GetService("VirtualUser")
  352. game:GetService("Players").LocalPlayer.Idled:connect(function()
  353.    vu:Button2Down(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  354.    wait(1)
  355.    vu:Button2Up(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  356. end)
Add Comment
Please, Sign In to add comment