Advertisement
joefromsansnite

Untitled

Sep 30th, 2021
939
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 15.95 KB | None | 0 0
  1. -- Variables
  2. local library = loadstring(game:HttpGet("https://raw.githubusercontent.com/xHeptc/Kavo-UI-Library/main/source.lua"))()
  3.  
  4. local themeStyles = {
  5.     DarkTheme = {
  6.         SchemeColor = Color3.fromRGB(64, 64, 64),
  7.         Background = Color3.fromRGB(0, 0, 0),
  8.         Header = Color3.fromRGB(0, 0, 0),
  9.         TextColor = Color3.fromRGB(255,255,255),
  10.         ElementColor = Color3.fromRGB(20, 20, 20)
  11.     },
  12.     LightTheme = {
  13.         SchemeColor = Color3.fromRGB(150, 150, 150),
  14.         Background = Color3.fromRGB(255,255,255),
  15.         Header = Color3.fromRGB(200, 200, 200),
  16.         TextColor = Color3.fromRGB(0,0,0),
  17.         ElementColor = Color3.fromRGB(224, 224, 224)
  18.     },
  19.     BloodTheme = {
  20.         SchemeColor = Color3.fromRGB(227, 27, 27),
  21.         Background = Color3.fromRGB(10, 10, 10),
  22.         Header = Color3.fromRGB(5, 5, 5),
  23.         TextColor = Color3.fromRGB(255,255,255),
  24.         ElementColor = Color3.fromRGB(20, 20, 20)
  25.     },
  26.     GrapeTheme = {
  27.         SchemeColor = Color3.fromRGB(166, 71, 214),
  28.         Background = Color3.fromRGB(64, 50, 71),
  29.         Header = Color3.fromRGB(36, 28, 41),
  30.         TextColor = Color3.fromRGB(255,255,255),
  31.         ElementColor = Color3.fromRGB(74, 58, 84)
  32.     },
  33.     Ocean = {
  34.         SchemeColor = Color3.fromRGB(86, 76, 251),
  35.         Background = Color3.fromRGB(26, 32, 58),
  36.         Header = Color3.fromRGB(38, 45, 71),
  37.         TextColor = Color3.fromRGB(200, 200, 200),
  38.         ElementColor = Color3.fromRGB(38, 45, 71)
  39.     },
  40.     Midnight = {
  41.         SchemeColor = Color3.fromRGB(26, 189, 158),
  42.         Background = Color3.fromRGB(44, 62, 82),
  43.         Header = Color3.fromRGB(57, 81, 105),
  44.         TextColor = Color3.fromRGB(255, 255, 255),
  45.         ElementColor = Color3.fromRGB(52, 74, 95)
  46.     },
  47.     Sentinel = {
  48.         SchemeColor = Color3.fromRGB(230, 35, 69),
  49.         Background = Color3.fromRGB(32, 32, 32),
  50.         Header = Color3.fromRGB(24, 24, 24),
  51.         TextColor = Color3.fromRGB(119, 209, 138),
  52.         ElementColor = Color3.fromRGB(24, 24, 24)
  53.     },
  54.     Synapse = {
  55.         SchemeColor = Color3.fromRGB(46, 48, 43),
  56.         Background = Color3.fromRGB(13, 15, 12),
  57.         Header = Color3.fromRGB(36, 38, 35),
  58.         TextColor = Color3.fromRGB(152, 99, 53),
  59.         ElementColor = Color3.fromRGB(24, 24, 24)
  60.     },
  61.     Serpent = {
  62.         SchemeColor = Color3.fromRGB(0, 166, 58),
  63.         Background = Color3.fromRGB(31, 41, 43),
  64.         Header = Color3.fromRGB(22, 29, 31),
  65.         TextColor = Color3.fromRGB(255,255,255),
  66.         ElementColor = Color3.fromRGB(22, 29, 31)
  67.     }
  68. }
  69.  
  70. local theme = themeStyles.Serpent
  71.  
  72. -- Services
  73. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  74. local TeleportService = game:GetService("TeleportService")
  75.  
  76. -- Remotes
  77. local remotes = ReplicatedStorage.Remotes
  78.  
  79. -- Player
  80. local player = game.Players.LocalPlayer
  81. local character = player.Character
  82. local humanoidRootPart = character.HumanoidRootPart
  83. local humanoid = character.Humanoid
  84.  
  85. local characterChildren = character:GetChildren()
  86. local celShading = character.CelShading:GetChildren()
  87.  
  88. local playerData = player:WaitForChild("Data")
  89. local zeni = playerData.Moneys
  90. local maxKi, ki = playerData.MaxKi, playerData.Ki
  91. local maxStamina, stamina = playerData.MaxStamina, playerData.Stamina
  92.  
  93. local playerGui = player.PlayerGui
  94. local keysHolder = playerGui:GetChildren()[22]
  95.  
  96. -- Other variables
  97. local qKey, eKey = 81, 69
  98.  
  99. local hits = 5
  100.  
  101. local gameIds = {
  102.     [1] = 5798060869, -- Gravity Chamber
  103.     [2] = 4263492467, -- Other World
  104.     [3] = 298400657, -- Earth
  105.     [4] = 0
  106. }
  107.  
  108. local texts = {
  109.     [1] = "Gravity Chamber",
  110.     [2] = "Other World",
  111.     [3] = "Earth",
  112.     [4] = "Hyperbolic Time Chamber"
  113. }
  114.  
  115. local clothingShopGui = game.PlaceId == gameIds[3] and game:FindFirstChild("ClothingShop", true) or nil
  116. local mFrame = game.PlaceId == gameIds[3] and clothingShopGui:FindFirstChild("Frame") or nil
  117. local clothingGui, accessoriesGui = game.PlaceId == gameIds[3] and mFrame:FindFirstChild("Clothing") or nil, game.PlaceId == gameIds[3] and mFrame:FindFirstChild("Accessories") or nil
  118.  
  119. local materials = {}
  120.  
  121. local dragonBalls = game.PlaceId == gameIds[3] and workspace.DragonBallLocatioionsa:GetChildren() or {}
  122. local spawns = game.PlaceId == gameIds[3] and workspace.Extras:GetChildren() or {}
  123.  
  124. -- Earth variables
  125. _G.spawnIndex = ""
  126. _G.dragonBallIndex = 0
  127.  
  128. _G.mobToFarm = ""
  129. _G.autoFarm = false
  130.  
  131. -- Gravity Chamber variables
  132. _G.gcInfiniteHealth = false
  133. _G.gcAutoPress = false
  134.  
  135. -- Other variables
  136. _G.gameId = 0
  137.  
  138.  
  139. -- Functions
  140. -- Get functions
  141. function getMobs() -- Returns array of mobs in game
  142.     local list = {}
  143.     for i, mob in pairs(workspace:GetChildren()) do
  144.         if mob:FindFirstChild("Humanoid") and not game.Players:FindFirstChild(mob.Name) then
  145.             table.insert(list,mob.Name)
  146.         end
  147.     end
  148.     return list
  149. end
  150.  
  151. function getDragonBalls() -- Returns array of the names of dragon balls ingame
  152.     local list = {}
  153.     for i, v in pairs(dragonBalls) do
  154.         table.insert(list, v.Name)
  155.     end
  156.     return list
  157. end
  158.  
  159. function getSpawns() -- Returns array of the names of spawns ingame
  160.     local list = {}
  161.     for i, v in pairs(spawns) do
  162.         table.insert(list, v.Name)
  163.     end
  164.     return list
  165. end
  166.  
  167. function getStyles() -- Returns array of themes
  168.     local list = {}
  169.     for theme, propertiesArray in pairs(themeStyles) do
  170.         table.insert(list, theme)
  171.     end
  172.     return list
  173. end
  174.  
  175. function getMaterials() -- Retruns array of materials
  176.     local list = {}
  177.     for i, v in pairs(Enum.Material:GetEnumItems()) do
  178.         table.insert(list, v.Name)
  179.     end
  180.     return list
  181. end
  182.  
  183. -- Spawn functions
  184. function farm() -- Farm function
  185.     for _, mob in pairs(workspace:GetChildren()) do
  186.         if mob:FindFirstChild("Humanoid") and mob.Humanoid.Health > 0 then
  187.             if mob.Name == _G.mobToFarm then
  188.                 while true do
  189.                     if _G.autoFarm == false or mob.Humanoid.Health <= 0 then
  190.                         break
  191.                     end
  192.                     humanoidRootPart.CFrame = mob.HumanoidRootPart.CFrame - mob.HumanoidRootPart.CFrame.LookVector*5
  193.                    
  194.                     local args = {
  195.                         ["HitTime"] = 0.5,
  196.                         ["Type"] = "Normal",
  197.                         ["HitEffect"] = ReplicatedStorage.Resources.OtherEffects.NormalHitEffect2,
  198.                         ["VictimCFrame"] = mob.HumanoidRootPart.CFrame,
  199.                         ["HurtAnimation"] = ReplicatedStorage.Resources.Animations.HurtAnimations.Hurt1,
  200.                         ["Velocity"] = Vector3.new(1,1,1),
  201.                         ["Sound"] = ReplicatedStorage.Resources.Sounds.Combat.NormalPunching,
  202.                         ["Damage"] = 1
  203.                     }
  204.                     remotes.Damage4:InvokeServer(mob,args)
  205.                 end
  206.                 wait()
  207.             end
  208.         end
  209.     end
  210. end
  211.  
  212. function infiniteHealth() -- Gravity Chamber infinite health function
  213.     if game.PlaceId == gameIds[1] then
  214.         while true do
  215.             if _G.gcInfiniteHealth == false then
  216.                 break
  217.             end
  218.             humanoid.Health = humanoid.MaxHealth
  219.             wait()
  220.         end
  221.     end
  222. end
  223.  
  224. function autoPress() -- Gravity Chamber auto press function
  225.     if game.PlaceId == gameIds[1] then
  226.         while true do
  227.             local key1, key2 = keysHolder.Key1, keysHolder.Key2
  228.             local key1Text, key2Text = string.sub(key1.Text, 1, 1), string.sub(key2.Text, 1, 1)
  229.  
  230.             if _G.gcAutoPress == false then
  231.                 break
  232.             end
  233.  
  234.             wait(0.15)
  235.             if key1Text == "Q" then
  236.                 keypress(qKey)
  237.                 keyrelease(qKey)
  238.             else
  239.                 keypress(eKey)
  240.                 keyrelease(eKey)
  241.             end
  242.             wait(0.15)
  243.             if key2Text == "Q" then
  244.                 keypress(qKey)
  245.                 keyrelease(qKey)
  246.             else
  247.                 keypress(eKey)
  248.                 keyrelease(eKey)
  249.             end
  250.             wait(.45)
  251.         end
  252.     end
  253. end
  254.  
  255. -- Button functions
  256. function rejoinButtonClicked() -- Gravity Chamber rejoin
  257.     if game.PlaceId == gameIds[1] then
  258.         TeleportService:Teleport(gameIds[1], player)
  259.     end
  260. end
  261.  
  262. function infiniteKiButtonClicked() -- Infinite ki
  263.     maxKi.Value = math.huge
  264.     ki.Value = math.huge
  265. end
  266.  
  267. function infiniteStaminaButtonClicked() -- Infinite stamina
  268.     maxStamina.Value = math.huge
  269.     stamina.Value = math.huge
  270. end
  271.  
  272. function teleportButtonClicked() -- Teleports player to selected game
  273.     TeleportService:Teleport(_G.gameId, player)
  274.     print("teleporting "..player.Name)
  275. end
  276.  
  277. function spawnTeleportButtonClicked() -- Teleports player to selected spawn
  278.     if #getSpawns() > 0 then -- Check if there are spawns
  279.         character:MoveTo(workspace:FindFirstChild(getSpawns()[_G.spawnIndex], true).Position)
  280.     else
  281.         print("no spawns")
  282.     end
  283. end
  284.  
  285. function dbTeleportButtonClicked() -- Teleports player to selected dragon ball
  286.     if #getDragonBalls() > 0 then -- Check if there are dragon balls
  287.         character:MoveTo(workspace:FindFirstChild(getDragonBalls()[_G.dragonBallIndex], true).Stars.Position)
  288.     else
  289.         print("no dragon balls")
  290.     end
  291. end
  292.  
  293. function clothesButtonClicked() -- WIP
  294.     zeni.Value = 10000
  295.     local success, err = xpcall(clothingGui, function ()
  296.         return "not ingame"
  297.     end)
  298.  
  299.     if clothingGui then
  300.         for _, button in pairs(clothingGui:GetChildren()) do
  301.             if button:IsA("TextButton") then
  302.                 local args = {
  303.                     [1] = "BuyOutfit",
  304.                     [2] = button.Name,
  305.                 }
  306.                
  307.                 ReplicatedStorage.Remotes.NPCStuff:FireServer(unpack(args))
  308.             end
  309.         end
  310.     else
  311.         print("not ingame")
  312.     end
  313. end
  314.  
  315. function accessoriesButtonClicked() -- WIP
  316.     zeni.Value = 10000
  317.     if clothingGui then
  318.         for _, button in pairs(accessoriesGui:GetChildren()) do
  319.             if button:IsA("TextButton") then
  320.                 local args = {
  321.                     [1] = "BuyOutfit",
  322.                     [2] = button.Name,
  323.                 }
  324.                
  325.                 ReplicatedStorage.Remotes.NPCStuff:FireServer(unpack(args))
  326.             end
  327.         end
  328.     else
  329.         print("not ingame")
  330.     end
  331. end
  332.  
  333. -- Gui
  334. local window = library.CreateLib("Dragon Ball Final Remastered Gui // ImposterSussy111", theme)
  335.  
  336. -- Tabs
  337. local autoFarmTab = window:NewTab("Auto Farm")
  338. local miscTab = window:NewTab("Misc")
  339. local teleportsTab = window:NewTab("Teleports")
  340. local gravityChamberTab = window:NewTab("Gravity Chamber")
  341. local dragonBallsTab = window:NewTab("Dragon Balls")
  342. local spawnsTab = window:NewTab("Spawns")
  343. local customizationTab = window:NewTab("Customization")
  344. local playerTab = window:NewTab("Player")
  345.  
  346. -- Sections
  347. local autoFarmSection = autoFarmTab:NewSection("Main")
  348. local miscSection, miscSection2, miscSection3 = miscTab:NewSection("Gui Visible"), miscTab:NewSection("Ki & Stamina"), miscTab:NewSection("Clothes & Accessories")
  349. local teleportsSection = teleportsTab:NewSection("Main")
  350. local gravityChamberSection, gravityChamberSection2 = gravityChamberTab:NewSection("Main"), gravityChamberTab:NewSection("Misc")
  351. local dragonBallsSection = dragonBallsTab:NewSection("Main")
  352. local spawnsSection = spawnsTab:NewSection("Main")
  353. local customizationSection, customizationSection2 = customizationTab:NewSection("Customization"), customizationTab:NewSection("Theme")
  354. local playerSection, playerSection2 = playerTab:NewSection("Hair"), playerTab:NewSection("Cel Shading")
  355.  
  356. -- Keybinds
  357. local visibleKeybind = miscSection:NewKeybind("Visible", "", Enum.KeyCode.R, function ()
  358.     library:ToggleUI()
  359. end)
  360.  
  361. -- Dropdowns
  362. local mobsDropdown = autoFarmSection:NewDropdown("Mobs", "", getMobs(), function(mob)
  363.     _G.mobToFarm = mob
  364. end)
  365. local teleportsDropdown = teleportsSection:NewDropdown("Worlds", "", texts, function(gameName)
  366.     _G.gameId = gameIds[table.find(texts, gameName)]
  367. end)
  368. local dragonBallsDropdown = dragonBallsSection:NewDropdown("Dragon Balls", "", getDragonBalls(), function(dragonBall)
  369.     _G.dragonBallIndex = table.find(getDragonBalls(), dragonBall)
  370. end)
  371. local spawnsDropdown = spawnsSection:NewDropdown("Spawns", "", getSpawns(), function(spawnLocation)
  372.     _G.spawnIndex = table.find(getSpawns(), spawnLocation)
  373. end)
  374.  
  375. -- Set instantly
  376. local themesDropdown = customizationSection2:NewDropdown("Themes", "", getStyles(), function (selectedTheme)
  377.     for themeProperty, color in pairs(themeStyles[selectedTheme]) do
  378.         library:ChangeColor(themeProperty, color)
  379.     end    
  380. end)
  381. local hairMaterialDropdown = playerSection:NewDropdown("Material", "", getMaterials(), function (material)
  382.     characterChildren = character:GetChildren()
  383.     for _, hair in pairs(characterChildren) do
  384.         if hair.Name == "Hair" or hair.Name == "SSJ3" then
  385.             for _, v in pairs(hair:GetChildren()) do
  386.                 if v:IsA("BasePart") and v.Transparency == 0 then
  387.                     v.Material = material
  388.                 end
  389.             end
  390.         end
  391.     end
  392. end)
  393.  
  394. -- Color pickers
  395. for themeProperty, color in pairs(theme) do
  396.     customizationSection:NewColorPicker(themeProperty, "Change your "..themeProperty, color, function(colorPicked)
  397.         library:ChangeColor(themeProperty, colorPicked)
  398.     end)
  399. end
  400. local hairColorPicker = playerSection:NewColorPicker("Hair", "",  v, function(color)
  401.     characterChildren = character:GetChildren()
  402.     for _, part in pairs(characterChildren) do
  403.         if part.Name == "Hair" or part.Name == "SSJ3" then
  404.             for _, hair in pairs(part:GetChildren()) do
  405.                 if hair:IsA("BasePart") and hair.Transparency == 0 then
  406.                     hair.Color = color
  407.                 end
  408.             end
  409.         end
  410.     end
  411. end)
  412.  
  413. local celShadingColorPicker = playerSection2:NewColorPicker("Cel Shading", "",  v, function(color)
  414.     for _, celShade in pairs(celShading) do
  415.         celShade:GetChildren()[1].Color = color
  416.     end
  417. end)
  418.  
  419. -- Buttons
  420. local infiniteKiButton = miscSection2:NewButton("Infinite Ki", "", infiniteKiButtonClicked)
  421. local infiniteStaminaButton = miscSection2:NewButton("Infinite Stamina", "", infiniteStaminaButtonClicked)
  422.  
  423. local getClothesButton = miscSection3:NewButton("Get Clothes", "", clothesButtonClicked)
  424. local getAccessories = miscSection3:NewButton("Get Accessories", "", accessoriesButtonClicked)
  425.  
  426. local teleportButton = teleportsSection:NewButton("Teleport", "", teleportButtonClicked)
  427. local dragonBallTeleportButton = dragonBallsSection:NewButton("Teleport", "", dbTeleportButtonClicked)
  428. local spawnsTeleportButton = spawnsSection:NewButton("Teleport", "", spawnTeleportButtonClicked)
  429.  
  430. local rejoinButton = gravityChamberSection2:NewButton("Rejoin", "", rejoinButtonClicked)
  431.  
  432. -- Switches
  433. local autoFarmSwitch = autoFarmSection:NewToggle("Auto Farm", "", function(v)
  434.     _G.autoFarm = v
  435. end)
  436. local infiniteHealthSwitch = gravityChamberSection:NewToggle("Infinite Health", "", function (v)
  437.     _G.gcInfiniteHealth = v
  438. end)
  439. local autoPressSwitch = gravityChamberSection:NewToggle("Auto Press", "", function(v)
  440.     _G.gcAutoPress = v
  441. end)
  442.  
  443.  
  444. -- Call Functions
  445. for i = 1, hits do -- Auto Farm
  446.     spawn(function ()
  447.         while wait() do
  448.             if _G.autoFarm then
  449.                 farm()
  450.             end
  451.         end
  452.     end)
  453. end
  454.  
  455. spawn(function () -- Gravity Chamber Auto Press
  456.     while wait() do
  457.         if _G.gcAutoPress == true then
  458.             autoPress()
  459.         end
  460.     end
  461. end)
  462.  
  463. spawn(function () -- Gravity Chamber Infinite Health
  464.     while wait() do
  465.         if _G.gcInfiniteHealth == true then
  466.             infiniteHealth()
  467.         end
  468.     end
  469. end)
  470.  
  471. spawn(function () -- Refresh Dragon Balls
  472.     while true do
  473.         dragonBalls = game.PlaceId == gameIds[3] and workspace.DragonBallLocatioionsa:GetChildren() or {}
  474.         dragonBallsDropdown:Refresh(getDragonBalls())
  475.         wait(2)
  476.     end
  477. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement