Advertisement
DarionBoy

Untitled

May 20th, 2018
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.42 KB | None | 0 0
  1. --[[
  2. Thank you for using PasteHub!
  3. If in need of help you can always ask me via Discord Chebureki#5214
  4.  
  5. Explanation:
  6. In order to add a new tab add to categories
  7. ["Name Here"] = {...}
  8. Inside the dots come the scripts. Add them like this:
  9. {"Name Here",'content of the script'}
  10. Put the script in as a string, since loadstring is being used!
  11. Alternatively you can give it a function, but dont give it any parameters!
  12. Example:
  13. --]]
  14. function aTestFunction()
  15. if 1+1==2 then
  16. print("1+1 does equal 2")
  17. end
  18. end
  19. --[[
  20. Now all you have to do is put in in like this: {"YourName",aTestFunction}
  21. You can use any function!
  22. Now enjoy!
  23. --]]
  24.  
  25.  
  26. --//Settings
  27. Hub_Name = "coolkidshub"
  28. Hub_UseLogo = true
  29. Hub_Logo = "rbxassetid://52594540"
  30. Hub_InfoPageText = "coolkidshub made by Darion#8863, GUI is made by Chebureki#5214"
  31.  
  32. --If you want to edit things like color,size,etc. you will have to edit the gui down below!
  33. --//
  34.  
  35.  
  36. categories = {
  37. ["Games"]= {
  38. {"NRPG Fast Shoot",game:HttpGet(('https://pastebin.com/raw/zXCvQxRF'),true)},
  39. {"Cool1",aTestFunction},
  40. {"Cool2",'print"PlaceHolder Please Delete Me!"'},
  41. {"Cool3",'print"PlaceHolder Please Delete Me!"'}
  42. },
  43.  
  44. ["Example2"]= {
  45. {"Gucci",'print"PlaceHolder Please Delete Me!"'},
  46. {"Guccasdasd",'print"PlaceHolder Please Delete Me!"'},
  47. {"02",'print"PlaceHolder Please Delete Me!"'},
  48. {"Yallah",'print"PlaceHolder Please Delete Me!"'}
  49. }
  50. }
  51.  
  52.  
  53. local ScreenGui = Instance.new("ScreenGui")
  54. local Header = Instance.new("Frame")
  55. local Title = Instance.new("TextLabel")
  56. local Close = Instance.new("TextButton")
  57. local Minimize = Instance.new("TextButton")
  58. local Body = Instance.new("Frame")
  59. local bar = Instance.new("ScrollingFrame")
  60. local TextButton = Instance.new("TextButton")
  61. local InfoPage = Instance.new("Frame")
  62. local TextLabel = Instance.new("TextLabel")
  63. local TextButton_2 = Instance.new("TextButton")
  64. local Logo = Instance.new("ImageLabel")
  65.  
  66.  
  67. ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui
  68.  
  69. Header.Name = "Header"
  70. Header.Parent = ScreenGui
  71. Header.Active = true
  72. Header.BackgroundColor3 = Color3.new(0, 0, 0)
  73. Header.BorderSizePixel = 0
  74. Header.Draggable = true
  75. Header.Position = UDim2.new(0.279503107, 0, 0.382530123, 0)
  76. Header.Size = UDim2.new(0, 438, 0, 34)
  77.  
  78. Title.Name = "Title"
  79. Title.Parent = Header
  80. Title.BackgroundColor3 = Color3.new(1, 1, 1)
  81. Title.BackgroundTransparency = 1
  82. Title.Position = UDim2.new(0.332191795, 0, 0, 0)
  83. Title.Size = UDim2.new(0, 147, 0, 34)
  84. Title.Font = Enum.Font.SourceSansLight
  85. Title.Text = Hub_Name
  86. Title.TextColor3 = Color3.new(1, 1, 1)
  87. Title.TextSize = 21
  88. Title.TextWrapped = true
  89.  
  90. Close.Name = "Close"
  91. Close.Parent = Header
  92. Close.BackgroundColor3 = Color3.new(1, 1, 1)
  93. Close.BackgroundTransparency = 1
  94. Close.Position = UDim2.new(0.928571403, 0, 0, 0)
  95. Close.Size = UDim2.new(0, 27, 0, 22)
  96. Close.Font = Enum.Font.SourceSans
  97. Close.Text = "X"
  98. Close.TextColor3 = Color3.new(1, 1, 1)
  99. Close.TextSize = 19
  100.  
  101. Minimize.Name = "Minimize"
  102. Minimize.Parent = Header
  103. Minimize.BackgroundColor3 = Color3.new(1, 1, 1)
  104. Minimize.BackgroundTransparency = 1
  105. Minimize.Position = UDim2.new(0.857142806, 0, 0, 0)
  106. Minimize.Size = UDim2.new(0, 27, 0, 22)
  107. Minimize.Font = Enum.Font.SourceSans
  108. Minimize.Text = "_"
  109. Minimize.TextColor3 = Color3.new(1, 1, 1)
  110. Minimize.TextSize = 19
  111.  
  112. Body.Name = "Body"
  113. Body.Parent = Header
  114. Body.BackgroundColor3 = Color3.new(0.372549, 0.372549, 0.372549)
  115. Body.BackgroundTransparency = 0.10000000149012
  116. Body.BorderSizePixel = 0
  117. Body.ClipsDescendants = true
  118. Body.Position = UDim2.new(0, 0, 1, 0)
  119. Body.Size = UDim2.new(0, 438, 0, 203)
  120.  
  121. bar.Name = "bar"
  122. bar.Parent = Body
  123. bar.BackgroundColor3 = Color3.new(0.372549, 0.372549, 0.372549)
  124. bar.BackgroundTransparency = 0.89999997615814
  125. bar.Size = UDim2.new(0, 115, 0, 203)
  126. bar.BottomImage = ""
  127. bar.CanvasSize = UDim2.new(0, 0, 1.20000005, 0)
  128. bar.ScrollBarThickness = 6
  129. bar.TopImage = ""
  130.  
  131. TextButton.Parent = bar
  132. TextButton.BackgroundColor3 = Color3.new(0, 0, 0)
  133. TextButton.BorderSizePixel = 0
  134. TextButton.Position = UDim2.new(0.108999997, 0, 0.0199999996, 0)
  135. TextButton.Size = UDim2.new(0, 90, 0, 31)
  136. TextButton.Visible = false
  137. TextButton.Font = Enum.Font.SourceSans
  138. TextButton.TextColor3 = Color3.new(1, 1, 1)
  139. TextButton.TextSize = 14
  140.  
  141. InfoPage.Name = "InfoPage"
  142. InfoPage.Parent = Body
  143. InfoPage.BackgroundColor3 = Color3.new(1, 1, 1)
  144. InfoPage.BackgroundTransparency = 1
  145. InfoPage.BorderSizePixel = 0
  146. InfoPage.Position = UDim2.new(0.262557089, 0, 0, 0)
  147. InfoPage.Size = UDim2.new(0, 323, 0, 203)
  148.  
  149. TextLabel.Parent = InfoPage
  150. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  151. TextLabel.BackgroundTransparency = 1
  152. TextLabel.Position = UDim2.new(0.0340557247, 0, 0.0886699483, 0)
  153. TextLabel.Size = UDim2.new(0, 298, 0, 151)
  154. TextLabel.Font = Enum.Font.SourceSansLight
  155. TextLabel.Text = Hub_InfoPageText
  156. TextLabel.TextColor3 = Color3.new(1, 1, 1)
  157. TextLabel.TextScaled = true
  158. TextLabel.TextSize = 14
  159. TextLabel.TextWrapped = true
  160.  
  161. TextButton_2.Parent = ScreenGui
  162. TextButton_2.BackgroundColor3 = Color3.new(0, 0, 0)
  163. TextButton_2.BorderSizePixel = 0
  164. TextButton_2.Position = UDim2.new(0.0309597515, 0, 0.0443349741, 0)
  165. TextButton_2.Size = UDim2.new(0, 91, 0, 31)
  166. TextButton_2.Visible = false
  167. TextButton_2.Font = Enum.Font.SourceSans
  168. TextButton_2.TextColor3 = Color3.new(1, 1, 1)
  169. TextButton_2.TextSize = 14
  170.  
  171. Logo.Parent = Header
  172. Logo.BackgroundColor3 = Color3.new(1, 1, 1)
  173. Logo.BackgroundTransparency = 1
  174. Logo.BorderSizePixel = 0
  175. Logo.Position = UDim2.new(0.0182648413, 0, 0, 0)
  176. Logo.Size = UDim2.new(0, 34, 0, 34)
  177. Logo.Image = Hub_Logo
  178.  
  179. if not Hub_UseLogo then
  180. Logo.Visible = false
  181. end
  182.  
  183.  
  184. offset = 0.02
  185. for i,v in pairs(categories)do
  186.  
  187. local button = TextButton:Clone()
  188. button.Parent = bar
  189. button.Position = UDim2.new(0.109, 0,offset, 0)
  190. button.Visible = true
  191. button.Text = i
  192. offset = offset + 0.16
  193.  
  194. local page = Instance.new("Frame")
  195. page.Parent = Body
  196. page.Position = UDim2.new(0.263, 0,0, 0)
  197. page.Size = UDim2.new(0, 323,0, 203)
  198. page.BackgroundTransparency = 1
  199. page.Name = "Page"..i
  200. page.Visible = false
  201.  
  202. local xoffset = 0.031
  203. local yoffset = 0.044
  204.  
  205. for i,content in pairs(v)do
  206. local scriptbutton = TextButton:Clone()
  207. scriptbutton.Parent = page
  208. scriptbutton.Visible = true
  209. scriptbutton.Text = content[1]
  210. scriptbutton.Position = UDim2.new(xoffset,0,yoffset,0)
  211. xoffset = xoffset + 0.325
  212. if i%3 == 0 then
  213. xoffset = 0.031
  214. yoffset = yoffset + 0.206
  215. end
  216.  
  217. if i == 12 then
  218. break
  219. end
  220.  
  221. scriptbutton.MouseButton1Click:Connect(function()
  222. if type(content[2]) == "function" then
  223. content[2]()
  224. end
  225. if type(content[2]) == "string" then
  226. loadstring(content[2])
  227. end
  228. end)
  229. end
  230.  
  231. button.MouseButton1Click:Connect(function()
  232. for _,pages in pairs(Body:GetChildren())do
  233. if pages ~= page and pages.Name ~= "bar" then
  234. pages.Visible = false
  235. end
  236.  
  237. if pages == page then
  238. pages.Visible = true
  239. end
  240. end
  241. end)
  242.  
  243.  
  244. end
  245.  
  246. local minimized = false
  247.  
  248. Minimize.MouseButton1Click:Connect(function()
  249. if not minimized then
  250. Body:TweenSize(UDim2.new(0, 438,0, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,0.2)
  251. minimized = true
  252. else
  253. Body:TweenSize(UDim2.new(0, 438,0, 203),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,0.2)
  254. minimized = false
  255. end
  256. end)
  257.  
  258. Close.MouseButton1Click:Connect(function()
  259. ScreenGui:Destroy()
  260. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement