Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ScreenGui = Instance.new("ScreenGui")
- local invisible = Instance.new("Frame")
- local openbutton = Instance.new("TextButton")
- local dropdown = Instance.new("Frame")
- local ScrollingFrame = Instance.new("ScrollingFrame")
- local UIListLayout = Instance.new("UIListLayout")
- local bar = Instance.new("Frame")
- local click = Instance.new("TextButton")
- ScreenGui.Parent = game.CoreGui
- ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- invisible.Name = "invisible"
- invisible.Parent = ScreenGui
- invisible.BackgroundColor3 = Color3.new(0, 0, 0)
- invisible.BackgroundTransparency = 1
- invisible.BorderSizePixel = 0
- invisible.Position = UDim2.new(0.00899999961, 0, 0.0178571437, 0)
- invisible.Size = UDim2.new(0, 214, 0, 297)
- openbutton.Name = "openbutton"
- openbutton.Parent = invisible
- openbutton.BackgroundColor3 = Color3.new(0.176471, 0.176471, 0.176471)
- openbutton.BorderSizePixel = 0
- openbutton.Position = UDim2.new(0.0323049799, 0, 0.0303030312, 0)
- openbutton.Size = UDim2.new(0, 199, 0, 32)
- openbutton.Font = Enum.Font.SourceSansLight
- openbutton.Text = "Placeholder"
- openbutton.TextColor3 = Color3.new(0.898039, 0.898039, 0.898039)
- openbutton.TextSize = 23
- openbutton.TextStrokeTransparency = 0.85000002384186
- openbutton.TextWrapped = true
- dropdown.Name = "dropdown"
- dropdown.Parent = openbutton
- dropdown.BackgroundColor3 = Color3.new(0.176471, 0.176471, 0.176471)
- dropdown.BorderSizePixel = 0
- dropdown.Position = UDim2.new(0, 0, 1.25, 0)
- dropdown.Size = UDim2.new(0, 199, 0, 0)
- dropdown.ZIndex = 2000
- ScrollingFrame.Parent = dropdown
- ScrollingFrame.BackgroundColor3 = Color3.new(1, 1, 1)
- ScrollingFrame.BackgroundTransparency = 1
- ScrollingFrame.BorderSizePixel = 0
- ScrollingFrame.Position = UDim2.new(0, 0, 0.079497911, 0)
- ScrollingFrame.Size = UDim2.new(0, 199, 0, 0)
- ScrollingFrame.CanvasSize = UDim2.new(0, 0, 0.899999976, 0)
- ScrollingFrame.ScrollBarThickness = 1
- UIListLayout.Parent = ScrollingFrame
- UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
- UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
- UIListLayout.Padding = UDim.new(0, 2)
- bar.Name = "bar"
- bar.Parent = dropdown
- bar.BackgroundColor3 = Color3.new(0.898039, 0.898039, 0.898039)
- bar.BorderSizePixel = 0
- bar.Position = UDim2.new(0.0653266311, 0, 0.0460251048, 0)
- bar.Size = UDim2.new(0, 178, 0, 1)
- click.Name = "click"
- click.Parent = ScreenGui
- click.BackgroundColor3 = Color3.new(0.14902, 0.14902, 0.14902)
- click.BorderSizePixel = 0
- click.Position = UDim2.new(0.0904522613, 0, 0.121338911, 0)
- click.Size = UDim2.new(0, 163, 0, 32)
- click.Visible = false
- click.Font = Enum.Font.SourceSansLight
- click.Text = "Placeholder"
- click.TextColor3 = Color3.new(0.898039, 0.898039, 0.898039)
- click.TextSize = 19
- click.TextStrokeTransparency = 0.85000002384186
- function SCRIPT_BRSI72_FAKESCRIPT() -- ScrollingFrame.rainbow
- local script = Instance.new('LocalScript')
- script.Parent = ScrollingFrame
- local color = script.Parent
- local speed = 10
- while true do
- for i = 0,1,0.001*speed do
- color.ScrollBarImageColor3 = Color3.fromHSV(i,1,1)
- wait()
- end
- end
- end
- coroutine.resume(coroutine.create(SCRIPT_BRSI72_FAKESCRIPT))
- function SCRIPT_LKZC76_FAKESCRIPT() -- bar.rainbow
- local script = Instance.new('LocalScript')
- script.Parent = bar
- local color = script.Parent
- local speed = 10
- while true do
- for i = 0,1,0.001*speed do
- color.BackgroundColor3 = Color3.fromHSV(i,0.85,0.85)
- wait()
- end
- end
- end
- coroutine.resume(coroutine.create(SCRIPT_LKZC76_FAKESCRIPT))
- function SCRIPT_HMZA79_FAKESCRIPT() -- dropdown.rainbow
- local script = Instance.new('LocalScript')
- script.Parent = dropdown
- local color = script.Parent
- local speed = 10
- while true do
- for i = 0,1,0.001*speed do
- color.BackgroundColor3 = Color3.fromHSV(i,0.15,0.15)
- wait()
- end
- end
- end
- coroutine.resume(coroutine.create(SCRIPT_HMZA79_FAKESCRIPT))
- function SCRIPT_ZXCL67_FAKESCRIPT() -- openbutton.rainbow
- local script = Instance.new('LocalScript')
- script.Parent = openbutton
- local color = script.Parent
- local speed = 10
- while true do
- for i = 0,1,0.001*speed do
- color.BackgroundColor3 = Color3.fromHSV(i,0.15,0.15)
- color.TextColor3 = Color3.fromHSV(i,0.7,0.7)
- wait()
- end
- end
- end
- coroutine.resume(coroutine.create(SCRIPT_ZXCL67_FAKESCRIPT))
- function SCRIPT_FGXG65_FAKESCRIPT() -- ScreenGui.LocalScript
- local script = Instance.new('LocalScript')
- script.Parent = ScreenGui
- local Clone = script.Parent.invisible:Clone()
- script.Parent.invisible:Destroy()
- local Lib = {}
- local Open = false
- function Lib:NewDropdown(Title)
- wait(0.05)
- local Dropdown = Clone:Clone()
- local Existing = 1
- for i,v in pairs(script.Parent:GetChildren()) do
- Existing = Existing + 1
- end
- Dropdown.Name = Title
- Dropdown.openbutton.Text = tostring(Title) or "Placeholder"
- Dropdown.Position = UDim2.new(0, 0, -0.15, 35 * Existing)
- Dropdown.Parent = script.Parent
- Dropdown.openbutton.dropdown.Visible = false
- Dropdown.ZIndex = 200 - Existing
- Dropdown.openbutton.MouseButton1Click:connect(function()
- if Open == false then
- Open = true
- coroutine.resume(coroutine.create(function()
- Dropdown.openbutton.dropdown.Visible = true
- end))
- Dropdown.openbutton.dropdown:TweenSize(UDim2.new(0, 199,0, 220),nil,nil,0.8)
- Dropdown.openbutton.dropdown.ScrollingFrame:TweenSize(UDim2.new(0, 199,0, 200),nil,nil,0.8)
- elseif Open == true then
- Open = false
- coroutine.resume(coroutine.create(function()
- wait(0.8)
- Dropdown.openbutton.dropdown.Visible = false
- end))
- Dropdown.openbutton.dropdown:TweenSize(UDim2.new(0, 199,0, 0),nil,nil,0.8)
- Dropdown.openbutton.dropdown.ScrollingFrame:TweenSize(UDim2.new(0, 199,0, 0),nil,nil,0.8)
- end
- end)
- return Dropdown
- end
- local LatestButton
- function Lib:NewButton(Text, Parent, Function)
- wait(0.05)
- local Button = script.Parent.click:Clone()
- Button.Name = Text
- if Parent.openbutton.dropdown.ScrollingFrame:FindFirstChild("click") ~= nil then
- Parent.openbutton.dropdown.ScrollingFrame:FindFirstChild("click"):Destroy()
- end
- local Existing = 1
- for i,v in pairs(Parent:GetChildren()) do
- if v:IsA("TextButton") then
- Existing = Existing + 1
- end
- end
- Button.Visible = true
- Button.Parent = Parent.openbutton.dropdown.ScrollingFrame
- Parent.openbutton.dropdown.ScrollingFrame.CanvasSize = UDim2.new(0,0,Existing * 90,0)
- Button.Text = Text
- Button.BackgroundTransparency = 0
- Button.MouseButton1Click:connect(function()
- if typeof(Function) ~= "function" then
- warn(Function.." is not a function!")
- else
- Function()
- end
- end)
- return Button
- end
- function Lib:NewToggleButton(Text, Parent, Function)
- wait(0.05)
- local Button = script.Parent.click:Clone()
- Button.Name = Text
- if Parent.openbutton.dropdown.ScrollingFrame:FindFirstChild("click") ~= nil then
- Parent.openbutton.dropdown.ScrollingFrame:FindFirstChild("click"):Destroy()
- end
- local Existing = 1
- local On = false
- for i,v in pairs(Parent:GetChildren()) do
- if v:IsA("TextButton") then
- Existing = Existing + 1
- end
- end
- Button.Visible = true
- Button.Parent = Parent.openbutton.dropdown.ScrollingFrame
- Parent.openbutton.dropdown.ScrollingFrame.CanvasSize = UDim2.new(0,0,Existing * 90,0)
- Button.Text = Text.." | Off"
- Button.BackgroundTransparency = 0
- Button.MouseButton1Click:connect(function()
- if On == false then
- Button.Text = Text.." | On"
- On = true
- elseif On == true then
- On = false
- Button.Text = Text.." | Off"
- end
- game:GetService("RunService").RenderStepped:connect(function()
- if On == true then
- if typeof(Function) ~= "function" then
- warn(Function.." is not a function!")
- else
- Function()
- end
- end
- end)
- end)
- return Button
- end
- local Example = Lib:NewDropdown("Example")
- Lib:NewToggleButton("Warn", Example, function()
- warn("Warning")
- end)
- Lib:NewToggleButton("Print", Example, function()
- print("Print")
- end)
- Lib:NewButton("Warn", Example, function()
- warn("Warning")
- end)
- Lib:NewButton("Print", Example, function()
- print("Print")
- end)
- end
- coroutine.resume(coroutine.create(SCRIPT_FGXG65_FAKESCRIPT))
- function SCRIPT_QJBC89_FAKESCRIPT() -- click.rainbow
- local script = Instance.new('LocalScript')
- script.Parent = click
- local color = script.Parent
- local speed = 10
- while true do
- for i = 0,1,0.001*speed do
- color.BackgroundColor3 = Color3.fromHSV(i,0.25,0.25)
- color.TextColor3 = Color3.fromHSV(i,0.7,0.7)
- wait()
- end
- end
- end
- coroutine.resume(coroutine.create(SCRIPT_QJBC89_FAKESCRIPT))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement