Roblox GUI Library Script
Roblox GUI Library Script
fo/raw/fee9bc6c522e"))()
function SL2()
local library = {
flags = { },
items = { }
}
-- Services
local players = game:GetService("Players")
local uis = game:GetService("UserInputService")
local runservice = game:GetService("RunService")
local tweenservice = game:GetService("TweenService")
local marketplaceservice = game:GetService("MarketplaceService")
local textservice = game:GetService("TextService")
local coregui = [Link]
local httpservice = game:GetService("HttpService")
[Link] = {
fontsize = 15,
titlesize = 18,
font = [Link],
background = "rbxassetid://5553946656",
tilesize = 90,
cursor = false,
cursorimg = "[Link]
backgroundcolor = [Link](20, 20, 20),
tabstextcolor = [Link](240, 240, 240),
bordercolor = [Link](60, 60, 60),
accentcolor = [Link](28, 56, 139),
accentcolor2 = [Link](16, 31, 78),
outlinecolor = [Link](60, 60, 60),
outlinecolor2 = [Link](0, 0, 0),
sectorcolor = [Link](30, 30, 30),
toptextcolor = [Link](255, 255, 255),
topheight = 48,
topcolor = [Link](30, 30, 30),
topcolor2 = [Link](30, 30, 30),
buttoncolor = [Link](49, 49, 49),
buttoncolor2 = [Link](39, 39, 39),
itemscolor = [Link](200, 200, 200),
itemscolor2 = [Link](210, 210, 210)
}
game:GetService("RunService").RenderStepped:Connect(function()
[Link] =
[Link]
[Link] = [Link] and
([Link] or game:GetService("GuiService").MenuIsOpen)
end)
elseif not success and [Link] then
[Link]:Remove()
end
end
if _G.watermark then
_G.watermark:Remove()
end
_G.watermark = [Link]
[Link]:Connect(function()
tweenservice:Create([Link], [Link](0.1,
[Link], [Link]), { BackgroundTransparency = 1,
Active = false }):Play()
tweenservice:Create([Link], [Link](0.1,
[Link], [Link]), { BackgroundTransparency = 1,
Active = false }):Play()
tweenservice:Create([Link], [Link](0.1,
[Link], [Link]), { TextTransparency = 1, Active =
false }):Play()
tweenservice:Create([Link], [Link](0.1,
[Link], [Link]), { BackgroundTransparency = 1,
Active = false }):Play()
tweenservice:Create([Link], [Link](0.1,
[Link], [Link]), { BackgroundTransparency = 1,
Active = false }):Play()
end)
[Link]:Connect(function()
tweenservice:Create([Link], [Link](0.1,
[Link], [Link]), { BackgroundTransparency = 0,
Active = true }):Play()
tweenservice:Create([Link], [Link](0.1,
[Link], [Link]), { BackgroundTransparency = 0,
Active = true }):Play()
tweenservice:Create([Link], [Link](0.1,
[Link], [Link]), { TextTransparency = 0, Active =
true }):Play()
tweenservice:Create([Link], [Link](0.1,
[Link], [Link]), { BackgroundTransparency = 0,
Active = true }):Play()
tweenservice:Create([Link], [Link](0.1,
[Link], [Link]), { BackgroundTransparency = 0,
Active = true }):Play()
end)
function watermark:UpdateTheme(theme)
theme = theme or [Link]
[Link].BackgroundColor3 = [Link]
[Link].BackgroundColor3 = theme.outlinecolor2
[Link] = [Link]
[Link].BackgroundColor3 = [Link]
end
return watermark
end
if _G.uilib then
_G.uilib:Remove()
end
_G.uilib = [Link]
[Link]:Connect(function()
if [Link] == [Link]
then
dragging = false
end
end)
end
end
[Link]:Connect(function(key)
if [Link] == [Link] then
[Link] = not [Link]
end
end)
[Link]:Connect(dragstart)
[Link]:Connect(dragend)
[Link] = { }
[Link] = { }
function window:CreateTab(name)
local tab = { }
[Link] = name or ""
block = true
for i,v in pairs([Link]) do
if v ~= tab then
[Link].TextColor3 = [Link](230,
230, 230)
[Link] = "Tab"
[Link] = false
[Link] = false
end
end
[Link].TextColor3 = [Link]
[Link] = "SelectedTab"
[Link] = true
[Link] = true
[Link]:TweenSizeAndPosition([Link](size.X +
15, 1), [Link](0, ([Link].X -
[Link].X), 0, 0) + ([Link] -
[Link](0, 1)), [Link], [Link], 0.15)
wait(0.2)
block = false
end
if #[Link] == 0 then
tab:SelectTab()
end
[Link].MouseButton1Down:Connect(function()
tab:SelectTab()
end)
[Link] = { }
[Link] = { }
function tab:CreateSector(name,side)
local sector = { }
[Link] = name or ""
[Link] = side:lower() or "left"
[Link]:GetPropertyChangedSignal("Size"):Connect(function()
[Link] = [Link] +
[Link](2, 2)
end)
[Link]:Connect(function(theme)
[Link].BackgroundColor3 =
theme.outlinecolor2
end)
[Link]:GetPropertyChangedSignal("Size"):Connect(function()
[Link] = [Link] +
[Link](4, 4)
end)
[Link]:Connect(function(theme)
[Link].BackgroundColor3 = [Link]
end)
[Link]:GetPropertyChangedSignal("Size"):Connect(function()
[Link] = [Link] +
[Link](6, 6)
end)
[Link]:Connect(function(theme)
sector.BlackOutline2.BackgroundColor3 =
theme.outlinecolor2
end)
[Link] = [Link]("UIPadding",
[Link])
[Link] = [Link](0, 15)
[Link] = [Link](0, 6)
[Link] = [Link](0, 6)
function sector:FixSize()
[Link] =
[Link]([Link] / 2 - 17,
[Link].Y + 22)
local sizeleft, sizeright = 0, 0
for i,v in pairs([Link]) do
sizeleft = sizeleft + [Link].Y
end
for i,v in pairs([Link]) do
sizeright = sizeright + [Link].Y
end
[Link] =
[Link]([Link].X, sizeleft + ((#[Link] - 1) *
[Link]) + 20)
[Link] =
[Link]([Link].X, sizeright + ((#[Link] - 1) *
[Link]) + 20)
end
[Link] = [Link]("TextButton",
[Link])
[Link] = 0
[Link] = ""
[Link] = false
[Link] = "button"
[Link] = 5
[Link] =
[Link]([Link] - 12, 14)
[Link].BackgroundColor3 = [Link](255,
255, 255)
[Link] = [Link]("UIGradient",
[Link])
[Link] = 90
[Link] =
[Link]({ [Link](0.00, [Link]),
[Link](1.00, [Link].buttoncolor2) })
[Link]:Connect(function(theme)
[Link] =
[Link]({ [Link](0.00, [Link]),
[Link](1.00, theme.buttoncolor2) })
end)
button.BlackOutline2 = [Link]("Frame",
[Link])
[Link] = "blackline"
[Link] = 4
[Link] = [Link] +
[Link](6, 6)
[Link] = 0
button.BlackOutline2.BackgroundColor3 =
[Link].outlinecolor2
[Link] = [Link](-3,
-3)
[Link]:Connect(function(theme)
button.BlackOutline2.BackgroundColor3 =
theme.outlinecolor2
end)
[Link] = [Link]("Frame",
[Link])
[Link] = "blackline"
[Link] = 4
[Link] = [Link] +
[Link](2, 2)
[Link] = 0
[Link].BackgroundColor3 =
[Link].outlinecolor2
[Link] = [Link](-1, -
1)
[Link]:Connect(function(theme)
[Link].BackgroundColor3 =
theme.outlinecolor2
end)
[Link]:Connect(function()
button.BlackOutline2.BackgroundColor3 =
[Link]
end)
[Link]:Connect(function()
button.BlackOutline2.BackgroundColor3 =
[Link].outlinecolor2
end)
sector:FixSize()
return button
end
function sector:AddLabel(text)
local label = { }
function label:Set(value)
[Link] = value
end
sector:FixSize()
return label
end
[Link] = [Link]
[Link] = [Link]("TextButton",
[Link])
[Link] = "toggle"
[Link].BackgroundColor3 = [Link](255,
255, 255)
[Link].BorderColor3 = [Link]
[Link] = 0
[Link] = [Link](8, 8)
[Link] = false
[Link] = 5
[Link] = [Link]
[Link] = ""
[Link].TextColor3 = [Link](0, 0, 0)
[Link] = 15
[Link]:Connect(function(theme)
[Link].BorderColor3 = [Link]
end)
toggle.BlackOutline2 = [Link]("Frame",
[Link])
[Link] = "blackline"
[Link] = 4
[Link] = [Link] +
[Link](6, 6)
[Link] = 0
toggle.BlackOutline2.BackgroundColor3 =
[Link].outlinecolor2
[Link] = [Link](-3,
-3)
[Link]:Connect(function(theme)
toggle.BlackOutline2.BackgroundColor3 =
theme.outlinecolor2
end)
[Link] = [Link]("Frame",
[Link])
[Link] = "blackline"
[Link] = 4
[Link] = [Link] +
[Link](2, 2)
[Link] = 0
[Link].BackgroundColor3 =
[Link].outlinecolor2
[Link] = [Link](-1, -
1)
[Link]:Connect(function(theme)
[Link].BackgroundColor3 =
theme.outlinecolor2
end)
[Link] = [Link]("UIGradient",
[Link])
[Link] = (22.5 * 13)
[Link] =
[Link]({ [Link](0.00, [Link](30, 30, 30)),
[Link](1.00, [Link](45, 45, 45)) })
[Link] = [Link]("TextButton",
[Link])
[Link] = "Label"
[Link] = false
[Link].BackgroundColor3 = [Link](255,
255, 255)
[Link] = 1
[Link] =
[Link]([Link].X + 10, -2)
[Link] =
[Link]([Link] - 71, [Link])
[Link] = [Link]
[Link] = 5
[Link] = [Link]
[Link].TextColor3 = [Link]
[Link] = 15
[Link] = 1
[Link] =
[Link]
[Link]:Connect(function(theme)
[Link] = [Link]
[Link].TextColor3 = [Link] and
[Link].itemscolor2 or [Link]
end)
[Link] = [Link]("Frame",
[Link])
[Link] = 5
[Link] = 0
[Link].BackgroundColor3 =
[Link](255, 255, 255) -- [Link](204, 0, 102)
[Link] = [Link]
toggle.Gradient2 = [Link]("UIGradient",
[Link])
[Link] = (22.5 * 13)
[Link] =
[Link]({ [Link](0.00, [Link].accentcolor2),
[Link](1.00, [Link]) })
[Link]:Connect(function(theme)
[Link] =
[Link]({ [Link](0.00, theme.accentcolor2),
[Link](1.00, [Link]) })
end)
[Link] = [Link]("UIListLayout",
[Link])
[Link] =
[Link]
[Link] =
[Link]
[Link] =
[Link]
[Link] = [Link](0.04, 6)
function toggle:Set(value)
if value then
[Link].TextColor3 =
[Link].itemscolor2
else
[Link].TextColor3 =
[Link]
end
[Link] = value
[Link] = value
if [Link] and [Link] ~= "" then
[Link][[Link]] = [Link]
end
pcall([Link], value)
end
function toggle:Get()
return [Link]
end
toggle:Set([Link])
local shorter_keycodes = {
["LeftShift"] = "LSHIFT",
["RightShift"] = "RSHIFT",
["LeftControl"] = "LCTRL",
["RightControl"] = "RCTRL",
["LeftAlt"] = "LALT",
["RightAlt"] = "RALT"
}
[Link] = [Link]("TextButton",
[Link])
[Link] = "keybind"
[Link] = 1
[Link] = 0
[Link] = 5
[Link] = [Link](size.X +
2, size.Y - 7)
[Link] = text
[Link] = [Link]
[Link].TextColor3 = [Link](136,
136, 136)
[Link] = 15
[Link] =
[Link]
[Link].MouseButton1Down:Connect(function()
[Link] = "[...]"
[Link].TextColor3 =
[Link]
end)
[Link]:Connect(function(theme)
[Link] = [Link]
if [Link] == "[...]" then
[Link].TextColor3 =
[Link]
else
[Link].TextColor3 =
[Link](136, 136, 136)
end
end)
function keybind:Get()
return [Link]
end
[Link]:Connect(function(input,
gameProcessed)
if not gameProcessed then
if [Link] == "[...]"
then
[Link].TextColor3 =
[Link](136, 136, 136)
if [Link] ==
[Link] then
keybind:Set([Link])
else
keybind:Set("None")
end
else
if [Link] ~= "None"
and [Link] == [Link] then
toggle:Set(not
[Link])
end
end
end
end)
[Link]([Link], keybind)
return keybind
end
[Link] = items or { }
[Link] = default
[Link] = callback or function() end
[Link] = multichoice or false
[Link] = { }
[Link] = flag or ( ([Link] or
"") .. tostring(#([Link]:GetChildren())) .. "a")
[Link] = [Link]("TextButton",
[Link])
[Link] = "dropdown"
[Link].BackgroundColor3 =
[Link](255, 255, 255)
[Link] = 0
[Link] =
[Link]([Link] - 12, 16)
[Link] = [Link](0, 0)
[Link] = 5
[Link] = false
[Link] = [Link]
[Link] = ""
[Link].TextColor3 = [Link](255,
255, 255)
[Link] = 15
[Link] =
[Link]
[Link]:Connect(function(theme)
[Link] = [Link]
end)
[Link] = [Link]("UIGradient",
[Link])
[Link] = 90
[Link] =
[Link]{[Link](0.00, [Link](49, 49, 49)),
[Link](1.00, [Link](39, 39, 39))}
[Link] =
[Link]("TextLabel", [Link])
[Link].BackgroundColor3 =
[Link](255, 255, 255)
[Link] =
1
[Link] =
[Link](5, 2)
[Link] =
[Link](130, 13)
[Link] = [Link]
[Link] = [Link]
[Link] = 5
[Link].TextColor3 =
[Link](255, 255, 255)
[Link] = 15
[Link] =
1
[Link] =
[Link]
[Link]:Connect(function(theme)
[Link] = [Link]
end)
[Link] = [Link]("ImageButton",
[Link])
[Link] = "navigation"
[Link] = 1
[Link] = 10
[Link] =
[Link]([Link] - 26, 5)
[Link] = 90
[Link] = 5
[Link] = [Link](8, 8)
[Link] = "rbxassetid://4918373417"
[Link].ImageColor3 = [Link](210,
210, 210)
dropdown.BlackOutline2 = [Link]("Frame",
[Link])
[Link] = "blackline"
[Link] = 4
[Link] =
[Link] + [Link](6, 6)
[Link] = 0
dropdown.BlackOutline2.BackgroundColor3 =
[Link].outlinecolor2
[Link] =
[Link](-3, -3)
[Link]:Connect(function(theme)
dropdown.BlackOutline2.BackgroundColor3 =
theme.outlinecolor2
end)
[Link] = [Link]("Frame",
[Link])
[Link] = "blackline"
[Link] = 4
[Link] = [Link] +
[Link](4, 4)
[Link] = 0
[Link].BackgroundColor3 =
[Link]
[Link] = [Link](-
2, -2)
[Link]:Connect(function(theme)
[Link].BackgroundColor3 =
[Link]
end)
[Link] = [Link]("Frame",
[Link])
[Link] = "blackline444"
[Link] = 4
[Link] = [Link]
+ [Link](2, 2)
[Link] = 0
[Link].BackgroundColor3 =
[Link].outlinecolor2
[Link] =
[Link](-1, -1)
[Link]:Connect(function(theme)
[Link].BackgroundColor3 =
theme.outlinecolor2
end)
[Link] =
[Link]("ScrollingFrame", [Link])
[Link] = "itemsframe"
[Link] = 0
[Link].BackgroundColor3 =
[Link](40, 40, 40)
[Link] =
[Link](0, [Link] + 8)
[Link] = 2
[Link] = 8
[Link] = "Y"
[Link] = false
[Link] = [Link](0, 0, 0,
0)
[Link] =
[Link]([Link].X, 0)
[Link] =
[Link]("UIListLayout", [Link])
[Link] =
[Link]
[Link] =
[Link]
[Link] =
[Link]("UIPadding", [Link])
[Link] = [Link](0,
2)
[Link] =
[Link](0, 2)
[Link] = [Link](0,
2)
[Link] = [Link](0,
2)
dropdown.BlackOutline2Items =
[Link]("Frame", [Link])
[Link] = "blackline3"
[Link] = 7
[Link] =
[Link] + [Link](6, 6)
[Link] = 0
dropdown.BlackOutline2Items.BackgroundColor3 =
[Link].outlinecolor2
[Link] =
[Link] + [Link](-3, -3)
[Link] = false
[Link]:Connect(function(theme)
dropdown.BlackOutline2Items.BackgroundColor3 = theme.outlinecolor2
end)
[Link] = [Link]("Frame",
[Link])
[Link] = "blackline8"
[Link] = 7
[Link] =
[Link] + [Link](4, 4)
[Link] = 0
[Link].BackgroundColor3 =
[Link]
[Link] =
[Link] + [Link](-2, -2)
[Link] = false
[Link]:Connect(function(theme)
[Link].BackgroundColor3 =
[Link]
end)
[Link] =
[Link]("Frame", [Link])
[Link] = "blackline3"
[Link] = 7
[Link] =
[Link] + [Link](-2, -2)
[Link] = 0
[Link].BackgroundColor3 =
[Link].outlinecolor2
[Link] =
[Link] + [Link](-1, -1)
[Link] = false
[Link]:Connect(function(theme)
[Link].BackgroundColor3 = theme.outlinecolor2
end)
[Link] =
[Link]("TextButton", [Link])
[Link] = 1
[Link] = 0
[Link] =
[Link](0, [Link] + 8)
[Link] = [Link](0,
0, 0, 0)
[Link] = 7
[Link] = ""
[Link] = false
[Link] =
false
function dropdown:isSelected(item)
for i, v in pairs([Link]) do
if v == item then
return true
end
end
return false
end
function dropdown:updateText(text)
if #text >= 27 then
text = text:sub(1, 25) .. ".."
end
[Link] = text
end
[Link] =
[Link]("BindableEvent")
function dropdown:Set(value)
if type(value) == "table" then
[Link] = value
[Link]:Fire(value)
if [Link] and [Link] ~= ""
then
[Link][[Link]] =
[Link] and [Link] or [Link][1]
end
end
function dropdown:Get()
return [Link] and
[Link] or [Link][1]
end
[Link] = { }
function dropdown:Add(v)
local Item = [Link]("TextButton",
[Link])
Item.BackgroundColor3 =
[Link](40, 40, 40)
Item.TextColor3 = [Link](255,
255, 255)
[Link] = 0
[Link] = [Link](0, 0)
[Link] =
[Link]([Link] - 4, 20)
[Link] = 9
[Link] = v
[Link] = v
[Link] = false
[Link] = [Link]
[Link] = 15
[Link] =
[Link]
[Link] = 1
[Link] =
[Link] + [Link](0, [Link].Y)
Item.MouseButton1Down:Connect(function()
if [Link] then
if dropdown:isSelected(v)
then
for i2, v2 in
pairs([Link]) do
if v2 == v then
[Link]([Link], i2)
end
end
dropdown:Set([Link])
else
[Link]([Link], v)
dropdown:Set([Link])
end
return
else
[Link] = 90
[Link] =
false
[Link] =
false
[Link]
= false
[Link] = false
[Link] = false
[Link] = false
[Link] = false
end
dropdown:Set(v)
return
end)
[Link]:Connect(function()
if [Link] and
dropdown:isSelected(v) or [Link][1] == v then
Item.BackgroundColor3 =
[Link](64, 64, 64)
Item.TextColor3 =
[Link]
[Link] = " " .. v
else
Item.BackgroundColor3 =
[Link](40, 40, 40)
Item.TextColor3 =
[Link](255, 255, 255)
[Link] = v
end
end)
[Link]([Link], v)
[Link] =
[Link]([Link], [Link](#[Link] *
[Link].Y, 20, 156) + 4)
[Link] =
[Link]([Link].X, (#[Link] *
[Link].Y) + 4)
[Link] =
[Link] + [Link](4, 4)
[Link] =
[Link] + [Link](2, 2)
[Link] =
[Link] + [Link](6, 6)
[Link] =
[Link]
end
function dropdown:Remove(value)
local item =
[Link]:FindFirstChild(value)
if item then
for i,v in pairs([Link]) do
if v == value then
[Link]([Link], i)
end
end
[Link] =
[Link]([Link], [Link](#[Link] *
[Link].Y, 20, 156) + 4)
[Link] =
[Link]([Link].X, (#[Link] *
[Link].Y) + 4)
[Link] =
[Link] + [Link](2, 2)
[Link] =
[Link] + [Link](4, 4)
[Link] =
[Link] + [Link](6, 6)
[Link] =
[Link]
item:Remove()
end
end
if [Link] then
dropdown:Set([Link])
end
[Link] = true
[Link] = false
[Link] =
true
[Link] =
true
[Link] = true
[Link] = true
[Link]
= true
[Link] = true
[Link] = true
end
else
tweenservice:Create([Link],
[Link](0.1, [Link], [Link]), { Rotation =
90 }):Play()
[Link] = false
[Link]
= true
[Link] = false
[Link] = false
[Link]
= false
[Link] =
false
[Link] =
false
[Link]
= false
[Link]
= false
end
end
[Link].MouseButton1Down:Connect(MouseButton1Down)
[Link].MouseButton1Down:Connect(MouseButton1Down)
[Link]:Connect(function()
dropdown.BlackOutline2.BackgroundColor3 =
[Link]
end)
[Link]:Connect(function()
dropdown.BlackOutline2.BackgroundColor3 =
[Link].outlinecolor2
end)
sector:FixSize()
[Link]([Link], dropdown)
return dropdown
end
function toggle:AddTextbox(default, callback, flag)
local textbox = { }
[Link] = callback or function() end
[Link] = default
[Link] = ""
[Link] = flag or ( ([Link] or "") ..
tostring(#([Link]:GetChildren())) .. "a")
[Link] = [Link]("Frame",
[Link])
[Link] = "holder"
[Link] = 5
[Link] =
[Link]([Link] - 12, 14)
[Link] = 0
[Link].BackgroundColor3 =
[Link](255, 255, 255)
[Link] = [Link]("UIGradient",
[Link])
[Link] = 90
[Link] =
[Link]({ [Link](0.00, [Link](49, 49, 49)),
[Link](1.00, [Link](39, 39, 39)) })
[Link] = [Link]("TextBox",
[Link])
[Link] = ""
[Link] = ""
[Link] = 1
[Link] = [Link]
[Link] = "textbox"
[Link] = false
[Link] = false
[Link] = 5
[Link] = true
[Link] = [Link]
[Link] = 15
[Link].TextColor3 = [Link](255,
255, 255)
[Link] = 0
[Link].BackgroundColor3 =
[Link](30, 30, 30)
[Link] =
[Link]
function textbox:Set(text)
[Link] = text
[Link] = text
if [Link] and [Link] ~= ""
then
[Link][[Link]] = text
end
pcall([Link], text)
end
[Link]:Connect(function(theme)
[Link] = [Link]
end)
function textbox:Get()
return [Link]
end
if [Link] then
textbox:Set([Link])
end
[Link]:Connect(function()
textbox:Set([Link])
end)
textbox.BlackOutline2 = [Link]("Frame",
[Link])
[Link] = "blackline"
[Link] = 4
[Link] = [Link]
+ [Link](6, 6)
[Link] = 0
textbox.BlackOutline2.BackgroundColor3 =
[Link].outlinecolor2
[Link] =
[Link](-3, -3)
[Link]:Connect(function(theme)
textbox.BlackOutline2.BackgroundColor3 =
theme.outlinecolor2
end)
[Link] = [Link]("Frame",
[Link])
[Link] = "blackline"
[Link] = 4
[Link] = [Link] +
[Link](4, 4)
[Link] = 0
[Link].BackgroundColor3 =
[Link]
[Link] = [Link](-2,
-2)
[Link]:Connect(function(theme)
[Link].BackgroundColor3 =
[Link]
end)
[Link] = [Link]("Frame",
[Link])
[Link] = "blackline"
[Link] = 4
[Link] = [Link] +
[Link](2, 2)
[Link] = 0
[Link].BackgroundColor3 =
[Link].outlinecolor2
[Link] =
[Link](-1, -1)
[Link]:Connect(function(theme)
[Link].BackgroundColor3 =
theme.outlinecolor2
end)
[Link]:Connect(function()
textbox.BlackOutline2.BackgroundColor3 =
[Link]
end)
[Link]:Connect(function()
textbox.BlackOutline2.BackgroundColor3 =
[Link].outlinecolor2
end)
sector:FixSize()
[Link]([Link], textbox)
return textbox
end
[Link] = [Link]("Frame",
[Link])
[Link] = 6
[Link] = 0
[Link].BackgroundColor3 =
[Link](255, 255, 255)
[Link] = [Link](16,
10)
[Link] =
[Link]("UIGradient", [Link])
[Link] = 90
local clr =
[Link]([Link]([Link].R / 1.7, 0, 1),
[Link]([Link].G / 1.7, 0, 1), [Link]([Link].B / 1.7,
0, 1))
[Link] =
[Link]({ [Link](0.00, [Link]),
[Link](1.00, clr) })
colorpicker.BlackOutline2 =
[Link]("Frame", [Link])
[Link] = "blackline"
[Link] = 4
[Link] =
[Link] + [Link](6, 6)
[Link] = 0
colorpicker.BlackOutline2.BackgroundColor3 =
[Link].outlinecolor2
[Link] =
[Link](-3, -3)
[Link]:Connect(function(theme)
if
[Link][[Link]] then
colorpicker.BlackOutline2.BackgroundColor3 = [Link]
else
colorpicker.BlackOutline2.BackgroundColor3 = theme.outlinecolor2
end
end)
[Link] = [Link]("Frame",
[Link])
[Link] = "blackline"
[Link] = 4
[Link] =
[Link] + [Link](4, 4)
[Link] = 0
[Link].BackgroundColor3 =
[Link]
[Link] =
[Link](-2, -2)
[Link]:Connect(function(theme)
[Link].BackgroundColor3 =
[Link]
end)
[Link] =
[Link]("Frame", [Link])
[Link] = "blackline"
[Link] = 4
[Link] =
[Link] + [Link](2, 2)
[Link] = 0
[Link].BackgroundColor3 =
[Link].outlinecolor2
[Link] =
[Link](-1, -1)
[Link]:Connect(function(theme)
[Link].BackgroundColor3
= theme.outlinecolor2
end)
[Link]:Connect(function()
colorpicker.BlackOutline2.BackgroundColor3 = [Link]
end)
[Link]:Connect(function()
if not
[Link][[Link]] then
colorpicker.BlackOutline2.BackgroundColor3 = [Link].outlinecolor2
end
end)
[Link] =
[Link]("TextButton", [Link])
[Link] = "picker"
[Link] = 100
[Link] = false
[Link] = false
[Link] = ""
[Link][[Link]] = false
[Link] =
[Link](180, 196)
[Link] = 0
[Link].BackgroundColor3 =
[Link](40, 40, 40)
[Link] =
0.000000000000001
[Link] =
[Link](-[Link].X +
[Link].X, 17)
colorpicker.BlackOutline3 =
[Link]("Frame", [Link])
[Link] = "blackline"
[Link] = 98
[Link] =
[Link] + [Link](6, 6)
[Link] = 0
colorpicker.BlackOutline3.BackgroundColor3 =
[Link].outlinecolor2
[Link] =
[Link](-3, -3)
[Link]:Connect(function(theme)
colorpicker.BlackOutline3.BackgroundColor3 = theme.outlinecolor2
end)
colorpicker.Outline2 = [Link]("Frame",
[Link])
[Link] = "blackline"
[Link] = 98
[Link] =
[Link] + [Link](4, 4)
[Link] = 0
colorpicker.Outline2.BackgroundColor3 =
[Link]
[Link] =
[Link](-2, -2)
[Link]:Connect(function(theme)
colorpicker.Outline2.BackgroundColor3 =
[Link]
end)
colorpicker.BlackOutline3 =
[Link]("Frame", [Link])
[Link] = "blackline"
[Link] = 98
[Link] =
[Link] + [Link](2, 2)
[Link] = 0
colorpicker.BlackOutline3.BackgroundColor3 =
[Link].outlinecolor2
[Link] =
[Link](-1, -1)
[Link]:Connect(function(theme)
colorpicker.BlackOutline3.BackgroundColor3 = theme.outlinecolor2
end)
[Link] = [Link]("ImageLabel",
[Link])
[Link] = 101
[Link] = [Link](0,3,0,3)
[Link] = [Link](0,172,0,172)
[Link] =
"rbxassetid://4155801252"
[Link] =
[Link]
[Link].BackgroundColor3 =
[Link](1,0,0)
[Link].BorderColor3 =
[Link].outlinecolor2
[Link]:Connect(function(theme)
[Link].BorderColor3 =
theme.outlinecolor2
end)
[Link] =
[Link]("ImageLabel", [Link])
[Link] = 101
[Link] = 1
[Link]
= 0
[Link] =
[Link](0, 0, 0, 0)
[Link] =
[Link](0, 7, 0, 7)
[Link] =
"rbxassetid://6885856475"
[Link] =
[Link]("TextLabel", [Link])
[Link] = 100
[Link] =
[Link](0,3,0,181)
[Link] =
[Link](0,173,0,10)
[Link].BackgroundColor3 =
[Link](255,255,255)
[Link].BorderColor3 =
[Link].outlinecolor2
[Link] = ""
[Link]:Connect(function(theme)
[Link].BorderColor3 =
theme.outlinecolor2
end)
[Link] =
[Link]("UIGradient", [Link])
[Link] =
[Link]({
[Link](0,
[Link](1,0,0)),
[Link](0.17,
[Link](1,0,1)),
[Link](0.33,[Link](0,0,1)),
[Link](0.5,[Link](0,1,1)),
[Link](0.67,
[Link](0,1,0)),
[Link](0.83,
[Link](1,1,0)),
[Link](1,
[Link](1,0,0))
})
[Link] = [Link]("Frame",
[Link])
[Link] = 101
[Link].BackgroundColor3 =
[Link](40, 40, 40)
[Link] =
[Link](0,0,0,0)
[Link] = [Link](0,2,0,10)
[Link].BorderColor3 =
[Link](255, 255, 255)
function colorpicker:RefreshHue()
local x = (mouse.X -
[Link].X) / [Link].X
local y = (mouse.Y -
[Link].Y) / [Link].Y
[Link]:TweenPosition([Link]([Link](x *
[Link].X, 0.5, 0.952 * [Link].X) /
[Link].X, 0, [Link](y * [Link].Y,
0.5, 0.885 * [Link].Y) / [Link].Y, 0),
[Link], [Link], 0.05)
colorpicker:Set([Link]([Link], [Link](x *
[Link].X, 0.5, 1 * [Link].X) /
[Link].X, 1 - ([Link](y * [Link].Y,
0.5, 1 * [Link].Y) / [Link].Y)))
end
function colorpicker:RefreshSelector()
local pos = [Link]((mouse.X -
[Link].X) / [Link].X, 0, 1)
[Link] = 1 - pos
[Link]:TweenPosition([Link](pos, 0, 0, 0),
[Link], [Link], 0.05)
[Link].BackgroundColor3 =
[Link](1 - pos, 1, 1)
local x =
([Link].X -
[Link].X) / [Link].X
local y =
([Link].Y -
[Link].Y) / [Link].Y
colorpicker:Set([Link]([Link], [Link](x *
[Link].X, 0.5, 1 * [Link].X) /
[Link].X, 1 - ([Link](y * [Link].Y,
0.5, 1 * [Link].Y) / [Link].Y)))
end
function colorpicker:Set(value)
local color =
[Link]([Link](value.r, 0, 1), [Link](value.g, 0, 1),
[Link](value.b, 0, 1))
[Link] = color
if [Link] and [Link]
~= "" then
[Link][[Link]] =
color
end
local clr = [Link]([Link](color.R
/ 1.7, 0, 1), [Link](color.G / 1.7, 0, 1), [Link](color.B / 1.7, 0, 1))
[Link] =
[Link]({ [Link](0.00, color),
[Link](1.00, clr) })
pcall([Link], color)
end
function colorpicker:Get(value)
return [Link]
end
colorpicker:Set([Link])
[Link]:Connect(function(input)
if [Link] ==
[Link].MouseButton1 then
dragging_selector = true
colorpicker:RefreshSelector()
end
end)
[Link]:Connect(function(input)
if [Link] ==
[Link].MouseButton1 then
dragging_selector = false
colorpicker:RefreshSelector()
end
end)
[Link]:Connect(function(input)
if [Link] ==
[Link].MouseButton1 then
dragging_hue = true
colorpicker:RefreshHue()
end
end)
[Link]:Connect(function(input)
if [Link] ==
[Link].MouseButton1 then
dragging_hue = false
colorpicker:RefreshHue()
end
end)
[Link]:Connect(function(input)
if dragging_selector and
[Link] == [Link] then
colorpicker:RefreshSelector()
end
if dragging_hue and [Link]
== [Link] then
colorpicker:RefreshHue()
end
end)
[Link][i] = false
end
end
[Link] =
not [Link]
[Link][[Link]] =
[Link]
if
[Link][[Link]] then
colorpicker.BlackOutline2.BackgroundColor3 = [Link]
else
colorpicker.BlackOutline2.BackgroundColor3 = [Link].outlinecolor2
end
end
end
[Link]:Connect(inputBegan)
[Link]:Connect(inputBegan)
[Link]:Connect(inputBegan)
[Link]([Link], colorpicker)
return colorpicker
end
[Link] = [Link]
local dragging = false
[Link] = [Link]("TextButton",
[Link])
[Link] = "slider"
[Link].BackgroundColor3 =
[Link](255, 255, 255)
[Link] = [Link](0, 0)
[Link] = 0
[Link] =
[Link]([Link] - 12, 12)
[Link] = false
[Link] = ""
[Link] = 7
[Link] = [Link]("TextLabel",
[Link])
[Link] = 1
[Link] = [Link]
[Link] = [Link]
[Link] = "0"
[Link].TextColor3 =
[Link](240, 240, 240)
[Link] =
[Link]
[Link] = false
[Link] = 15
[Link] = 9
[Link] = 1
[Link] =
[Link]
[Link]:Connect(function(theme)
[Link] = [Link]
[Link].TextColor3 =
[Link]
end)
slider.BlackOutline2 = [Link]("Frame",
[Link])
[Link] = "blackline"
[Link] = 4
[Link] = [Link] +
[Link](6, 6)
[Link] = 0
slider.BlackOutline2.BackgroundColor3 =
[Link].outlinecolor2
[Link] =
[Link](-3, -3)
[Link]:Connect(function(theme)
slider.BlackOutline2.BackgroundColor3 =
theme.outlinecolor2
end)
[Link] = [Link]("Frame",
[Link])
[Link] = "blackline"
[Link] = 4
[Link] = [Link] +
[Link](4, 4)
[Link] = 0
[Link].BackgroundColor3 =
[Link]
[Link] = [Link](-2,
-2)
[Link]:Connect(function(theme)
[Link].BackgroundColor3 =
[Link]
end)
[Link] = [Link]("Frame",
[Link])
[Link] = "blackline"
[Link] = 4
[Link] = [Link] +
[Link](2, 2)
[Link] = 0
[Link].BackgroundColor3 =
[Link].outlinecolor2
[Link] =
[Link](-1, -1)
[Link]:Connect(function(theme)
[Link].BackgroundColor3 =
theme.outlinecolor2
end)
[Link] = [Link]("UIGradient",
[Link])
[Link] = 90
[Link] =
[Link]({ [Link](0.00, [Link](49, 49, 49)),
[Link](1.00, [Link](41, 41, 41)) })
[Link] = [Link]("Frame",
[Link])
[Link].BackgroundColor3 =
[Link](255, 255, 255) --[Link](204, 0, 102)
[Link] = 8
[Link] = 0
[Link] = [Link](0,
[Link])
slider.Gradient2 = [Link]("UIGradient",
[Link])
[Link] = 90
[Link] =
[Link]({ [Link](0.00, [Link]),
[Link](1.00, [Link].accentcolor2) })
[Link]:Connect(function(theme)
[Link] =
[Link]({ [Link](0.00, [Link]),
[Link](1.00, theme.accentcolor2) })
end)
[Link]:Connect(function()
slider.BlackOutline2.BackgroundColor3 =
[Link]
end)
[Link]:Connect(function()
slider.BlackOutline2.BackgroundColor3 =
[Link].outlinecolor2
end)
function slider:Get()
return [Link]
end
function slider:Set(value)
[Link] =
[Link]([Link](value * [Link]) / [Link], [Link],
[Link])
local percent = 1 - (([Link] -
[Link]) / ([Link] - [Link]))
if [Link] and [Link] ~= "" then
[Link][[Link]] =
[Link]
end
[Link]:TweenSize([Link](percent *
[Link].X, [Link].Y), [Link],
[Link], 0.05)
[Link] = [Link]
pcall([Link], [Link])
end
slider:Set([Link])
function slider:Refresh()
local mousePos =
camera:WorldToViewportPoint([Link].p)
local percent = [Link](mousePos.X -
[Link].X, 0, [Link].X) /
[Link].X
local value = [Link](([Link] +
([Link] - [Link]) * percent) * [Link]) / [Link]
value = [Link](value, [Link],
[Link])
slider:Set(value)
end
[Link]:Connect(function(input)
if [Link] ==
[Link].MouseButton1 then
dragging = true
slider:Refresh()
end
end)
[Link]:Connect(function(input)
if [Link] ==
[Link].MouseButton1 then
dragging = false
end
end)
[Link]:Connect(function(input)
if [Link] ==
[Link].MouseButton1 then
dragging = true
slider:Refresh()
end
end)
[Link]:Connect(function(input)
if [Link] ==
[Link].MouseButton1 then
dragging = false
end
end)
[Link]:Connect(function(input)
if dragging and [Link] ==
[Link] then
slider:Refresh()
end
end)
sector:FixSize()
[Link]([Link], slider)
return slider
end
[Link].MouseButton1Down:Connect(function()
toggle:Set(not [Link])
end)
[Link]:Connect(function(input)
if [Link] ==
[Link].MouseButton1 then
toggle:Set(not
[Link])
end
end)
[Link]:Connect(MouseEnter)
[Link]:Connect(MouseLeave)
[Link]:Connect(MouseEnter)
[Link]:Connect(MouseLeave)
sector:FixSize()
[Link]([Link], toggle)
return toggle
end
[Link] = [Link]("TextButton",
[Link])
[Link] = "Label"
[Link] = false
[Link].BackgroundColor3 = [Link](255,
255, 255)
[Link] = 1
[Link] =
[Link]([Link], 0)
[Link] =
[Link]([Link] - 12, 0)
[Link] = [Link]
[Link] = 5
[Link] = [Link]
[Link].TextColor3 = [Link]
[Link] = 15
[Link] = 1
[Link] =
[Link]
[Link]:Connect(function(theme)
[Link] = [Link]
end)
[Link] = [Link]("UIGradient",
[Link])
[Link] = 90
[Link] =
[Link]({ [Link](0.00, [Link](49, 49, 49)),
[Link](1.00, [Link](39, 39, 39)) })
[Link] = [Link]("TextBox",
[Link])
[Link] = [Link]
[Link].PlaceholderColor3 = [Link](190,
190, 190)
[Link] = ""
[Link] = 1
[Link] = [Link]
[Link] = "textbox"
[Link] = false
[Link] = false
[Link] = 5
[Link] = true
[Link] = [Link]
[Link] = 15
[Link].TextColor3 = [Link](255, 255,
255)
[Link] = 0
[Link].BackgroundColor3 = [Link](30,
30, 30)
[Link] =
[Link]
function textbox:Set(text)
[Link] = text
[Link] = text
if [Link] and [Link] ~= "" then
[Link][[Link]] = text
end
pcall([Link], text)
end
[Link]:Connect(function(theme)
[Link] = [Link]
end)
function textbox:Get()
return [Link]
end
if [Link] then
textbox:Set([Link])
end
[Link]:Connect(function()
textbox:Set([Link])
end)
textbox.BlackOutline2 = [Link]("Frame",
[Link])
[Link] = "blackline"
[Link] = 4
[Link] = [Link] +
[Link](6, 6)
[Link] = 0
textbox.BlackOutline2.BackgroundColor3 =
[Link].outlinecolor2
[Link] = [Link](-3,
-3)
[Link]:Connect(function(theme)
textbox.BlackOutline2.BackgroundColor3 =
theme.outlinecolor2
end)
[Link] = [Link]("Frame",
[Link])
[Link] = "blackline"
[Link] = 4
[Link] = [Link] +
[Link](2, 2)
[Link] = 0
[Link].BackgroundColor3 =
[Link].outlinecolor2
[Link] = [Link](-1,
-1)
[Link]:Connect(function(theme)
[Link].BackgroundColor3 =
theme.outlinecolor2
end)
[Link]:Connect(function()
textbox.BlackOutline2.BackgroundColor3 =
[Link]
end)
[Link]:Connect(function()
textbox.BlackOutline2.BackgroundColor3 =
[Link].outlinecolor2
end)
sector:FixSize()
[Link]([Link], textbox)
return textbox
end
[Link] = [Link]
local dragging = false
[Link] = [Link]("TextLabel",
[Link])
[Link] = 1
[Link] =
[Link]([Link] - 12, 6)
[Link] = [Link]
[Link] = [Link] .. ":"
[Link].TextColor3 = [Link]
[Link] = [Link](0, 0)
[Link] = 15
[Link] = 4
[Link] = 1
[Link] =
[Link]
[Link]:Connect(function(theme)
[Link] = [Link]
[Link].TextColor3 = [Link]
end)
local size =
textservice:GetTextSize([Link], [Link],
[Link], [Link](200,300))
[Link] = [Link]("TextBox",
[Link])
[Link] = 1
[Link] = false
[Link] =
[Link]([Link] - size.X - 15, 12)
[Link] = [Link]
[Link] = "0"
[Link].TextColor3 =
[Link]
[Link] = [Link](size.X
+ 3, -3)
[Link] = 15
[Link] = 4
[Link] = 1
[Link] =
[Link]
[Link]:Connect(function(theme)
[Link] = [Link]
[Link].TextColor3 = [Link]
local size =
textservice:GetTextSize([Link], [Link],
[Link], [Link](200,300))
[Link] =
[Link]([Link] - size.X - 15, 12)
end)
[Link] = [Link]("TextButton",
[Link])
[Link] = "slider"
[Link].BackgroundColor3 = [Link](255,
255, 255)
[Link] = [Link](0, 15)
[Link] = 0
[Link] =
[Link]([Link] - 12, 12)
[Link] = false
[Link] = ""
[Link] = 5
slider.BlackOutline2 = [Link]("Frame",
[Link])
[Link] = "blackline"
[Link] = 4
[Link] = [Link] +
[Link](6, 6)
[Link] = 0
slider.BlackOutline2.BackgroundColor3 =
[Link].outlinecolor2
[Link] = [Link](-3,
-3)
[Link]:Connect(function(theme)
slider.BlackOutline2.BackgroundColor3 =
theme.outlinecolor2
end)
[Link] = [Link]("Frame", [Link])
[Link] = "blackline"
[Link] = 4
[Link] = [Link] +
[Link](4, 4)
[Link] = 0
[Link].BackgroundColor3 =
[Link]
[Link] = [Link](-2, -2)
[Link]:Connect(function(theme)
[Link].BackgroundColor3 =
[Link]
end)
[Link] = [Link]("Frame",
[Link])
[Link] = "blackline"
[Link] = 4
[Link] = [Link] +
[Link](2, 2)
[Link] = 0
[Link].BackgroundColor3 =
[Link].outlinecolor2
[Link] = [Link](-1, -
1)
[Link]:Connect(function(theme)
[Link].BackgroundColor3 =
theme.outlinecolor2
end)
[Link] = [Link]("UIGradient",
[Link])
[Link] = 90
[Link] =
[Link]({ [Link](0.00, [Link](49, 49, 49)),
[Link](1.00, [Link](41, 41, 41)) })
slider.Gradient2 = [Link]("UIGradient",
[Link])
[Link] = 90
[Link] =
[Link]({ [Link](0.00, [Link]),
[Link](1.00, [Link].accentcolor2) })
[Link]:Connect(function(theme)
[Link] =
[Link]({ [Link](0.00, [Link]),
[Link](1.00, theme.accentcolor2) })
end)
[Link]:Connect(function()
slider.BlackOutline2.BackgroundColor3 =
[Link]
end)
[Link]:Connect(function()
slider.BlackOutline2.BackgroundColor3 =
[Link].outlinecolor2
end)
function slider:Get()
return [Link]
end
function slider:Set(value)
[Link] = [Link]([Link](value *
[Link]) / [Link], [Link], [Link])
local percent = 1 - (([Link] -
[Link]) / ([Link] - [Link]))
if [Link] and [Link] ~= "" then
[Link][[Link]] = [Link]
end
[Link]:TweenSize([Link](percent *
[Link].X, [Link].Y), [Link],
[Link], 0.05)
[Link] = [Link]
pcall([Link], [Link])
end
slider:Set([Link])
[Link]:Connect(function(Return)
if not Return then
return
end
if ([Link]:match("^%d+$")) then
slider:Set(tonumber([Link]))
else
[Link] =
tostring([Link])
end
end)
function slider:Refresh()
local mousePos =
camera:WorldToViewportPoint([Link].p)
local percent = [Link](mousePos.X -
[Link].X, 0, [Link].X) /
[Link].X
local value = [Link](([Link] +
([Link] - [Link]) * percent) * [Link]) / [Link]
value = [Link](value, [Link],
[Link])
slider:Set(value)
end
[Link]:Connect(function(input)
if [Link] ==
[Link].MouseButton1 then
dragging = true
slider:Refresh()
end
end)
[Link]:Connect(function(input)
if [Link] ==
[Link].MouseButton1 then
dragging = false
end
end)
[Link]:Connect(function(input)
if [Link] ==
[Link].MouseButton1 then
dragging = true
slider:Refresh()
end
end)
[Link]:Connect(function(input)
if [Link] ==
[Link].MouseButton1 then
dragging = false
end
end)
[Link]:Connect(function(input)
if dragging and [Link] ==
[Link] then
slider:Refresh()
end
end)
sector:FixSize()
[Link]([Link], slider)
return slider
end
[Link] = [Link]("TextLabel",
[Link])
[Link] = 1
[Link] = [Link](156, 10)
[Link] = 4
[Link] = [Link]
[Link] = [Link]
[Link].TextColor3 =
[Link]
[Link] = 15
[Link] = 1
[Link] =
[Link]
[Link]:Connect(function(theme)
[Link] = [Link]
[Link].TextColor3 = [Link]
end)
[Link] = [Link]("Frame",
[Link])
[Link] = 6
[Link] = 0
[Link] =
[Link]([Link] - 29, 0)
[Link].BackgroundColor3 =
[Link](255, 255, 255)
[Link] = [Link](16, 10)
[Link] = [Link]("UIGradient",
[Link])
[Link] = 90
colorpicker.BlackOutline2 = [Link]("Frame",
[Link])
[Link] = "blackline"
[Link] = 4
[Link] =
[Link] + [Link](6, 6)
[Link] = 0
colorpicker.BlackOutline2.BackgroundColor3 =
[Link].outlinecolor2
[Link] =
[Link](-3, -3)
[Link]:Connect(function(theme)
colorpicker.BlackOutline2.BackgroundColor3 =
[Link][[Link]] and [Link] or
theme.outlinecolor2
end)
[Link] = [Link]("Frame",
[Link])
[Link] = "blackline"
[Link] = 4
[Link] = [Link] +
[Link](4, 4)
[Link] = 0
[Link].BackgroundColor3 =
[Link]
[Link] = [Link](-2, -
2)
[Link]:Connect(function(theme)
[Link].BackgroundColor3 =
[Link]
end)
[Link] = [Link]("Frame",
[Link])
[Link] = "blackline"
[Link] = 4
[Link] = [Link]
+ [Link](2, 2)
[Link] = 0
[Link].BackgroundColor3 =
[Link].outlinecolor2
[Link] =
[Link](-1, -1)
[Link]:Connect(function(theme)
[Link].BackgroundColor3 =
theme.outlinecolor2
end)
[Link]:Connect(function()
colorpicker.BlackOutline2.BackgroundColor3 =
[Link]
end)
[Link]:Connect(function()
if not
[Link][[Link]] then
colorpicker.BlackOutline2.BackgroundColor3 = [Link].outlinecolor2
end
end)
[Link] = [Link]("TextButton",
[Link])
[Link] = "picker"
[Link] = 100
[Link] = false
[Link] = false
[Link] = ""
[Link][[Link]] =
false
[Link] = [Link](180,
196)
[Link] = 0
[Link].BackgroundColor3 =
[Link](40, 40, 40)
[Link] = 0.000000000000001
[Link] = [Link](-
[Link].X + [Link].X, 15)
colorpicker.BlackOutline3 = [Link]("Frame",
[Link])
[Link] = "blackline"
[Link] = 98
[Link] =
[Link] + [Link](6, 6)
[Link] = 0
colorpicker.BlackOutline3.BackgroundColor3 =
[Link].outlinecolor2
[Link] =
[Link](-3, -3)
[Link]:Connect(function(theme)
colorpicker.BlackOutline3.BackgroundColor3 =
theme.outlinecolor2
end)
colorpicker.Outline2 = [Link]("Frame",
[Link])
[Link] = "blackline"
[Link] = 98
[Link] =
[Link] + [Link](4, 4)
[Link] = 0
colorpicker.Outline2.BackgroundColor3 =
[Link]
[Link] = [Link](-2,
-2)
[Link]:Connect(function(theme)
colorpicker.Outline2.BackgroundColor3 =
[Link]
end)
colorpicker.BlackOutline3 = [Link]("Frame",
[Link])
[Link] = "blackline"
[Link] = 98
[Link] =
[Link] + [Link](2, 2)
[Link] = 0
colorpicker.BlackOutline3.BackgroundColor3 =
[Link].outlinecolor2
[Link] =
[Link](-1, -1)
[Link]:Connect(function(theme)
colorpicker.BlackOutline3.BackgroundColor3 =
theme.outlinecolor2
end)
[Link] = [Link]("ImageLabel",
[Link])
[Link] = 101
[Link] = [Link](0,3,0,3)
[Link] = [Link](0,172,0,172)
[Link] = "rbxassetid://4155801252"
[Link] = [Link]
[Link].BackgroundColor3 = [Link](1,0,0)
[Link].BorderColor3 =
[Link].outlinecolor2
[Link]:Connect(function(theme)
[Link].BorderColor3 =
theme.outlinecolor2
end)
[Link] =
[Link]("ImageLabel", [Link])
[Link] = 101
[Link]
= 1
[Link] = 0
[Link] =
[Link](0, 0, 0, 0)
[Link] = [Link](0, 7,
0, 7)
[Link] =
"rbxassetid://6885856475"
[Link] = [Link]("TextLabel",
[Link])
[Link] = 100
[Link] = [Link](0,3,0,181)
[Link] = [Link](0,173,0,10)
[Link].BackgroundColor3 =
[Link](255,255,255)
[Link].BorderColor3 =
[Link].outlinecolor2
[Link] = ""
[Link]:Connect(function(theme)
[Link].BorderColor3 =
theme.outlinecolor2
end)
[Link] = [Link]("UIGradient",
[Link])
[Link] = [Link]({
[Link](0,
[Link](1,0,0)),
[Link](0.17,
[Link](1,0,1)),
[Link](0.33,[Link](0,0,1)),
[Link](0.5,[Link](0,1,1)),
[Link](0.67,
[Link](0,1,0)),
[Link](0.83,
[Link](1,1,0)),
[Link](1, [Link](1,0,0))
})
[Link] = [Link]("Frame",
[Link])
[Link] = 101
[Link].BackgroundColor3 =
[Link](40, 40, 40)
[Link] = [Link](0,0,0,0)
[Link] = [Link](0,2,0,10)
[Link].BorderColor3 =
[Link](255, 255, 255)
function colorpicker:RefreshSelector()
local pos = [Link]((mouse.X -
[Link].X) / [Link].X, 0, 1)
[Link] = 1 - pos
[Link]:TweenPosition([Link](pos, 0, 0, 0),
[Link], [Link], 0.05)
[Link].BackgroundColor3 =
[Link](1 - pos, 1, 1)
end
function colorpicker:RefreshHue()
local x = (mouse.X -
[Link].X) / [Link].X
local y = (mouse.Y -
[Link].Y) / [Link].Y
[Link]:TweenPosition([Link]([Link](x *
[Link].X, 0.5, 0.952 * [Link].X) /
[Link].X, 0, [Link](y * [Link].Y,
0.5, 0.885 * [Link].Y) / [Link].Y, 0),
[Link], [Link], 0.05)
colorpicker:Set([Link]([Link], [Link](x *
[Link].X, 0.5, 1 * [Link].X) /
[Link].X, 1 - ([Link](y * [Link].Y,
0.5, 1 * [Link].Y) / [Link].Y)))
end
function colorpicker:Set(value)
local color = [Link]([Link](value.r, 0,
1), [Link](value.g, 0, 1), [Link](value.b, 0, 1))
[Link] = color
if [Link] and [Link] ~= ""
then
[Link][[Link]] = color
end
local clr = [Link]([Link](color.R /
1.7, 0, 1), [Link](color.G / 1.7, 0, 1), [Link](color.B / 1.7, 0, 1))
[Link] =
[Link]({ [Link](0.00, color),
[Link](1.00, clr) })
pcall([Link], color)
end
function colorpicker:Get()
return [Link]
end
colorpicker:Set([Link])
[Link] = items or { }
[Link] = default
[Link] = callback or function() end
[Link] = multichoice or false
[Link] = { }
[Link] = flag or (([Link] or
"") .. tostring( #([Link]:GetChildren()) ))
[Link] = [Link]("TextButton",
[Link])
[Link] = "dropdown"
[Link].BackgroundColor3 =
[Link](255, 255, 255)
[Link] = 0
[Link] =
[Link]([Link] - 12, 16)
[Link] = [Link](0, 0)
[Link] = 5
[Link] = false
[Link] = [Link]
[Link] = ""
[Link].TextColor3 = [Link](255,
255, 255)
[Link] = 15
[Link] =
[Link]
[Link]:Connect(function(theme)
[Link] = [Link]
end)
[Link] = [Link]("UIGradient",
[Link])
[Link] = 90
[Link] =
[Link]{[Link](0.00, [Link](49, 49, 49)),
[Link](1.00, [Link](39, 39, 39))}
[Link] =
[Link]("TextLabel", [Link])
[Link].BackgroundColor3 =
[Link](255, 255, 255)
[Link] =
1
[Link] =
[Link](5, 2)
[Link] =
[Link](130, 13)
[Link] = [Link]
[Link] = [Link]
[Link] = 5
[Link].TextColor3 =
[Link](255, 255, 255)
[Link] = 15
[Link] =
1
[Link] =
[Link]
[Link]:Connect(function(theme)
[Link] = [Link]
end)
[Link] = [Link]("ImageButton",
[Link])
[Link] = "navigation"
[Link] = 1
[Link] = 10
[Link] =
[Link]([Link] - 26, 5)
[Link] = 90
[Link] = 5
[Link] = [Link](8, 8)
[Link] = "rbxassetid://4918373417"
[Link].ImageColor3 = [Link](210,
210, 210)
dropdown.BlackOutline2 = [Link]("Frame",
[Link])
[Link] = "blackline"
[Link] = 4
[Link] =
[Link] + [Link](6, 6)
[Link] = 0
dropdown.BlackOutline2.BackgroundColor3 =
[Link].outlinecolor2
[Link] =
[Link](-3, -3)
[Link]:Connect(function(theme)
dropdown.BlackOutline2.BackgroundColor3 =
theme.outlinecolor2
end)
[Link] = [Link]("Frame",
[Link])
[Link] = "blackline"
[Link] = 4
[Link] = [Link] +
[Link](4, 4)
[Link] = 0
[Link].BackgroundColor3 =
[Link]
[Link] = [Link](-
2, -2)
[Link]:Connect(function(theme)
[Link].BackgroundColor3 =
[Link]
end)
[Link] = [Link]("Frame",
[Link])
[Link] = "blackline"
[Link] = 4
[Link] = [Link]
+ [Link](2, 2)
[Link] = 0
[Link].BackgroundColor3 =
[Link].outlinecolor2
[Link] =
[Link](-1, -1)
[Link]:Connect(function(theme)
[Link].BackgroundColor3 =
theme.outlinecolor2
end)
[Link] =
[Link]("ScrollingFrame", [Link])
[Link] = "itemsframe"
[Link] = 0
[Link].BackgroundColor3 =
[Link](40, 40, 40)
[Link] =
[Link](0, [Link] + 8)
[Link] = 2
[Link] = 8
[Link] = "Y"
[Link] = false
[Link] =
[Link]([Link].X, 0)
[Link] =
[Link]("UIListLayout", [Link])
[Link] =
[Link]
[Link] =
[Link]
[Link] =
[Link]("UIPadding", [Link])
[Link] = [Link](0,
2)
[Link] =
[Link](0, 2)
[Link] = [Link](0,
2)
[Link] = [Link](0,
2)
dropdown.BlackOutline2Items =
[Link]("Frame", [Link])
[Link] = "blackline"
[Link] = 7
[Link] =
[Link] + [Link](6, 6)
[Link] = 0
dropdown.BlackOutline2Items.BackgroundColor3 =
[Link].outlinecolor2
[Link] =
[Link] + [Link](-3, -3)
[Link] = false
[Link]:Connect(function(theme)
dropdown.BlackOutline2Items.BackgroundColor3 = theme.outlinecolor2
end)
[Link] = [Link]("Frame",
[Link])
[Link] = "blackline"
[Link] = 7
[Link] =
[Link] + [Link](4, 4)
[Link] = 0
[Link].BackgroundColor3 =
[Link]
[Link] =
[Link] + [Link](-2, -2)
[Link] = false
[Link]:Connect(function(theme)
[Link].BackgroundColor3 =
[Link]
end)
[Link] =
[Link]("Frame", [Link])
[Link] = "blackline"
[Link] = 7
[Link] =
[Link] + [Link](-2, -2)
[Link] = 0
[Link].BackgroundColor3 =
[Link].outlinecolor2
[Link] =
[Link] + [Link](-1, -1)
[Link] = false
[Link]:Connect(function(theme)
[Link].BackgroundColor3 = theme.outlinecolor2
end)
[Link] =
[Link]("TextButton", [Link])
[Link] = 1
[Link] = 0
[Link] =
[Link](0, [Link] + 8)
[Link] = [Link](0,
0, 0, 0)
[Link] = 7
[Link] = ""
[Link] = false
[Link] =
false
function dropdown:isSelected(item)
for i, v in pairs([Link]) do
if v == item then
return true
end
end
return false
end
function dropdown:updateText(text)
if #text >= 27 then
text = text:sub(1, 25) .. ".."
end
[Link] = text
end
[Link] =
[Link]("BindableEvent")
function dropdown:Set(value)
if type(value) == "table" then
[Link] = value
[Link]:Fire(value)
if [Link] and [Link] ~= ""
then
[Link][[Link]] =
[Link] and [Link] or [Link][1]
end
end
function dropdown:Get()
return [Link] and
[Link] or [Link][1]
end
[Link] = { }
function dropdown:Add(v)
local Item = [Link]("TextButton",
[Link])
Item.BackgroundColor3 =
[Link](40, 40, 40)
Item.TextColor3 = [Link](255,
255, 255)
[Link] = 0
[Link] = [Link](0, 0)
[Link] =
[Link]([Link] - 4, 20)
[Link] = 9
[Link] = v
[Link] = v
[Link] = false
[Link] = [Link]
[Link] = 15
[Link] =
[Link]
[Link] = 1
[Link] =
[Link] + [Link](0, [Link].Y)
Item.MouseButton1Down:Connect(function()
if [Link] then
if dropdown:isSelected(v)
then
for i2, v2 in
pairs([Link]) do
if v2 == v then
[Link]([Link], i2)
end
end
dropdown:Set([Link])
else
[Link]([Link], v)
dropdown:Set([Link])
end
return
else
[Link] = 90
[Link] =
false
[Link] =
false
[Link]
= false
[Link] = false
[Link] = false
[Link] = false
[Link] = false
end
dropdown:Set(v)
return
end)
[Link]:Connect(function()
if [Link] and
dropdown:isSelected(v) or [Link][1] == v then
Item.BackgroundColor3 =
[Link](64, 64, 64)
Item.TextColor3 =
[Link]
[Link] = " " .. v
else
Item.BackgroundColor3 =
[Link](40, 40, 40)
Item.TextColor3 =
[Link](255, 255, 255)
[Link] = v
end
end)
[Link]([Link], v)
[Link] =
[Link]([Link], [Link](#[Link] *
[Link].Y, 20, 156) + 4)
[Link] =
[Link]([Link].X, (#[Link] *
[Link].Y) + 4)
[Link] =
[Link] + [Link](4, 4)
[Link] =
[Link] + [Link](2, 2)
[Link] =
[Link] + [Link](6, 6)
[Link] =
[Link]
end
function dropdown:Remove(value)
local item =
[Link]:FindFirstChild(value)
if item then
for i,v in pairs([Link]) do
if v == value then
[Link]([Link], i)
end
end
[Link] =
[Link]([Link], [Link](#[Link] *
[Link].Y, 20, 156) + 4)
[Link] =
[Link]([Link].X, (#[Link] *
[Link].Y) + 4)
[Link] =
[Link] + [Link](2, 2)
[Link] =
[Link] + [Link](4, 4)
[Link] =
[Link] + [Link](6, 6)
[Link] =
[Link]
item:Remove()
end
end
if [Link] then
dropdown:Set([Link])
end
[Link] = true
[Link]
= false
tweenservice:Create([Link],
[Link](0.1, [Link], [Link]), { Rotation =
-90 }):Play()
[Link] = true
[Link] = true
[Link]
= true
[Link] =
true
[Link] =
true
[Link]
= true
[Link]
= true
else
[Link] = false
[Link]
= true
tweenservice:Create([Link],
[Link](0.1, [Link], [Link]), { Rotation =
90 }):Play()
[Link] = false
[Link] = false
[Link]
= false
[Link] =
false
[Link] =
false
[Link]
= false
[Link]
= false
end
end
[Link].MouseButton1Down:Connect(MouseButton1Down)
[Link].MouseButton1Down:Connect(MouseButton1Down)
[Link]:Connect(function()
dropdown.BlackOutline2.BackgroundColor3 =
[Link]
end)
[Link]:Connect(function()
dropdown.BlackOutline2.BackgroundColor3 =
[Link].outlinecolor2
end)
sector:FixSize()
[Link]([Link], dropdown)
return dropdown
end
[Link]:Connect(function(input)
if [Link] ==
[Link].MouseButton1 then
dragging_selector = true
colorpicker:RefreshSelector()
end
end)
[Link]:Connect(function(input)
if [Link] ==
[Link].MouseButton1 then
dragging_selector = false
colorpicker:RefreshSelector()
end
end)
[Link]:Connect(function(input)
if [Link] ==
[Link].MouseButton1 then
dragging_hue = true
colorpicker:RefreshHue()
end
end)
[Link]:Connect(function(input)
if [Link] ==
[Link].MouseButton1 then
dragging_hue = false
colorpicker:RefreshHue()
end
end)
[Link]:Connect(function(input)
if dragging_selector and [Link] ==
[Link] then
colorpicker:RefreshSelector()
end
if dragging_hue and [Link] ==
[Link] then
colorpicker:RefreshHue()
end
end)
[Link] = not
[Link]
[Link][[Link]] =
[Link]
if
[Link][[Link]] then
colorpicker.BlackOutline2.BackgroundColor3 = [Link]
else
colorpicker.BlackOutline2.BackgroundColor3 = [Link].outlinecolor2
end
end
end
[Link]:Connect(inputBegan)
[Link]:Connect(inputBegan)
[Link]:Connect(inputBegan)
sector:FixSize()
[Link]([Link], colorpicker)
return colorpicker
end
function
sector:AddKeybind(text,default,newkeycallback,callback,flag)
local keybind = { }
[Link] = [Link]
[Link] = [Link]("TextLabel",
[Link])
[Link] = 1
[Link] = [Link](156, 10)
[Link] = 4
[Link] = [Link]
[Link] = [Link]
[Link].TextColor3 = [Link]
[Link] = 15
[Link] = 1
[Link] =
[Link]
[Link]:Connect(function(theme)
[Link] = [Link]
[Link].TextColor3 = [Link]
end)
[Link] = [Link]("TextButton",
[Link])
[Link] = "keybind"
[Link] = 1
[Link].BorderColor3 = [Link]
[Link] = 5
[Link] = 0
[Link] =
[Link]([Link] - 10, 0)
[Link] = [Link]
[Link].TextColor3 = [Link](136, 136,
136)
[Link] = 15
[Link] =
[Link]
[Link].MouseButton1Down:Connect(function()
[Link] = "[...]"
[Link].TextColor3 =
[Link]
end)
[Link]:Connect(function(theme)
[Link].BorderColor3 = [Link]
[Link] = [Link]
end)
local shorter_keycodes = {
["LeftShift"] = "LSHIFT",
["RightShift"] = "RSHIFT",
["LeftControl"] = "LCTRL",
["RightControl"] = "RCTRL",
["LeftAlt"] = "LALT",
["RightAlt"] = "RALT"
}
function keybind:Set(value)
if value == "None" then
[Link] = value
[Link] = "[" .. value .. "]"
local size =
textservice:GetTextSize([Link], [Link],
[Link], [Link](2000, 2000))
[Link] =
[Link](size.X, size.Y)
[Link] =
[Link]([Link] - 10 - [Link].X, 0)
if [Link] and [Link] ~= ""
then
[Link][[Link]] = value
end
pcall([Link], value)
end
[Link] = value
[Link] = "[" ..
(shorter_keycodes[[Link] or value] or ([Link] or value)) .. "]"
local size =
textservice:GetTextSize([Link], [Link],
[Link], [Link](2000, 2000))
[Link] = [Link](size.X,
size.Y)
[Link] =
[Link]([Link] - 10 - [Link].X, 0)
if [Link] and [Link] ~= "" then
[Link][[Link]] = value
end
pcall([Link], value)
end
keybind:Set([Link] and [Link] or
"None")
function keybind:Get()
return [Link]
end
[Link]:Connect(function(input, gameProcessed)
if not gameProcessed then
if [Link] == "[...]" then
[Link].TextColor3 =
[Link](136, 136, 136)
if [Link] ==
[Link] then
keybind:Set([Link])
else
keybind:Set("None")
end
else
if [Link] ~= "None" and
[Link] == [Link] then
pcall([Link])
end
end
end
end)
sector:FixSize()
[Link]([Link], keybind)
return keybind
end
[Link] = [Link]("TextLabel",
[Link])
[Link].BackgroundColor3 = [Link](255,
255, 255)
[Link] = 1
[Link] =
[Link]([Link] - 12, 10)
[Link] = [Link](0, 0)
[Link] = [Link]
[Link] = [Link]
[Link] = 4
[Link].TextColor3 = [Link]
[Link] = 15
[Link] = 1
[Link] =
[Link]
[Link]:Connect(function(theme)
[Link] = [Link]
[Link].TextColor3 = [Link]
end)
[Link] = [Link]("TextButton",
[Link])
[Link] = "dropdown"
[Link].BackgroundColor3 = [Link](255,
255, 255)
[Link] = 0
[Link] =
[Link]([Link] - 12, 16)
[Link] = [Link](0, 17)
[Link] = 5
[Link] = false
[Link] = [Link]
[Link] = ""
[Link].TextColor3 = [Link](255, 255,
255)
[Link] = 15
[Link] =
[Link]
[Link]:Connect(function(theme)
[Link] = [Link]
end)
[Link] = [Link]("UIGradient",
[Link])
[Link] = 90
[Link] =
[Link]{[Link](0.00, [Link](49, 49, 49)),
[Link](1.00, [Link](39, 39, 39))}
[Link] = [Link]("TextLabel",
[Link])
[Link].BackgroundColor3 =
[Link](255, 255, 255)
[Link] = 1
[Link] = [Link](5,
2)
[Link] = [Link](130,
13)
[Link] = [Link]
[Link] = [Link]
[Link] = 5
[Link].TextColor3 =
[Link](255, 255, 255)
[Link] = 15
[Link] = 1
[Link] =
[Link]
[Link]:Connect(function(theme)
[Link] = [Link]
end)
[Link] = [Link]("ImageButton",
[Link])
[Link] = "navigation"
[Link] = 1
[Link] = 10
[Link] =
[Link]([Link] - 26, 5)
[Link] = 90
[Link] = 5
[Link] = [Link](8, 8)
[Link] = "rbxassetid://4918373417"
[Link].ImageColor3 = [Link](210, 210,
210)
dropdown.BlackOutline2 = [Link]("Frame",
[Link])
[Link] = "blackline"
[Link] = 4
[Link] = [Link] +
[Link](6, 6)
[Link] = 0
dropdown.BlackOutline2.BackgroundColor3 =
[Link].outlinecolor2
[Link] = [Link](-
3, -3)
[Link]:Connect(function(theme)
dropdown.BlackOutline2.BackgroundColor3 =
theme.outlinecolor2
end)
[Link] = [Link]("Frame",
[Link])
[Link] = "blackline"
[Link] = 4
[Link] = [Link] +
[Link](4, 4)
[Link] = 0
[Link].BackgroundColor3 =
[Link]
[Link] = [Link](-2, -2)
[Link]:Connect(function(theme)
[Link].BackgroundColor3 =
[Link]
end)
[Link] = [Link]("Frame",
[Link])
[Link] = "blackline"
[Link] = 4
[Link] = [Link] +
[Link](2, 2)
[Link] = 0
[Link].BackgroundColor3 =
[Link].outlinecolor2
[Link] = [Link](-1,
-1)
[Link]:Connect(function(theme)
[Link].BackgroundColor3 =
theme.outlinecolor2
end)
[Link] = [Link]("ScrollingFrame",
[Link])
[Link] = "itemsframe"
[Link] = 0
[Link].BackgroundColor3 =
[Link](40, 40, 40)
[Link] = [Link](0,
[Link] + 8)
[Link] = 2
[Link] = 8
[Link] = "Y"
[Link] = false
[Link] =
[Link]([Link].X, 0)
[Link] = [Link]("UIListLayout",
[Link])
[Link] =
[Link]
[Link] =
[Link]
[Link] = [Link]("UIPadding",
[Link])
[Link] = [Link](0, 2)
[Link] = [Link](0, 2)
[Link] = [Link](0, 2)
[Link] = [Link](0, 2)
dropdown.BlackOutline2Items = [Link]("Frame",
[Link])
[Link] = "blackline"
[Link] = 7
[Link] =
[Link] + [Link](6, 6)
[Link] = 0
dropdown.BlackOutline2Items.BackgroundColor3 =
[Link].outlinecolor2
[Link] =
[Link] + [Link](-3, -3)
[Link] = false
[Link]:Connect(function(theme)
dropdown.BlackOutline2Items.BackgroundColor3 =
theme.outlinecolor2
end)
[Link] = [Link]("Frame",
[Link])
[Link] = "blackline"
[Link] = 7
[Link] = [Link]
+ [Link](4, 4)
[Link] = 0
[Link].BackgroundColor3 =
[Link]
[Link] =
[Link] + [Link](-2, -2)
[Link] = false
[Link]:Connect(function(theme)
[Link].BackgroundColor3 =
[Link]
end)
[Link] = [Link]("Frame",
[Link])
[Link] = "blackline"
[Link] = 7
[Link] =
[Link] + [Link](-2, -2)
[Link] = 0
[Link].BackgroundColor3 =
[Link].outlinecolor2
[Link] =
[Link] + [Link](-1, -1)
[Link] = false
[Link]:Connect(function(theme)
[Link].BackgroundColor3 =
theme.outlinecolor2
end)
[Link] =
[Link]("TextButton", [Link])
[Link] = 1
[Link] = 0
[Link] =
[Link](0, [Link] + 8)
[Link] = [Link](0, 0, 0,
0)
[Link] = 7
[Link] = ""
[Link] = false
[Link] = false
if [Link] and [Link] ~= "" then
[Link][[Link]] =
[Link] and { [Link] or [Link][1] or "" } or
([Link] or [Link][1] or "")
end
function dropdown:isSelected(item)
for i, v in pairs([Link]) do
if v == item then
return true
end
end
return false
end
function dropdown:GetOptions()
return [Link]
end
function dropdown:updateText(text)
if #text >= 27 then
text = text:sub(1, 25) .. ".."
end
[Link] = text
end
[Link] = [Link]("BindableEvent")
function dropdown:Set(value)
if type(value) == "table" then
[Link] = value
dropdown:updateText([Link](value,
", "))
pcall([Link], value)
else
dropdown:updateText(value)
[Link] = { value }
pcall([Link], value)
end
[Link]:Fire(value)
if [Link] and [Link] ~= "" then
[Link][[Link]] =
[Link] and [Link] or [Link][1]
end
end
function dropdown:Get()
return [Link] and [Link]
or [Link][1]
end
[Link] = { }
function dropdown:Add(v)
local Item = [Link]("TextButton",
[Link])
Item.BackgroundColor3 = [Link](40, 40,
40)
Item.TextColor3 = [Link](255, 255, 255)
[Link] = 0
[Link] = [Link](0, 0)
[Link] =
[Link]([Link] - 4, 20)
[Link] = 9
[Link] = v
[Link] = v
[Link] = false
[Link] = [Link]
[Link] = 15
[Link] = [Link]
[Link] = 1
[Link] =
[Link] + [Link](0, [Link].Y)
Item.MouseButton1Down:Connect(function()
if [Link] then
if dropdown:isSelected(v) then
for i2, v2 in
pairs([Link]) do
if v2 == v then
[Link]([Link], i2)
end
end
dropdown:Set([Link])
else
[Link]([Link],
v)
dropdown:Set([Link])
end
return
else
[Link] = 90
[Link] = false
[Link] = false
[Link] =
false
[Link]
= false
[Link]
= false
[Link]
= false
[Link] =
false
end
dropdown:Set(v)
return
end)
[Link]:Connect(function()
if [Link] and
dropdown:isSelected(v) or [Link][1] == v then
Item.BackgroundColor3 =
[Link](64, 64, 64)
Item.TextColor3 =
[Link]
[Link] = " " .. v
else
Item.BackgroundColor3 =
[Link](40, 40, 40)
Item.TextColor3 =
[Link](255, 255, 255)
[Link] = v
end
end)
[Link]([Link], v)
[Link] =
[Link]([Link], [Link](#[Link] *
[Link].Y, 20, 156) + 4)
[Link] =
[Link]([Link].X, (#[Link] *
[Link].Y) + 4)
[Link] =
[Link] + [Link](4, 4)
[Link] =
[Link] + [Link](2, 2)
[Link] =
[Link] + [Link](6, 6)
[Link] =
[Link]
end
function dropdown:Remove(value)
local item =
[Link]:FindFirstChild(value)
if item then
for i,v in pairs([Link]) do
if v == value then
[Link]([Link],
i)
end
end
[Link] =
[Link]([Link], [Link](#[Link] *
[Link].Y, 20, 156) + 4)
[Link] =
[Link]([Link].X, (#[Link] *
[Link].Y) + 4)
[Link] =
[Link] + [Link](2, 2)
[Link] =
[Link] + [Link](4, 4)
[Link] =
[Link] + [Link](6, 6)
[Link] =
[Link]
item:Remove()
end
end
for i,v in pairs([Link]) do
dropdown:Add(v)
end
if [Link] then
dropdown:Set([Link])
end
[Link] = true
[Link]
= false
[Link] = true
[Link] = true
[Link]
= true
[Link] =
true
[Link] =
true
[Link]
= true
[Link]
= true
end
else
tweenservice:Create([Link],
[Link](0.1, [Link], [Link]), { Rotation =
90 }):Play()
[Link] =
false
[Link] =
true
[Link] = false
[Link] = false
[Link] =
false
[Link] = false
[Link] = false
[Link] =
false
[Link] =
false
end
end
[Link].MouseButton1Down:Connect(MouseButton1Down)
[Link].MouseButton1Down:Connect(MouseButton1Down)
[Link]:Connect(function()
dropdown.BlackOutline2.BackgroundColor3 =
[Link]
end)
[Link]:Connect(function()
dropdown.BlackOutline2.BackgroundColor3 =
[Link].outlinecolor2
end)
sector:FixSize()
[Link]([Link], dropdown)
return dropdown
end
function sector:AddSeperator(text)
local seperator = { }
[Link] = text or ""
[Link] = [Link]("Frame",
[Link])
[Link] = "Line"
[Link] = 7
[Link].BackgroundColor3 = [Link](70,
70, 70)
[Link] = 0
[Link] =
[Link]([Link] - 26, 1)
[Link] = [Link](7, 5)
[Link] = [Link]("Frame",
[Link])
[Link] = "Outline"
[Link] = 6
[Link] = 0
[Link].BackgroundColor3 =
[Link].outlinecolor2
[Link] = [Link](-1, -1)
[Link] = [Link] -
[Link](-2, -2)
[Link]:Connect(function(theme)
[Link].BackgroundColor3 =
theme.outlinecolor2
end)
[Link] = [Link]("TextLabel",
[Link])
[Link] = "Label"
[Link] = 1
[Link] = [Link]
[Link] = [Link]
[Link] = 8
[Link] = [Link]
[Link].TextColor3 = [Link](255, 255,
255)
[Link] = [Link]
[Link] = 1
[Link] =
[Link]
[Link]:Connect(function(theme)
[Link] = [Link]
[Link] = [Link]
end)
local textSize =
textservice:GetTextSize([Link], [Link], [Link],
[Link](2000, 2000))
local textStart = [Link].X / 2 -
(textSize.X / 2)
[Link] = [Link]("Frame",
[Link])
[Link] = "LabelBack"
[Link] = 7
[Link] =
[Link](textSize.X + 12, 10)
[Link] = 0
[Link].BackgroundColor3 =
[Link](30, 30, 30)
[Link] = [Link](0,
textStart - 6, 0, 0)
[Link]:Connect(function(theme)
textSize =
textservice:GetTextSize([Link], [Link], [Link],
[Link](2000, 2000))
textStart = [Link].X / 2 -
(textSize.X / 2)
[Link] =
[Link](textSize.X + 12, 10)
[Link] = [Link](0,
textStart - 6, 0, 0)
end)
sector:FixSize()
return seperator
end
return sector
end
function tab:CreateConfigSystem(side)
local configSystem = { }
Config:Add(tostring(v):gsub([Link] .. "\\",
""):gsub(".txt", ""))
end
end
[Link] =
[Link]:AddButton("Create", function()
for i,v in
pairs(listfiles([Link])) do
Config:Remove(tostring(v):gsub([Link] .. "\\",
""):gsub(".txt", ""))
end
writefile([Link] .. "/" ..
ConfigName:Get() .. ".txt", httpservice:JSONEncode(config))
for i,v in
pairs(listfiles([Link])) do
if v:find(".txt") then
Config:Add(tostring(v):gsub([Link] .. "\\",
""):gsub(".txt", ""))
end
end
end
end)
[Link] = [Link]:AddButton("Save",
function()
local config = {}
if Config:Get() and Config:Get() ~= "" then
for i,v in pairs([Link]) do
if (v ~= nil and v ~= "") then
if (typeof(v) == "Color3") then
config[i] = { v.R, v.G, v.B }
elseif
(tostring(v):find("[Link]")) then
config[i] =
"[Link]." .. [Link]
elseif (typeof(v) == "table") then
config[i] = { v }
else
config[i] = v
end
end
end
writefile([Link] .. "/" ..
Config:Get() .. ".txt", httpservice:JSONEncode(config))
end
end)
[Link] = [Link]:AddButton("Load",
function()
local Success = pcall(readfile,
[Link] .. "/" .. Config:Get() .. ".txt")
if (Success) then
pcall(function()
local ReadConfig =
httpservice:JSONDecode(readfile([Link] .. "/" .. Config:Get() ..
".txt"))
local NewConfig = {}
[Link] = NewConfig
[Link] =
[Link]:AddButton("Delete", function()
for i,v in
pairs(listfiles([Link])) do
Config:Remove(tostring(v):gsub([Link] .. "\\",
""):gsub(".txt", ""))
end
for i,v in
pairs(listfiles([Link])) do
if v:find(".txt") then
Config:Add(tostring(v):gsub([Link] .. "\\",
""):gsub(".txt", ""))
end
end
end)
return configSystem
end
[Link][#[Link] + 1] = 220
--[Link][#[Link] + 1].space = 220
[Link] = { }
function list:AddPlayer(Player)
local player = { }
[Link]([Link], Player)
[Link] = [Link]([Link].X,
(#[Link] * 20))
[Link] = [Link]([Link].X,
[Link]([Link], 0, 205))
return player
end
function list:RemovePlayer(Player)
local p = [Link]:FindFirstChild(Player)
if p then
for i,v in pairs([Link]) do
if v == Player then
[Link]([Link], i)
end
end
p:Remove()
[Link] =
[Link]([Link].X, (#[Link] * 90))
end
end
game:GetService("Players").PlayerAdded:Connect(function(v)
list:AddPlayer(v)
end)
return list
end
]]--
[Link]([Link], tab)
return tab
end
return window
end
local Library = library
local Window = Library:CreateWindow("SL2 - made by joycemember on discord",
[Link](492, 598), [Link]) --you can change your UI keybind
local MainTab = Window:CreateTab("Main") --you can rename this tab to
whatever you want --you can also change the tabs code, for example "MainTab" can be
changed to "FunnyCoolTab" etc.
local Config = {
Enabled = SilentAimToggled,
TeamCheck = false,
HitPart = "Head",
Method = "Raycast",
FieldOfView = {
Enabled = true,
Radius = 120
}
}
local ExpectedArguments = {
FindPartOnRayWithIgnoreList = {
ArgCountRequired = 3,
Args = {
"Instance", "Ray", "table", "boolean", "boolean"
}
},
FindPartOnRayWithWhitelist = {
ArgCountRequired = 3,
Args = {
"Instance", "Ray", "table", "boolean"
}
},
FindPartOnRay = {
ArgCountRequired = 2,
Args = {
"Instance", "Ray", "Instance", "boolean", "boolean"
}
},
Raycast = {
ArgCountRequired = 3,
Args = {
"Instance", "Vector3", "Vector3", "RaycastParams"
}
}
}
local oldNamecall
oldNamecall = hookmetamethod(game, "__namecall", function(...)
local Method = getnamecallmethod()
local Arguments = {...}
local self = Arguments[1]
return oldNamecall(unpack(Arguments))
end
end
elseif Method == "FindPartOnRayWithWhitelist" and [Link] ==
Method then
if ValidateArguments(Arguments,
[Link]) then
local A_Ray = Arguments[2]
return oldNamecall(unpack(Arguments))
end
end
elseif (Method == "FindPartOnRay" or Method == "findPartOnRay") and
[Link]:lower() == Method:lower() then
if ValidateArguments(Arguments, [Link])
then
local A_Ray = Arguments[2]
return oldNamecall(unpack(Arguments))
end
end
elseif Method == "Raycast" and [Link] == Method and
SilentAimToggled then
if ValidateArguments(Arguments, [Link]) then
local A_Origin = Arguments[2]
return oldNamecall(unpack(Arguments))
end
end
end
end
return oldNamecall(...)
end)
[Link]:Connect(function(car)
if [Link] == [Link].."'s Car" then
[Link](2.5)
if AutocarHopIn then
[Link]:sit([Link]:WaitForChild("Humanoid"))
end
end
end)
[Link]:Connect(function(vehicle)
if [Link] == [Link].."'s Car" then
[Link](4)
if AutocarTeleport then
vehicle:MoveTo([Link]:WaitForChild("HumanoidRootPart").Position)
[Link](.1)
[Link]:sit([Link]:WaitForChild("Humanoid"))
end
end
end)
LocalPlayer:WaitForChild("PlayerGui").ChildAdded:Connect(function(v)
if [Link] == "Safe" then
[Link] = SlotsToggle
end
end)
local StaminaToggle
MainSection:AddToggle("Admin-Whitelist", false, function(bool)
AdminWhitelistToggled = bool
end)
MainSection:AddToggle("Silent-Aim", false, function(bool)
SilentAimToggled = bool
end)
MainSection:AddToggle("Infinite-Stamina", false, function(bool)
local Stamina = [Link]
StaminaToggle = bool
if StaminaToggle then
[Link] = 999999999999
else
[Link] = 100
end
end)
local CameraBobDisableLoop
MainSection:AddToggle("No-Camera-Bob", false, function(bool)
CameraBobDisableLoop = bool
while CameraBobDisableLoop do [Link](1)
[Link]:WaitForChild("Camera_Bob").Disabled = bool
end
end)
local Run
Run = [Link]
[Link]:Connect(function(args)
if [Link] == "Run" and args:IsA("LocalScript") then
Run = args
end
end)
local SkitOnOrOff
MainSection:AddToggle("Infinite-Skittles", false, function(bool)
SkitOnOrOff = bool
[Link] = bool
[Link]:GetPropertyChangedSignal("Value"):Connect(function()
[Link] = SkitOnOrOff
end)
end)
local HoodNo
MainSection:AddToggle("No-Hood-Pull", false, function(bool)
HoodNo = bool
while HoodNo do [Link](2)
[Link]:WaitForChild("Hood").Disabled = HoodNo
end
end)
local BigHeadToggle
MainSection:AddToggle("Big-Heads", false, function(bool)
BigHeadToggle = bool
while BigHeadToggle do [Link](0.3)
pcall(function()
for i,v in pairs([Link]:GetChildren()) do
if v~=LocalPlayer then
local Head = [Link]:FindFirstChild("Head")
if Head then
if BigHeadToggle then
[Link] = [Link](6,6,6)
[Link] = false
[Link] = true
[Link] = "Plastic"
[Link] = 0.7
elseif BigHeadToggle == false then
[Link] =
[Link](1.87999999523162284, 0.9399999976158142, 0.9399999976158142)
[Link] = false
[Link] = true
[Link] = "Plastic"
[Link] = 0
end
end
end
end
end)
end
end)
local DisableGunScript
MainSection:AddToggle("Disable-Gun-Script", false, function(bool)
DisableGunScript = bool
if DisableGunScript then
[Link] = false
else
[Link] = true
end
end)
local PickupLoop
MainSection:AddToggle("Auto-Pick-Up", false, function(bool)
PickupLoop = bool
while PickupLoop do [Link](.05)
for i,v in next, [Link]:GetChildren() do
if v:IsA("Tool") and [Link] ~="Crate" then
[Link]:FindFirstChild("Humanoid"):EquipTool(v)
end
end
end
end)
GunSection:AddButton("Infinite-Ammo", function()
--[[local gunModule =
require([Link]:FindFirstChildOfClass("Tool").[Link]
l)
[Link] = 0
[Link] = 0]]
--------------------------
GunStats = [Link]:FindFirstChildOfClass("Tool").Stats
--[Link] = -1
[Link] = [Link]
[Link]:GetPropertyChangedSignal("Value"):Connect(function()
[Link] = [Link]
end)
--[Link] = -1
--[Link] = "Auto"
--[Link]:Destroy()
end)
GunSection:AddButton("No-Recoil", function()
--[[local gunModule =
require([Link]:FindFirstChildOfClass("Tool").[Link]
l)
[Link] = 0
[Link] = 0]]
--------------------------
GunStats = [Link]:FindFirstChildOfClass("Tool").Stats
[Link] = -1
--[Link] = [Link]
--[Link] = -1
--[Link] = "Auto"
--[Link]:Destroy()
end)
GunSection:AddButton("No-Spread", function()
local gunModule =
require([Link]:FindFirstChildOfClass("Tool").[Link]
l)
[Link] = 0
[Link] = 0
--------------------------
--GunStats = [Link]:FindFirstChildOfClass("Tool").Stats
--[Link] = -1
--[Link] = [Link]
--[Link] = -1
--[Link] = "Auto"
--[Link]:Destroy()
end)
GunSection:AddButton("No-Rifle", function()
--[[local gunModule =
require([Link]:FindFirstChildOfClass("Tool").[Link]
l)
[Link] = 0
[Link] = 0]]
--------------------------
GunStats = [Link]:FindFirstChildOfClass("Tool").Stats
--[Link] = -1
--[Link] = [Link]
--[Link] = -1
--[Link] = "Auto"
[Link]:Destroy()
end)
GunSection:AddButton("All-Mods", function()
local gunModule =
require([Link]:FindFirstChildOfClass("Tool").[Link]
l)
[Link] = 0
[Link] = 0
--------------------------
GunStats = [Link]:FindFirstChildOfClass("Tool").Stats
[Link] = -1
[Link] = [Link]
[Link]:GetPropertyChangedSignal("Value"):Connect(function()
[Link] = [Link]
end)
[Link] = -1
[Link] = "Auto"
[Link]:Destroy()
end)
local SafeGunsWhenDeadToggle
SafeSection:AddToggle("Safe-Guns-When-Dead", false, function(bool)
SafeGunsWhenDeadToggle = bool
while SafeGunsWhenDeadToggle do [Link](.5)
for i,v in pairs([Link]:GetChildren()) do
if [Link] ~= "Skittles" and [Link] ~= "Mask" and [Link] ~=
"Bally" and [Link] ~= "MXHelmet" and [Link] ~= "Bandana" and [Link] ~= "AK" and
[Link] ~= "Fish N Chips" and [Link] ~= "Airpods" and [Link] ~= "Phone" and [Link]
~= "IllegalCash" and [Link] ~= "Fist" and [Link] ~= "Shake" and [Link] ~= "WALL"
and [Link] ~= "Hood" and [Link] ~= "FirearmLocal" and [Link] ~= "BypassMe" and
[Link] ~= "Noodles" and [Link] ~= "Pizza" and [Link] ~= "Fanta" and [Link] ~=
"Burger" and [Link] ~= "Toast" and
[Link]:WaitForChild("Humanoid").Health < 1 then
if SafeGunsWhenDeadToggle then
[Link]:FireServer("Movetosafe",[Link],9999999999,LocalPlaye
[Link]) else
end else
end
end
end
end)
SafeSection:AddButton("Check-Safe", function()
for i,v in next, [Link]:GetChildren() do
warn([Link],v:FindFirstChildOfClass("IntValue").Value)
end
end)
SafeSection:AddButton("Safe-Operation", function()
local SafeRemote = [Link]
if Take then
SafeRemote:FireServer("Takeout",tostring(Item),tonumber(Clips),tonumber(UID))
else
SafeRemote:FireServer("Movetosafe",tostring(Item),tonumber(Clips),tonumber(UID))
end
end)
game:GetService("ReplicatedStorage").Send:FireServer(10000,PlrTSendMoneyTo)
end
end)
MiscSection:AddButton("Backflip-Script", function()
--[[ Info ]]--
local ca = game:GetService("ContextActionService")
local zeezy = game:GetService("Players").LocalPlayer
local h = 0.0174533
local antigrav
function zeezyFrontflip(act,inp,obj)
if inp == [Link] then
[Link] = 50
[Link]:ChangeState("Jumping")
wait()
[Link] = true
for i = 1,360 do
delay(i/720,function()
[Link] = true
[Link]:WaitForChild("HumanoidRootPart").CFrame =
[Link]:WaitForChild("HumanoidRootPart").CFrame * [Link](-h,0,0)
end)
end
wait(0.55)
[Link] = false
[Link] = 0
end
end
function zeezyBackflip(act,inp,obj)
if inp == [Link] then
[Link] = 50
[Link]:ChangeState("Jumping")
wait()
[Link] = true
for i = 1,360 do
delay(i/720,function()
[Link] = true
[Link]:WaitForChild("HumanoidRootPart").CFrame =
[Link]:WaitForChild("HumanoidRootPart").CFrame * [Link](h,0,0)
end)
end
wait(0.55)
[Link] = false
[Link] = 0
end
end
function zeezyAirjump(act,inp,obj)
if inp == [Link] then
[Link]:FindFirstChildOfClass'Humanoid':ChangeState("Seated")
wait()
[Link]:FindFirstChildOfClass'Humanoid':ChangeState("Jumping")
end
end
ca:BindAction("zeezyFrontflip",zeezyFrontflip,false,FrontflipKey)
ca:BindAction("zeezyBackflip",zeezyBackflip,false,BackflipKey)
ca:BindAction("zeezyAirjump",zeezyAirjump,false,AirjumpKey)
end)
MiscSection:AddButton("Give-Radio", function()
for i,v in next, [Link]:GetDescendants() do
if [Link] == "Radio" and v:IsA("Tool") then
v:Clone().Parent = [Link]
break
end
end
end)
MiscSection:AddButton("Give-Frisk", function()
for i,v in next, [Link]:GetDescendants() do
if [Link] == "Frisk" and v:IsA("Tool") then
v:Clone().Parent = [Link]
break
end
end
end)
MiscSection:AddButton("Teleport-Car",function()
game:GetService("Workspace")[[Link].."'s
Car"]:MoveTo([Link]:WaitForChild("HumanoidRootPart").Position)
[Link](.3)
game:GetService("Workspace")[[Link].."'s
Car"].DriveSeat:sit([Link])
end)
MiscSection:AddButton("Sit-In-Car",function()
game:GetService("Workspace")[[Link].."'s
Car"].DriveSeat:sit([Link])
end)
MiscSection:AddButton("Ghost-drive-car",function()
game:GetService("Workspace")[[Link].."'s Car"]["A-Chassis
Tune"]:Clone().Parent = [Link]
end)
CosmeticsSection:AddButton("Hunnid-Chain", function()
for i=1, 2 do
[Link] = [Link]
[Link] = [Link]
[Link]:Clone().Parent =
[Link]
end
end)
CosmeticsSection:AddButton("Cross-Chain", function()
for i=1, 2 do
[Link] = [Link]
[Link] = [Link]
[Link]:Clone().Parent =
[Link]
end
end)
local ODONELLPLAYER
CosmeticsSection:AddTextbox("Drive-Players-Car", nil, function(State)
for i,v in pairs([Link]:GetPlayers()) do
if [Link]:lower():find(State:lower()) then
ODONELLPLAYER = v
end
end
game:GetService("Workspace")[[Link].."'s
Car"]:MoveTo([Link]:WaitForChild("HumanoidRootPart").Position)
[Link](.3)
game:GetService("Workspace")[[Link].."'s
Car"].DriveSeat:sit([Link])
end)
end
SL2()