0% found this document useful (0 votes)
6 views5 pages

Roblox GUI Script for Tabs and Buttons

The document is a Lua script for creating a graphical user interface (GUI) in Roblox, featuring a container with a title, tabs, buttons, toggles, and text boxes. It includes functions to add interactive elements like buttons, toggles, and text boxes with hover tips and callbacks. The GUI is designed to be user-friendly and visually appealing, with a focus on functionality and ease of use.

Uploaded by

myedek731
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views5 pages

Roblox GUI Script for Tabs and Buttons

The document is a Lua script for creating a graphical user interface (GUI) in Roblox, featuring a container with a title, tabs, buttons, toggles, and text boxes. It includes functions to add interactive elements like buttons, toggles, and text boxes with hover tips and callbacks. The GUI is designed to be user-friendly and visually appealing, with a focus on functionality and ease of use.

Uploaded by

myedek731
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

local GUI = Instance.

new("ScreenGui")
local Container = [Link]("Frame")
local title = [Link]("TextLabel")
local Contain = [Link]("Frame")
local TabFrame = [Link]("Frame")
local gl1 = [Link]("UIGridLayout")
local HolderTabs = [Link]("ScrollingFrame")
local grd8 = [Link]("UIGridLayout")
local Line = [Link]("Frame")
local HoverTip = [Link]("TextLabel")

[Link] = "GUI"
[Link] = [Link]:WaitForChild("PlayerGui")
[Link] = [Link]

[Link] = "Container"
[Link] = GUI
Container.BackgroundColor3 = [Link](0, 0, 0)
Container.BorderColor3 = [Link](0, 0, 0)
[Link] = 0
[Link] = [Link](0.288541675, 0, 0.443324059, 0)
[Link] = [Link](0, 401, 0, 22)

[Link] = "title"
[Link] = Container
title.BackgroundColor3 = [Link](255, 255, 255)
[Link] = 1.000
title.BorderColor3 = [Link](0, 0, 0)
[Link] = 0
[Link] = [Link](0, 0, 6.93581342e-07, 0)
[Link] = [Link](0, 401, 0, 21)
[Link] = [Link]
[Link] = "Made by RealN0xz (N0x) Version. 2.1"
title.TextColor3 = [Link](218, 218, 218)
[Link] = 25.000
[Link] = true
[Link] = [Link]

[Link] = "Contain"
[Link] = Container
Contain.BackgroundColor3 = [Link](0, 0, 0)
[Link] = 0.300
Contain.BorderColor3 = [Link](0, 0, 0)
[Link] = 0
[Link] = [Link](-0.000735161593, 0, 1.02702749, 0)
[Link] = [Link](0, 401, 0, 244)

[Link] = "TabFrame"
[Link] = Contain
TabFrame.BackgroundColor3 = [Link](0, 0, 0)
[Link] = 1.000
TabFrame.BorderColor3 = [Link](0, 0, 0)
[Link] = 0
[Link] = [Link](0.0174563583, 0, 0.0286885239, 0)
[Link] = [Link](0, 387, 0, 203)

[Link] = "gl1"
[Link] = TabFrame
[Link] = [Link]
[Link] = [Link](0, 5, 0, 6)
[Link] = [Link](0, 93, 0, 20)

[Link] = "HolderTabs"
[Link] = Contain
HolderTabs.BackgroundColor3 = [Link](0, 0, 0)
HolderTabs.BorderColor3 = [Link](0, 0, 0)
[Link] = 0
[Link] = [Link](0, 0, 0, 220)
[Link] = [Link](0, 401, 0, 24)
[Link] = [Link].X

[Link] = "grd8"
[Link] = HolderTabs
[Link] = [Link]
[Link] = [Link](0, 0, 0, 0)
[Link] = [Link](0, 80, 0, 23)

[Link] = "Line"
[Link] = Container
Line.BackgroundColor3 = [Link](253, 27, 7)
Line.BorderColor3 = [Link](0, 0, 0)
[Link] = 0
[Link] = [Link](-0.000735161593, 0, 0.981571555, 0)
[Link] = [Link](0, 401, 0, 1)

function AddButton(Tab, options)


