HEHEJ

Untitled

Mar 19th, 2020
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.16 KB | None | 0 0
  1. -- Join the discord to be the first to know of updates! discord.gg/7Cb8bS2
  2. local function randomName()
  3. local data = ""
  4. for i=0,20,1 do
  5. data = data .. tostring(string.char(math.ceil(math.random() * 254)))
  6. end
  7. return data
  8. end
  9.  
  10. local uilib = Instance.new("ScreenGui")
  11.  
  12. uilib.Name = randomName()
  13. uilib.Parent = game.CoreGui
  14. uilib.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  15.  
  16. local Library = {}
  17. local TweenService = game:GetService("TweenService")
  18. local uis = game:GetService("UserInputService")
  19. local tabcount = 0
  20. local rainbow = 0
  21. _G.breatherate = 0.005
  22. local color
  23. local rainbows = {}
  24. local buttoncount = {}
  25.  
  26.  
  27. function Library:CreateTab(name)
  28.  
  29. tabcount = tabcount+1
  30. buttoncount[tabcount] = 0
  31.  
  32. local topbar = Instance.new("Frame")
  33. topbar.Name = tostring(tabcount)
  34. topbar.Parent = uilib
  35. topbar.Active = true
  36. topbar.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  37. topbar.BorderSizePixel = 0
  38. topbar.Position = UDim2.new(0, (tabcount)*13+(tabcount-1)*200, 0.0128041022, 0),
  39. topbar.Size = UDim2.new(0, 200, 0, 30)
  40.  
  41.  
  42. local container = Instance.new("Frame")
  43. container.Name = "container"
  44. container.Parent = topbar
  45. container.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  46. container.BorderSizePixel = 0
  47. container.Position = UDim2.new(0, 2, 1, 0)
  48. container.Size = UDim2.new(1, -4, 0, 300)
  49.  
  50. local UIListLayout = Instance.new("UIListLayout")
  51. UIListLayout.Parent = container
  52. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  53.  
  54. local bar1 = Instance.new("Frame")
  55. bar1.Name = "bar1"
  56. bar1.Parent = topbar
  57. bar1.BackgroundColor3 = Color3.fromRGB(211, 47, 47)
  58. bar1.BorderSizePixel = 0
  59. bar1.Position = UDim2.new(0, 0, 1, -3)
  60. bar1.Size = UDim2.new(1, 0, 0, 3)
  61.  
  62. local title = Instance.new("TextLabel")
  63. title.Name = "title"
  64. title.Parent = topbar
  65. title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  66. title.BackgroundTransparency = 1.000
  67. title.BorderSizePixel = 0
  68. title.Position = UDim2.new(0, 13, 0, 0)
  69. title.Size = UDim2.new(1.04999995, -40, 1, 0)
  70. title.Font = Enum.Font.SourceSans
  71. title.Text = name
  72. title.TextColor3 = Color3.fromRGB(255, 255, 255)
  73. title.TextSize = 16.000
  74. title.TextXAlignment = Enum.TextXAlignment.Left
  75. end
  76.  
  77.  
  78.  
  79.  
  80.  
  81. return Library;
Add Comment
Please, Sign In to add comment