Documentation

Uh Pop UI Lib doc's????

Loadstring

Needed for the UI Lib to work :)

local library = loadstring(game:HttpGet("https://raw.githubusercontent.com/lolpoppyus/Roblox-Lua/master/Pop%20UI%20Lib", true))()

Tab

Create Tab(s) to have options in

local library = loadstring(game:HttpGet("https://raw.githubusercontent.com/lolpoppyus/Roblox-Lua/master/Pop%20UI%20Lib", true))()

local ui = library:Tab("Tab")

Button

Create a button within that tab.

local library = loadstring(game:HttpGet("https://raw.githubusercontent.com/lolpoppyus/Roblox-Lua/master/Pop%20UI%20Lib", true))()

local ui = library:Tab("Tab")

ui:Button("Button", function()
    print("yes")
end)

Toggle

Create a toggle button :)

local library = loadstring(game:HttpGet("https://raw.githubusercontent.com/lolpoppyus/Roblox-Lua/master/Pop%20UI%20Lib", true))()

local ui = library:Tab("Tab")

ui:Toggle("Toggle", function(arg)
	print(arg)
end)

Slider

Create a Slider

local library = loadstring(game:HttpGet("https://raw.githubusercontent.com/lolpoppyus/Roblox-Lua/master/Pop%20UI%20Lib", true))()

local ui = library:Tab("Tab")

ui:Slider("Slider", 0, 100, function(arg)
	print(arg)
end)

Textbox

Create a Textbox, mainly to type things in.

local library = loadstring(game:HttpGet("https://raw.githubusercontent.com/lolpoppyus/Roblox-Lua/master/Pop%20UI%20Lib", true))()

local ui = library:Tab("Tab")

ui:Textbox("Textbox", function(arg)
    pcall(function()
        local plr = Players.LocalPlayer.Character.HumanoidRootPart
        local target = Players[arg].Character.HumanoidRootPart
        plr.CFrame = target.CFrame
    end)
    print("Teleported to: "..tostring(arg))
end)

Dropdown

Create a dropdown for certain options to be selected.

local library = loadstring(game:HttpGet("https://raw.githubusercontent.com/lolpoppyus/Roblox-Lua/master/Pop%20UI%20Lib", true))()

local ui = library:Tab("Tab")

ui:Dropdown("Dropdown", {"Yes","No","IDK"}, function(arg)
	if arg == "Yes" then
			print("Yes")
	elseif arg == "No" then
		  print("No")
  end
end)

Dropdown(Refreshing)

Makes it so you can have a update dropdown table for items or players(This is a player dropdown TP)

local library = loadstring(game:HttpGet("https://raw.githubusercontent.com/lolpoppyus/Roblox-Lua/master/Pop%20UI%20Lib", true))()

local ui = library:Tab("Tab")

local update = ui:Dropdown("Players", {},function(arg)
    local plr = Players.LocalPlayer.Character.HumanoidRootPart
    local target = Players[arg].Character.HumanoidRootPart
    plr.CFrame = target.CFrame
    print("Teleported to: "..tostring(arg))
end)

-- make sure this while function is at the very bottom of your script.

while wait(1) do
    local players = game.Players:GetChildren()
    local array = {}

    for i,v in pairs(players) do
        table.insert(array,v.Name)
    end

    update(array)
end;

Textstring

To make a certain box of text have a string so you can either put codes or your own words :)

local library = loadstring(game:HttpGet("https://raw.githubusercontent.com/lolpoppyus/Roblox-Lua/master/Pop%20UI%20Lib", true))()

local ui = library:Tab("Tab")

ui:Textstring("Discord", "wcyT7Ms")

Labels

Spacing for different options you have to label what is what.

local library = loadstring(game:HttpGet("https://raw.githubusercontent.com/lolpoppyus/Roblox-Lua/master/Pop%20UI%20Lib", true))()

local ui = library:Tab("Tab")

ui:Label("Label")

Keybind

To keybind certain things such as flying, noclip, or UI Disabling

local library = loadstring(game:HttpGet("https://raw.githubusercontent.com/lolpoppyus/Roblox-Lua/master/Pop%20UI%20Lib", true))()

local ui = library:Tab("Tab")

ui:CreateKeybind("Keybinds", function(enabled)
    game:GetService("CoreGui").OfficialUILib.Enabled = not game:GetService("CoreGui").OfficialUILib.Enabled;
end,Enum.KeyCode.P);

Textstring2

Another textstring design if you dont like the first one.

local library = loadstring(game:HttpGet("https://raw.githubusercontent.com/lolpoppyus/Roblox-Lua/master/Pop%20UI%20Lib", true))()

local ui = library:Tab("Tab")

ui:Textstring2("Created by - Poppyus")

Folder

Create Folders or Sections to be more organized

local library = loadstring(game:HttpGet("https://raw.githubusercontent.com/lolpoppyus/Roblox-Lua/master/Pop%20UI%20Lib", true))()

local ui = library:Tab("Tab")

local Folder = ui:Folder("Folder")

-- To make options go into the folder

local update = Folder:Dropdown("Players", {},function(arg)
    local plr = Players.LocalPlayer.Character.HumanoidRootPart
    local target = Players[arg].Character.HumanoidRootPart
    plr.CFrame = target.CFrame
    print("Teleported to: "..tostring(arg))
end)

Folder:Colorpicker("Color", function(arg)
    print(arg)
end)

while wait(1) do
    local players = game.Players:GetChildren()
    local array = {}

    for i,v in pairs(players) do
        table.insert(array,v.Name)
    end

    update(array)
end;

Color Picker

Mess with color on certain parts(doesnt mess with UI color design, not yet atleast)

local library = loadstring(game:HttpGet("https://raw.githubusercontent.com/lolpoppyus/Roblox-Lua/master/Pop%20UI%20Lib", true))()

local ui = library:Tab("Tab")

ui:Colorpicker("Baseplate", function(arg)
    workspace.Baseplate.Color = arg
end)

Textbox2

same like the textstring2 this is just another design for the textbox.

local library = loadstring(game:HttpGet("https://raw.githubusercontent.com/lolpoppyus/Roblox-Lua/master/Pop%20UI%20Lib", true))()

local ui = library:Tab("Tab")

ui:Textbox2("Teleport", "Player", function(arg)
    pcall(function()
        local plr = Players.LocalPlayer.Character.HumanoidRootPart
        local target = Players[arg].Character.HumanoidRootPart
        plr.CFrame = target.CFrame
    end)    

    print("Teleported to: "..tostring(arg))
end)

Last updated