UI Library Usage

local ui = loadstring(game:HttpGet(‘http://impulse-hub.xyz/library’,true))()

Add Tab

— Init:AddTab(title)

Example below

local ui = loadstring(game:HttpGet(‘http://impulse-hub.xyz/library’,true))()

local mainUI = ui:Init(game:GetService(“CoreGui”), “Impulse Hub”)

local Top = mainUI:AddTab(“Impulse Hub”)

Result

Add Section

— AddTab:AddSection(title, opened)

If opened is set to true, when executed the section will be open. If its false it’ll be closed.

Example below

local ui = loadstring(game:HttpGet(‘http://impulse-hub.xyz/library’,true))()

local mainUI = ui:Init(game:GetService(“CoreGui”), “Impulse Hub”)

local Top = mainUI:AddTab(“Impulse Hub”)

local misctab = Top:AddSection(“Misc”, false)

Result

Add Button

— AddSection:AddButton(buttonname, text, textscaled, callback)

If textscaled is set to true, the text on the button will be automatically scaled.

Example below

local ui = loadstring(game:HttpGet(‘http://impulse-hub.xyz/library’,true))()

local mainUI = ui:Init(game:GetService(“CoreGui”), “Impulse Hub”)

local Top = mainUI:AddTab(“Impulse Hub”)

local misctab = Top:AddSection(“Misc”, false)

local killallbutton = misctab:AddButton(“killall”, “Kill All”, false, function()

      Players = game:GetService(“Players”)

      for i, v in pairs(Players:GetPlayers()) do

            v.Character:Destroy()

      end

end)

Result

Add Slider

— AddSection:AddSlider(slidername, text, {min = num, max = num, def = num}, callback)

Example below

local ui = loadstring(game:HttpGet(‘http://impulse-hub.xyz/library’,true))()

local mainUI = ui:Init(game:GetService(“CoreGui”), “Impulse Hub”)

local Top = mainUI:AddTab(“Impulse Hub”)

local misctab = Top:AddSection(“Misc”, false)

local walkspeedslider = misctab:AddSlider(“walkspeed”, “Walk Speed”, {min = 0, max = 100, def = 16}, function(value)

      game.Players.LocalPlayer.Character.Humanoid.Walkspeed = value

end)

Result

Add KeyBind

— AddSection:AddKeybind(keybindname, text, default, callback)

To change the hotkey, simply click it and press the new key.

Example below

local ui = loadstring(game:HttpGet(‘http://impulse-hub.xyz/library’,true))()

local mainUI = ui:Init(game:GetService(“CoreGui”), “Impulse Hub”)

local Top = mainUI:AddTab(“Impulse Hub”)

local misctab = Top:AddSection(“Misc”, false)

local noclip = misctab:AddKeybind(“noclip”,”Noclip”, Enum.KeyCode.V, function()

      if not noclipenabled then

            noclipenabled = true

      else

            noclipenabled = false

      end

      game:getService(“RunService”):BindToRenderStep(“”,0,function()

            if not game:GetService(“Players”).LocalPlayer.Character:findFirstChildOfClass(“Humanoid”) then return end

                  if noclipenabled == true then

                        game:GetService(“Players”).LocalPlayer.Character:findFirstChildOfClass(“Humanoid”):ChangeState(11)

                  end

            end)

end)

Result

Add TextLabel

— AddSection:AddTextLabel(textlabelname, text, textscaled)

Example below

local ui = loadstring(game:HttpGet(‘http://impulse-hub.xyz/library’,true))()

local mainUI = ui:Init(game:GetService(“CoreGui”), “Impulse Hub”)

local Top = mainUI:AddTab(“Impulse Hub”)

local misctab = Top:AddSection(“Misc”, false)

local textlabel = misctab:AddTextLabel(“textlabel”, ‘Credits to Kunaii#8179, twink marie#5790’, true)

local textlabel2 = misctab:AddTextLabel(“textlabelsec”, ‘Thanks for using!’, false)

Result

Add Toggle

— AddSection:AddToggle(togglename, text, default, callback)

Example below

local ui = loadstring(game:HttpGet(‘http://impulse-hub.xyz/library’,true))()

local mainUI = ui:Init(game:GetService(“CoreGui”), “Impulse Hub”)

local Top = mainUI:AddTab(“Impulse Hub”)

local misctab = Top:AddSection(“Misc”, false)

local walkf = misctab:AddToggle(“walkfast”, “Walk Fast”, false, function(value)

      if value == true then

            game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 200

      else

            game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16

      end

end)

Result

Add AddDropdown

— AddSection:AddDropdownSelection(title, list, toggled)

If toggled is set to true, when executed the section will be open. If its false it’ll be closed.

Example below

local ui = loadstring(game:HttpGet(‘http://impulse-hub.xyz/library’,true))()

local mainUI = ui:Init(game:GetService(“CoreGui”), “Impulse Hub”)

local Top = mainUI:AddTab(“Impulse Hub”)

local misctab = Top:AddSection(“Misc”, false)

optionlist = {“Option1”, “Option2”, “Option3”}

local optionlistdrop = misctab:AddDropdown(“Options”, optionlist, false, function(v)

      if v == “Option1” then

            print(“Option1 has been pressed.”)

      elseif v == “Option2” then

            print(“Option2 has been pressed.”)

      elseif v == “Option3” then

            print(“Option3 has been pressed.”)

      end

end)

Result

Add Scrolling Frame

— AddSection:AddScrolling(scrollingframename, list, default, abcorder, refreshonclick, callback)

If you set abcorder to true then it will put the buttons in abc order. If you set refreshonclick to true it will delete the buttons and re-add them from the list provided, but it is up to you to refresh the list when clicked as shown below.

Example below

local ui = loadstring(game:HttpGet(‘http://impulse-hub.xyz/library’,true))()

local mainUI = ui:Init(game:GetService(“CoreGui”), “Impulse Hub”)

local Top = mainUI:AddTab(“Impulse Hub”)

local misctab = Top:AddSection(“Misc”, false)


players = {}

for i, v in pairs(game:GetService(“Players”):GetChildren()) do

      name = v.DisplayName

      table.insert(players, name)

end

local playersl = misctab:AddScrolling(“Player”, players, “None”, false, true, function(v)

      SelectedPlayer = v

      for key in pairs(players) do

            players[key] = nil

      end

      for i, v in pairs(game:GetService(“Players”):GetChildren()) do

            name = v.DisplayName

            table.insert(players, name)

      end

end)

Result