local Button = [Link]("TextButton")
[Link] = Tab
Button.BackgroundColor3 = [Link](0, 0, 0)
Button.BorderColor3 = [Link](0, 0, 0)
[Link] = 0
[Link] = [Link](0, 93, 0, 20)
[Link] = [Link]
[Link] = [Link]
Button.TextColor3 = [Link](255, 255, 255)
[Link] = true
[Link] = 21.000
[Link] = true

[Link]:Connect(function()
[Link] = true
[Link] = [Link]
HoverTip:TweenPosition([Link](0.5, 0, 0.2, 0), "Out", "Sine", 0.2, true)
end)

[Link]:Connect(function()
[Link] = false
end)

Button.MouseButton1Click:Connect(function()
if [Link] then
[Link]()
end
end)
end

function AddToggle(Tab, options)


local Toggle = [Link]("TextButton")
[Link] = Tab
Toggle.BackgroundColor3 = [Link](0, 0, 0)
Toggle.BorderColor3 = [Link](0, 0, 0)
[Link] = 0
[Link] = [Link](0, 93, 0, 20)
[Link] = [Link]
[Link] = [Link]
Toggle.TextColor3 = [Link](255, 255, 255)
[Link] = true
[Link] = 21.000
[Link] = true

local check = [Link]("Frame")


[Link] = Toggle
check.BackgroundColor3 = [Link](177, 0, 0)
[Link] = [Link](0, 93, 0, 1)

[Link]:Connect(function()
[Link] = true
[Link] = [Link]
HoverTip:TweenPosition([Link](0.5, 0, 0.2, 0), "Out", "Sine", 0.2, true)
end)

[Link]:Connect(function()
[Link] = false
end)

Toggle.MouseButton1Click:Connect(function()
if check.BackgroundColor3 == [Link](177, 0, 0) then
check.BackgroundColor3 = [Link](0, 255, 0)
else
check.BackgroundColor3 = [Link](177, 0, 0)
end
if [Link] then
[Link](check.BackgroundColor3 == [Link](0, 255, 0))
end
end)
end

function AddTextbox(Tab, options)


local Box = [Link]("TextBox")
[Link] = Tab
Box.BackgroundColor3 = [Link](21, 21, 21)
[Link] = 0.200
Box.BorderColor3 = [Link](0, 0, 0)
[Link] = 0
[Link] = [Link](0, 93, 0, 20)
[Link] = [Link]
Box.PlaceholderColor3 = [Link](65, 65, 65)
[Link] = [Link]
[Link] = ""
Box.TextColor3 = [Link](107, 107, 107)
[Link] = true
[Link] = 14.000
[Link] = true

[Link]:Connect(function(enterPressed)
if enterPressed and [Link] then
[Link]([Link])
if [Link] then
[Link] = ""
end
end
end)

[Link]:Connect(function()
[Link] = true
[Link] = [Link]
HoverTip:TweenPosition([Link](0.5, 0, 0.2, 0), "Out", "Sine", 0.2, true)
end)

[Link]:Connect(function()
[Link] = false
end)
end

function AddTab(TabName)
local Tab = [Link]("TextButton")
[Link] = HolderTabs
Tab.BackgroundColor3 = [Link](0, 0, 0)
Tab.BorderColor3 = [Link](0, 0, 0)
[Link] = 0
[Link] = [Link](0, 80, 0, 23)
[Link] = [Link]
[Link] = TabName
Tab.TextColor3 = [Link](255, 255, 255)
[Link] = true
[Link] = 14.000
[Link] = true

Tab.MouseButton1Click:Connect(function()
end)
end

[Link]:Connect(function()
local startText = "Made by RealN0xz (N0x) Version. 2.1"
local typingText = "Made by RealN0xz (N0x) Version. 2.1"
[Link] = ""
for i = 1, #startText do
wait(0.05)
[Link] = [Link] .. [Link](startText, i, i)
end
end)

AddTab("Tab1")
AddButton(HolderTabs, {
Name = "Button!",
HoverText = "This is a button",
Callback = function()
print("Button pressed")
end
})

AddToggle(HolderTabs, {
Name = "This is a toggle!",
Default = false,
HoverText = "This is a toggle button",
Callback = function(Value)
print(Value)
end
})

AddTextbox(HolderTabs, {
Name = "Textbox",
Default = "default box input",
TextDisappear = true,
HoverText = "This is a text box",
Callback = function(Value)
print(Value)
end
})

You might also like