Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Join the discord to be the first to know of updates! discord.gg/7Cb8bS2
- function randomName()
- local data = ""
- for i=0,20,1 do
- data = data .. tostring(string.char(math.ceil(math.random() * 254)))
- end
- return data
- end
- local uilib = Instance.new("ScreenGui")
- uilib.Name = randomName()
- uilib.Parent = game:GetService("CoreGui")
- uilib.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- local library = {}
- local TweenService = game:GetService("TweenService")
- local uis = game:GetService("UserInputService")
- local tabcount = 0
- local rainbow = 0
- _G.breatherate = 0.005
- local color
- local rainbows = {}
- local buttoncount = {}
- function library:CreateTab(name, rainbow123, color123)
- tabcount = tabcount+1
- buttoncount[tabcount] = 0
- local topbar = Instance.new("Frame")
- local container = Instance.new("Frame")
- local UIListLayout = Instance.new("UIListLayout")
- local bar1 = Instance.new("Frame")
- local title = Instance.new("TextLabel")
- topbar.Name = "topbar"
- topbar.Parent = uilib
- topbar.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
- topbar.BorderSizePixel = 0
- topbar.Position = UDim2.new(0, (tabcount)*13+(tabcount-1)*200, 0.0128041022, 0)
- topbar.Size = UDim2.new(0, 200, 0, 30)
- topbar.Active = true
- topbar.Selectable = true
- topbar.Draggable = true
- container.Name = "container"
- container.Parent = topbar
- container.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
- container.BackgroundTransparency = 1.000
- container.BorderSizePixel = 0
- container.Position = UDim2.new(0, 2, 1, 0)
- container.Size = UDim2.new(1, -4, 0, 300)
- UIListLayout.Parent = container
- UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
- bar1.Name = "bar1"
- bar1.Parent = topbar
- bar1.BorderSizePixel = 0
- bar1.Position = UDim2.new(0, 0, 1, -3)
- bar1.Size = UDim2.new(1, 0, 0, 3)
- title.Name = "title"
- title.Parent = topbar
- title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- title.BackgroundTransparency = 1.000
- title.BorderSizePixel = 0
- title.Position = UDim2.new(0, 13, 0, 0)
- title.Size = UDim2.new(1.04999995, -40, 1, 0)
- title.Font = Enum.Font.SourceSans
- title.Text = name
- title.TextColor3 = Color3.fromRGB(255, 255, 255)
- title.TextSize = 16.000
- title.TextXAlignment = Enum.TextXAlignment.Left
- game:GetService("RunService").RenderStepped:Connect(function()
- if rainbow123 == true then
- local r = (math.sin(workspace.DistributedGameTime/2)/2)+0.5
- local g = (math.sin(workspace.DistributedGameTime)/2)+0.5
- local b = (math.sin(workspace.DistributedGameTime*1.5)/2)+0.5
- local color = Color3.new(r, g, b)
- bar1.BackgroundColor3 = color
- elseif rainbow123 == false then
- bar1.BackgroundColor3 = color123
- end
- end)
- local GamerLibrary = {}
- function GamerLibrary:CreateLabel(name)
- local label = Instance.new("TextLabel")
- label.Name = "label"
- label.Parent = container
- label.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
- label.BorderSizePixel = 0
- label.Position = UDim2.new(0.413265318, 0, 0.0166666675, 0)
- label.Size = UDim2.new(1, 0, 0, 25)
- label.Font = Enum.Font.SourceSans
- label.TextColor3 = Color3.fromRGB(255, 255, 255)
- label.TextSize = 16.000
- label.Text = name
- end
- function GamerLibrary:CreateButton(name,func)
- local button = Instance.new("TextButton")
- button.Name = "button"
- button.Parent = container
- button.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
- button.BorderColor3 = Color3.fromRGB(0, 0, 0)
- button.BorderSizePixel = 0
- button.Position = UDim2.new(0, 0, 0.446533352, 0)
- button.Size = UDim2.new(1, 0, 0, 25)
- button.Font = Enum.Font.SourceSans
- button.TextColor3 = Color3.fromRGB(255, 255, 255)
- button.TextSize = 16.000
- button.Text = name
- button.MouseButton1Click:Connect(func);
- end
- function GamerLibrary:CreateDivider(name)
- local divider = Instance.new("TextLabel")
- divider.Name = "divider"
- divider.Parent = container
- divider.BackgroundColor3 = Color3.fromRGB(21, 21, 21)
- divider.BorderColor3 = Color3.fromRGB(255, 255, 255)
- divider.BorderSizePixel = 0
- divider.Position = UDim2.new(0, 0, 0.356666654, 0)
- divider.Size = UDim2.new(1, 0, -0.0201333109, 25)
- divider.Font = Enum.Font.SourceSans
- divider.Text = name
- divider.TextColor3 = Color3.fromRGB(255, 255, 255)
- divider.TextSize = 16.000
- end
- function GamerLibrary:CreateToggle(name,func)
- local toggletext = Instance.new("TextLabel")
- local togglebutton = Instance.new("TextButton")
- toggletext.Name = "toggletext"
- toggletext.Parent = container
- toggletext.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
- toggletext.BorderSizePixel = 0
- toggletext.Size = UDim2.new(1, 0, 0, 25)
- toggletext.Font = Enum.Font.SourceSans
- toggletext.Text = " " .. name
- toggletext.TextColor3 = Color3.fromRGB(255, 255, 255)
- toggletext.TextSize = 16.000
- toggletext.TextXAlignment = Enum.TextXAlignment.Left
- togglebutton.Name = "togglebutton"
- togglebutton.Parent = toggletext
- togglebutton.BackgroundColor3 = Color3.fromRGB(43, 43, 43)
- togglebutton.BorderColor3 = Color3.fromRGB(71, 71, 71)
- togglebutton.Position = UDim2.new(0.820691466, 0, 0.100000001, 0)
- togglebutton.Size = UDim2.new(0.102777764, 0, -0.219999999, 22)
- togglebutton.Font = Enum.Font.SourceSans
- togglebutton.Text = "X"
- togglebutton.TextColor3 = Color3.fromRGB(255, 255, 255)
- togglebutton.TextSize = 16.000
- togglebutton.MouseButton1Click:Connect(function()
- if togglebutton.Text == "X" then
- func(true)
- togglebutton.Text = "✓"
- elseif togglebutton.Text == "✓" then
- togglebutton.Text = "X"
- func(false)
- end
- end)
- end
- return GamerLibrary;
- end
- return library;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement