Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ScreenGui = Instance.new("ScreenGui")
- syn.protect_gui(ScreenGui)
- local Frame = Instance.new("Frame")
- local ScrollingFrame = Instance.new("ScrollingFrame")
- local UIListLayout = Instance.new("UIListLayout")
- ScreenGui.Parent = game.CoreGui
- ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Frame.Parent = ScreenGui
- Frame.BackgroundColor3 = Color3.fromRGB(63, 63, 63)
- Frame.Position = UDim2.new(0.5, -325, 0.5, -250)
- Frame.Size = UDim2.new(0, 650, 0, 500)
- Frame.Active = true
- Frame.Draggable = true
- Frame.ZIndex = 4
- ScrollingFrame.Parent = Frame
- ScrollingFrame.Active = true
- ScrollingFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ScrollingFrame.BackgroundTransparency = 1.000
- ScrollingFrame.Size = UDim2.new(0, 150, 1, 0)
- ScrollingFrame.ZIndex = 4
- UIListLayout.Parent = ScrollingFrame
- UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
- local lib = {}
- function lib:AddTab(Text)
- local Tab1 = Instance.new("TextButton")
- local Tab1_2 = Instance.new("Frame")
- local UIGridLayout = Instance.new("UIGridLayout")
- Tab1.Name = "Tab1"
- Tab1.Parent = ScrollingFrame
- Tab1.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Tab1.BackgroundTransparency = 0.950
- Tab1.BorderSizePixel = 0
- Tab1.Size = UDim2.new(0, 150, 0, 45)
- Tab1.Font = Enum.Font.SourceSans
- Tab1.Text = Text
- Tab1.TextColor3 = Color3.fromRGB(255, 255, 255)
- Tab1.TextSize = 25.000
- Tab1.TextWrapped = true
- Tab1.MouseButton1Down:Connect(function()
- Tab1_2.Visible = true
- for i,v in pairs(Frame:GetChildren()) do
- if v ~= Tab1_2 and v.Name ~= "ScrollingFrame" then
- v.Visible = false
- end
- end
- end)
- Tab1_2.Name = "Tab1"
- Tab1_2.Parent = Frame
- Tab1_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Tab1_2.BackgroundTransparency = 2.000
- Tab1_2.Position = UDim2.new(0, 150, 0, 0)
- Tab1_2.Size = UDim2.new(1, -150, 1, 0)
- Tab1_2.Visible = false
- UIGridLayout.Parent = Tab1_2
- UIGridLayout.SortOrder = Enum.SortOrder.LayoutOrder
- UIGridLayout.CellPadding = UDim2.new(0, 20, 0, 20)
- UIGridLayout.CellSize = UDim2.new(0, 100, 0, 50)
- local lib2 = {}
- function lib2:Button(Text1, Func)
- local TextButton = Instance.new("TextButton")
- TextButton.Parent = Tab1_2
- TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextButton.BackgroundTransparency = 0.900
- TextButton.Position = UDim2.new(0, 20, 0, 20)
- TextButton.Size = UDim2.new(0, 200, 0, 50)
- TextButton.Font = Enum.Font.SourceSans
- TextButton.TextColor3 = Color3.fromRGB(255, 243, 240)
- TextButton.TextSize = 30.000
- TextButton.Text = Text1
- TextButton.MouseButton1Down:Connect(Func)
- TextButton.ZIndex = 4
- end
- return lib2
- end
- return lib
Advertisement
Add Comment
Please, Sign In to add comment