Advertisement
ARY106_7

Untitled

Jan 2nd, 2025 (edited)
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 53.62 KB | None | 0 0
  1. local Configs_HUB = {
  2. Cor_Hub = Color3.fromRGB(15, 15, 15),
  3. Cor_Options = Color3.fromRGB(15, 15, 15),
  4. Cor_Stroke = Color3.fromRGB(255, 5, 130),
  5. Cor_Text = Color3.fromRGB(240, 240, 240),
  6. Cor_DarkText = Color3.fromRGB(240, 240, 240),
  7. Corner_Radius = UDim.new(0,4),
  8. Text_Font = Enum.Font.FredokaOne
  9. }
  10.  
  11. local CoreGui = game:GetService("CoreGui")
  12. local TweenService = game:GetService("TweenService")
  13. local UserInputService = game:GetService("UserInputService")
  14.  
  15. local function Create(instance, parent, props)
  16. local new = Instance.new(instance, parent)
  17. if props then
  18. table.foreach(props, function(prop, value)
  19. new[prop] = value
  20. end)
  21. end
  22. return new
  23. end
  24.  
  25. local function SetProps(instance, props)
  26. if instance and props then
  27. table.foreach(props, function(prop, value)
  28. instance[prop] = value
  29. end)
  30. end
  31. return instance
  32. end
  33.  
  34. local function Corner(parent, props)
  35. local new = Create("UICorner", parent)
  36. new.CornerRadius = Configs_HUB.Corner_Radius
  37. if props then
  38. SetProps(new, props)
  39. end
  40. return new
  41. end
  42.  
  43. local function Stroke(parent, props)
  44. local new = Create("UIStroke", parent)
  45. new.Color = Configs_HUB.Cor_Stroke
  46. new.ApplyStrokeMode = "Border"
  47. if props then
  48. SetProps(new, props)
  49. end
  50. return new
  51. end
  52.  
  53. local function CreateTween(instance, prop, value, time, tweenWait)
  54. local tween = TweenService:Create(instance,
  55. TweenInfo.new(time, Enum.EasingStyle.Linear),
  56. {[prop] = value})
  57. tween:Play()
  58. if tweenWait then
  59. tween.Completed:Wait()
  60. end
  61. end
  62.  
  63. local function TextSetColor(instance)
  64. instance.MouseEnter:Connect(function()
  65. CreateTween(instance, "TextColor3", Color3.fromRGB(30, 140, 200), 0.4, true)
  66. end)
  67. instance.MouseLeave:Connect(function()
  68. CreateTween(instance, "TextColor3", Configs_HUB.Cor_Text, 0.4, false)
  69. end)
  70. end
  71.  
  72. local ScreenGui = Create("ScreenGui", CoreGui, {
  73. Name = "REDz HUB library"
  74. })
  75.  
  76. ScreenFind = CoreGui:FindFirstChild(ScreenGui.Name)
  77. if ScreenFind and ScreenFind ~= ScreenGui then
  78. ScreenFind:Destroy()
  79. end
  80.  
  81. function DestroyScript()
  82. ScreenGui:Destroy()
  83. end
  84.  
  85. local Menu_Notifi = Create("Frame", ScreenGui, {
  86. Size = UDim2.new(0, 300, 1, 0),
  87. Position = UDim2.new(1, 0, 0, 0),
  88. AnchorPoint = Vector2.new(1, 0),
  89. BackgroundTransparency = 1
  90. })
  91.  
  92. local Padding = Create("UIPadding", Menu_Notifi, {
  93. PaddingLeft = UDim.new(0, 25),
  94. PaddingTop = UDim.new(0, 25),
  95. PaddingBottom = UDim.new(0, 50)
  96. })
  97.  
  98. local ListLayout = Create("UIListLayout", Menu_Notifi, {
  99. Padding = UDim.new(0, 15),
  100. VerticalAlignment = "Bottom"
  101. })
  102.  
  103. function MakeNotifi(Configs)
  104. local Title = Configs.Title or "REDz HUB"
  105. local text = Configs.Text or "Notificação"
  106. local timewait = Configs.Time or 5
  107.  
  108. local Frame1 = Create("Frame", Menu_Notifi, {
  109. Size = UDim2.new(2, 0, 0, 0),
  110. BackgroundTransparency = 1,
  111. AutomaticSize = "Y",
  112. Name = "Title"
  113. })
  114.  
  115. local Frame2 = Create("Frame", Frame1, {
  116. Size = UDim2.new(0, Menu_Notifi.Size.X.Offset - 50, 0, 0),
  117. BackgroundColor3 = Configs_HUB.Cor_Hub,
  118. Position = UDim2.new(0, Menu_Notifi.Size.X.Offset, 0, 0),
  119. AutomaticSize = "Y"
  120. })Corner(Frame2)
  121.  
  122. local TextLabel = Create("TextLabel", Frame2, {
  123. Size = UDim2.new(1, 0, 0, 25),
  124. Font = Configs_HUB.Text_Font,
  125. BackgroundTransparency = 1,
  126. Text = Title,
  127. TextSize = 20,
  128. Position = UDim2.new(0, 20, 0, 5),
  129. TextXAlignment = "Left",
  130. TextColor3 = Configs_HUB.Cor_Text
  131. })
  132.  
  133. local TextButton = Create("TextButton", Frame2, {
  134. Text = "X",
  135. Font = Configs_HUB.Text_Font,
  136. TextSize = 20,
  137. BackgroundTransparency = 1,
  138. TextColor3 = Color3.fromRGB(200, 200, 200),
  139. Position = UDim2.new(1, -5, 0, 5),
  140. AnchorPoint = Vector2.new(1, 0),
  141. Size = UDim2.new(0, 25, 0, 25)
  142. })
  143.  
  144. local TextLabel = Create("TextLabel", Frame2, {
  145. Size = UDim2.new(1, -30, 0, 0),
  146. Position = UDim2.new(0, 20, 0, TextButton.Size.Y.Offset + 10),
  147. TextSize = 15,
  148. TextColor3 = Configs_HUB.Cor_DarkText,
  149. TextXAlignment = "Left",
  150. TextYAlignment = "Top",
  151. AutomaticSize = "Y",
  152. Text = text,
  153. Font = Configs_HUB.Text_Font,
  154. BackgroundTransparency = 1,
  155. AutomaticSize = Enum.AutomaticSize.Y,
  156. TextWrapped = true
  157. })
  158.  
  159. local FrameSize = Create("Frame", Frame2, {
  160. Size = UDim2.new(1, 0, 0, 2),
  161. BackgroundColor3 = Configs_HUB.Cor_Stroke,
  162. Position = UDim2.new(0, 2, 0, 30),
  163. BorderSizePixel = 0
  164. })Corner(FrameSize)Create("Frame", Frame2, {
  165. Size = UDim2.new(0, 0, 0, 5),
  166. Position = UDim2.new(0, 0, 1, 5),
  167. BackgroundTransparency = 1
  168. })
  169.  
  170. task.spawn(function()
  171. CreateTween(FrameSize, "Size", UDim2.new(0, 0, 0, 2), timewait, true)
  172. end)
  173.  
  174. TextButton.MouseButton1Click:Connect(function()
  175. CreateTween(Frame2, "Position", UDim2.new(0, -20, 0, 0), 0.1, true)
  176. CreateTween(Frame2, "Position", UDim2.new(0, Menu_Notifi.Size.X.Offset, 0, 0), 0.5, true)
  177. Frame1:Destroy()
  178. end)
  179.  
  180. task.spawn(function()
  181. CreateTween(Frame2, "Position", UDim2.new(0, -20, 0, 0), 0.5, true)
  182. CreateTween(Frame2, "Position", UDim2.new(), 0.1, true)task.wait(timewait)
  183. if Frame2 then
  184. CreateTween(Frame2, "Position", UDim2.new(0, -20, 0, 0), 0.1, true)
  185. CreateTween(Frame2, "Position", UDim2.new(0, Menu_Notifi.Size.X.Offset, 0, 0), 0.5, true)
  186. Frame1:Destroy()
  187. end
  188. end)
  189. end
  190.  
  191. function MakeWindow(Configs)
  192. local title = Configs.Hub.Title or "REDz HUB"
  193. local Anim_Title = Configs.Hub.Animation or "by : redz9999"
  194.  
  195. local KeySystem = Configs.Key.KeySystem or false
  196. local KeyTitle = Configs.Key.Title or "Key System"
  197. local KeyDescription = Configs.Key.Description or ".-."
  198. local KeyKey = Configs.Key.Keys or {"123", "321"}
  199. local KeyLink = Configs.Key.KeyLink or ""
  200. local KeyNotifications = Configs.Key.Notifi.Notifications or true
  201. local KeyNotSuccess = Configs.Key.Notifi.Incorrectkey or "The key is incorrect"
  202. local KeySuccess = Configs.Key.Notifi.CorrectKey or "Running the Script..."
  203. local KeyCopyKeyLink = Configs.Key.Notifi.CopyKeyLink or "Copied to Clipboard"
  204.  
  205. if KeySystem then
  206. local KeyMenu = Create("Frame", ScreenGui, {
  207. Size = UDim2.new(0, 400, 0, 220),
  208. Position = UDim2.new(0.5, 0, 0.5, 0),
  209. BackgroundColor3 = Configs_HUB.Cor_Hub,
  210. AnchorPoint = Vector2.new(0.5, 0.5),
  211. Active = true,
  212. Draggable = true
  213. })Corner(KeyMenu)
  214.  
  215. local CloseButton = Create("TextButton", KeyMenu, {
  216. Size = UDim2.new(0, 30, 0, 30),
  217. Position = UDim2.new(1, -10, 0, 5),
  218. AnchorPoint = Vector2.new(1, 0),
  219. Text = "X",
  220. Font = Enum.Font.FredokaOne,
  221. TextScaled = true,
  222. TextColor3 = Color3.fromRGB(240, 0, 0),
  223. BackgroundTransparency = 1,
  224. })Corner(CloseButton)
  225.  
  226. local Title = Create("TextLabel", KeyMenu, {
  227. Size = UDim2.new(1, -80, 0, 20),
  228. Position = UDim2.new(0, 20, 0, 5),
  229. Text = KeyTitle,
  230. Font = Configs_HUB.Text_Font,
  231. TextScaled = true,
  232. TextColor3 = Configs_HUB.Cor_Text,
  233. TextXAlignment = "Left",
  234. BackgroundTransparency = 1
  235. })
  236.  
  237. local Description = Create("TextLabel", KeyMenu, {
  238. Size = UDim2.new(1, -80, 0, 0),
  239. Text = KeyDescription,
  240. TextSize = 17,
  241. TextColor3 = Configs_HUB.Cor_DarkText,
  242. Font = Configs_HUB.Text_Font,
  243. Position = UDim2.new(0, 20, 0, 25),
  244. TextXAlignment = "Left",
  245. AutomaticSize = "Y",
  246. TextYAlignment = "Top",
  247. BackgroundTransparency = 1
  248. })
  249.  
  250. local ConfirmButton = Create("TextButton", KeyMenu, {
  251. Text = "Confirm",
  252. Font = Configs_HUB.Text_Font,
  253. TextSize = 20,
  254. TextColor3 = Configs_HUB.Cor_Text,
  255. Size = UDim2.new(0, 150, 0, 40),
  256. AnchorPoint = Vector2.new(1, 0),
  257. Position = UDim2.new(1, -35, 0, 140),
  258. BackgroundColor3 = Configs_HUB.Cor_Options
  259. })Corner(ConfirmButton)
  260.  
  261. local GetKeyLink = Create("TextButton", KeyMenu, {
  262. Text = "Get Key Link",
  263. Font = Configs_HUB.Text_Font,
  264. TextSize = 20,
  265. TextColor3 = Configs_HUB.Cor_Text,
  266. Size = UDim2.new(0, 150, 0, 40),
  267. Position = UDim2.new(0, 35, 0, 140),
  268. BackgroundColor3 = Configs_HUB.Cor_Options
  269. })Corner(GetKeyLink)
  270.  
  271. local TextBox = Create("TextBox", KeyMenu, {
  272. Size = UDim2.new(1, -70, 0, 40),
  273. Position = UDim2.new(0, 35, 0, 90),
  274. BackgroundColor3 = Configs_HUB.Cor_Options,
  275. PlaceholderText = "Put the Key here",
  276. Text = "",
  277. TextColor3 = Configs_HUB.Cor_Text,
  278. Font = Configs_HUB.Text_Font,
  279. TextSize = 25
  280. })Corner(TextBox)
  281.  
  282. local KeyVerify = false
  283. CloseButton.MouseButton1Click:Connect(function()
  284. local UIScale = Create("UIScale", ScreenGui)
  285. CreateTween(UIScale, "Scale", 0, 0.20, true)
  286. ScreenGui:Destroy()
  287. end)
  288.  
  289. ConfirmButton.MouseButton1Click:Connect(function()
  290. for _,v in pairs(KeyKey) do
  291. if TextBox.Text == v then
  292. KeyVerify = true
  293. end
  294. end
  295. if KeyNotifications and not KeyVerify then
  296. MakeNotifi({
  297. Title = KeyTitle,
  298. Text = KeyNotSuccess,
  299. Time = 5
  300. })
  301. elseif KeyNotifications then
  302. MakeNotifi({
  303. Title = KeyTitle,
  304. Text = KeySuccess,
  305. Time = 5
  306. })
  307. end
  308. end)
  309.  
  310. GetKeyLink.MouseButton1Click:Connect(function()
  311. if KeyNotifications then
  312. setclipboard(KeyLink)
  313. MakeNotifi({
  314. Title = KeyTitle,
  315. Text = KeyCopyKeyLink,
  316. Time = 5
  317. })
  318. end
  319. end)
  320.  
  321. repeat task.wait()
  322. until KeyVerify
  323. local UIScale = Create("UIScale", KeyMenu)
  324. CreateTween(UIScale, "Scale", 0, 0.40, true)
  325. KeyMenu:Destroy()
  326. end
  327.  
  328. local Menu = Create("Frame", ScreenGui, {
  329. BackgroundColor3 = Configs_HUB.Cor_Hub,
  330. Position = UDim2.new(0.5, -500/2, 0.5, -270/2),
  331. Active = true,
  332. Draggable = true
  333. })Corner(Menu)
  334.  
  335. local TopBar = Create("Frame", Menu, {
  336. BackgroundTransparency = 1,
  337. Size = UDim2.new(1, 0, 0, 25),
  338. Visible = false
  339. })
  340.  
  341. local ButtonsFrame = Create("Frame", TopBar, {
  342. Size = UDim2.new(0, 40, 1, -5),
  343. Position = UDim2.new(1, -10, 0, 2.5),
  344. AnchorPoint = Vector2.new(1, 0),
  345. BackgroundTransparency = 1
  346. })
  347.  
  348. local Title = Create("TextLabel", TopBar, {
  349. Size = UDim2.new(1, 0, 1, 0),
  350. Position = UDim2.new(0, 20, 0, 0),
  351. TextColor3 = Configs_HUB.Cor_Text,
  352. Font = Configs_HUB.Text_Font,
  353. TextXAlignment = "Left",
  354. Text = title,
  355. TextSize = 20,
  356. BackgroundTransparency = 1
  357. })
  358.  
  359. local Minimize_BTN = Create("TextButton", ButtonsFrame, {
  360. Text = "-",
  361. TextColor3 = Configs_HUB.Cor_Text,
  362. Size = UDim2.new(0.5, 0, 1, 0),
  363. BackgroundTransparency = 1,
  364. Font = Configs_HUB.Text_Font,
  365. TextYAlignment = "Bottom",
  366. TextSize = 25
  367. })
  368.  
  369. IsMinimized = false
  370. Minimize_BTN.MouseButton1Click:Connect(function()
  371. Minimize_BTN.Text = not IsMinimized and "+" or "-"
  372. if IsMinimized then
  373. IsMinimized = false
  374. CreateTween(Menu, "Size", UDim2.new(0, 500, 0, 270), 0.15, false)
  375. else
  376. IsMinimized = true
  377. CreateTween(Menu, "Size", UDim2.new(0, 500, 0, 25), 0.15, true)
  378. end
  379. end)
  380.  
  381. local Close_Button = Create("TextButton", ButtonsFrame, {
  382. Text = "×",
  383. TextYAlignment = "Bottom",
  384. TextColor3 = Configs_HUB.Cor_Text,
  385. Size = UDim2.new(0.5, 0, 1, 0),
  386. AnchorPoint = Vector2.new(1, 0),
  387. Position = UDim2.new(1, 0, 0, 0),
  388. BackgroundTransparency = 1,
  389. Font = Configs_HUB.Text_Font,
  390. TextSize = 25
  391. })
  392.  
  393. local function CreateClose()
  394. IsMinimized = false
  395. CreateTween(Menu, "Size", UDim2.new(0, 500, 0, 270), 0.3, false)
  396. local CloseGui = Create("TextButton", Menu, {
  397. BackgroundTransparency = 0.5,
  398. BackgroundColor3 = Configs_HUB.Cor_Hub,
  399. Size = UDim2.new(1, 0, 1, 0),
  400. AutoButtonColor = false,
  401. Text = "",
  402. BackgroundTransparency = 0.5,
  403. Visible = false
  404. })Corner(CloseGui)
  405.  
  406. local CloseMenu = Create("Frame", CloseGui, {
  407. Size = UDim2.new(),
  408. AnchorPoint = Vector2.new(0.5, 0.5),
  409. Position = UDim2.new(0.5, 0, 0.5, 0),
  410. Transparency = 1,
  411. BackgroundColor3 = Configs_HUB.Cor_Hub
  412. })Corner(CloseMenu)Stroke(CloseMenu)
  413.  
  414. local Mensage = Create("TextLabel", CloseMenu, {
  415. Size = UDim2.new(0.8, 0, 0.25, 0),
  416. Text = "متاكد/ه تحذف السكربت ؟",
  417. Position = UDim2.new(0.1, 0, 0.2),
  418. TextColor3 = Configs_HUB.Cor_Text,
  419. Font = Configs_HUB.Text_Font,
  420. TextScaled = true,
  421. BackgroundTransparency = 1
  422. })
  423.  
  424. local Confirm = Create("TextButton", CloseMenu, {
  425. Size = UDim2.new(0.35, 0, 0.3, 0),
  426. Position = UDim2.new(0.1, 0, 0.5, 0),
  427. BackgroundColor3 = Configs_HUB.Cor_Hub,
  428. Text = "متاكد/ه",
  429. Font = Configs_HUB.Text_Font,
  430. TextColor3 = Color3.fromRGB(240, 0, 0),
  431. TextSize = 20
  432. })Corner(Confirm)Stroke(Confirm)
  433.  
  434. local Cancel = Create("TextButton", CloseMenu, {
  435. Size = UDim2.new(0.35, 0, 0.3, 0),
  436. Position = UDim2.new(0.9, 0, 0.5, 0),
  437. AnchorPoint = Vector2.new(1, 0),
  438. BackgroundColor3 = Configs_HUB.Cor_Hub,
  439. Text = "مب متاكد/ه",
  440. Font = Configs_HUB.Text_Font,
  441. TextColor3 = Color3.fromRGB(0, 240, 0),
  442. TextSize = 20
  443. })Corner(Cancel)Stroke(Cancel)
  444.  
  445. local function SetVisible()
  446. if Menu.Size.Y.Offset > 100 then
  447. CloseGui.Visible = true
  448. else
  449. CloseGui.Visible = false
  450. end
  451. end
  452.  
  453. SetVisible()
  454. Menu:GetPropertyChangedSignal("Size"):Connect(SetVisible)
  455.  
  456. CreateTween(CloseMenu, "Transparency", 0, 0.2, false)
  457. CreateTween(CloseMenu, "Size", UDim2.new(0.7, 0, 0.7, 0), 0.2, false)
  458.  
  459. Cancel.MouseButton1Click:Connect(function()
  460. CreateTween(CloseMenu, "Transparency", 1, 0.3, false)
  461. CreateTween(CloseMenu, "Size", UDim2.new(), 0.2, true)
  462. CloseGui:Destroy()
  463. end)
  464.  
  465. Confirm.MouseButton1Click:Connect(function()
  466. CloseGui:Destroy()
  467. CreateTween(Menu, "Size", UDim2.new(), 0.3, true)
  468. DestroyScript()
  469. end)
  470.  
  471. CloseGui.MouseButton1Click:Connect(function()
  472. CreateTween(CloseMenu, "Transparency", 1, 0.3, false)
  473. CreateTween(CloseMenu, "Size", UDim2.new(), 0.2, true)
  474. CloseGui:Destroy()
  475. end)
  476. end
  477.  
  478. Close_Button.MouseButton1Click:Connect(CreateClose)
  479.  
  480. local AnimMenu = Create("Frame", ScreenGui, {
  481. Position = UDim2.new(0.5, 0, 0.5, 0),
  482. AnchorPoint = Vector2.new(0.5, 0.5),
  483. BackgroundColor3 = Configs_HUB.Cor_Hub
  484. })Corner(AnimMenu, {CornerRadius = UDim.new(0, 6)})
  485.  
  486. local Anim_Credits = Create("TextLabel", AnimMenu, {
  487. Text = Anim_Title,
  488. BackgroundTransparency = 1,
  489. Size = UDim2.new(1, 0, 1, 0),
  490. Visible = false,
  491. Font = Configs_HUB.Text_Font,
  492. TextTransparency = 1,
  493. TextColor3 = Configs_HUB.Cor_Text,
  494. Position = UDim2.new(0, 10, 0, 0),
  495. TextXAlignment = "Left",
  496. TextSize = 15
  497. })
  498.  
  499. CreateTween(AnimMenu, "Size", UDim2.new(0, 0, 0, 35), 0.5, true)
  500. CreateTween(AnimMenu, "Size", UDim2.new(0, 150, 0, 35), 0.5, true)
  501. Anim_Credits.Visible = true
  502. task.wait(0.5)
  503. for i = 1, 0, -0.1 do task.wait()
  504. Anim_Credits.TextTransparency = i
  505. end
  506. task.wait(1)
  507. for i = 0, 1, 0.1 do task.wait()
  508. Anim_Credits.TextTransparency = i
  509. end
  510. Anim_Credits:Destroy()
  511. AnimMenu:Destroy()
  512. CreateTween(Menu, "Size", UDim2.new(0, 500, 0, 35), 0.5, true)
  513. TopBar.Visible = true
  514. CreateTween(Menu, "Size", UDim2.new(0, 500, 0, 270), 0.3, true)
  515. Menu.Draggable = true
  516.  
  517. local line_Containers = Create("Frame", Menu, {
  518. BackgroundTransparency = 1,
  519. Size = UDim2.new(1, 0, 1, 0)
  520. })
  521.  
  522. function MinimizeButton(Configs)
  523. local image = Configs.Image or ""
  524. local size = Configs.Size or {30, 30}
  525. local color = Configs.Color or Configs_HUB.Cor_Hub
  526. local corner = Configs.Corner or true
  527. local stroke = Configs.Stroke or false
  528. local strokecolor = Configs.StrokeColor or Configs_HUB.Cor_Stroke
  529.  
  530. local Button = Create("ImageButton", ScreenGui, {
  531. Size = UDim2.new(0, size[1], 0, size[2]),
  532. Position = UDim2.new(0.15, 0, 0.15, 0),
  533. BackgroundColor3 = color,
  534. Image = image,
  535. Active = true,
  536. Draggable = true
  537. })if corner then Corner(Button) end if stroke then Stroke(Button, {Color = strokecolor}) end
  538.  
  539. local minimize = false
  540. Button.MouseButton1Click:Connect(function()
  541. if minimize then
  542. minimize = false
  543. Menu.Visible = true
  544. if not IsMinimized then
  545. CreateTween(Menu, "Size", UDim2.new(0, 500, 0, 270), 0.3, false)
  546. else
  547. CreateTween(Menu, "Size", UDim2.new(0, 500, 0, 25), 0.3, false)
  548. end
  549. else
  550. minimize = true
  551. CreateTween(Menu, "Size", UDim2.new(0, 500, 0, 0), 0.3, true)
  552. Menu.Visible = false
  553. end
  554. end)
  555. end
  556.  
  557. local ScrollBar = Create("ScrollingFrame", Menu, {
  558. Size = UDim2.new(0, 140, 1, -tonumber(TopBar.Size.Y.Offset + 2)),
  559. Position = UDim2.new(0, 0, 1, 0),
  560. AnchorPoint = Vector2.new(0, 1),
  561. CanvasSize = UDim2.new(),
  562. ScrollingDirection = "Y",
  563. AutomaticCanvasSize = "Y",
  564. BackgroundTransparency = 1,
  565. ScrollBarThickness = 2
  566. })Create("UIPadding", ScrollBar, {
  567. PaddingLeft = UDim.new(0, 10),
  568. PaddingRight = UDim.new(0, 10),
  569. PaddingTop = UDim.new(0, 10),
  570. PaddingBottom = UDim.new(0, 10)
  571. })Create("UIListLayout", ScrollBar, {
  572. Padding = UDim.new(0, 5)
  573. })
  574.  
  575. local Containers = Create("Frame", Menu, {
  576. Size = UDim2.new(1, -tonumber(ScrollBar.Size.X.Offset + 2), 1, -tonumber(TopBar.Size.Y.Offset + 2)),
  577. AnchorPoint = Vector2.new(1, 1),
  578. Position = UDim2.new(1, 0, 1, 0),
  579. BackgroundTransparency = 1
  580. })Corner(Containers)
  581.  
  582. local function Add_Line(props)
  583. local line = Create("Frame", line_Containers, props)
  584. line.BackgroundColor3 = Configs_HUB.Cor_Stroke
  585. line.BorderSizePixel = 0
  586. end
  587.  
  588. Add_Line({Size = UDim2.new(1, 0, 0, 1),Position = UDim2.new(0, 0, 0, TopBar.Size.Y.Offset)})
  589. Add_Line({Size = UDim2.new(0, 1, 1, -tonumber(TopBar.Size.Y.Offset + 1)),
  590. Position = UDim2.new(0, ScrollBar.Size.X.Offset, 0, TopBar.Size.Y.Offset)})
  591.  
  592. local firstVisible = true
  593. local FirstTab = true
  594. local textsize = 15
  595. local textcolor = Configs_HUB.Cor_Text
  596.  
  597. Menu:GetPropertyChangedSignal("Size"):Connect(function()
  598. if Menu.Size.Y.Offset > 70 then
  599. ScrollBar.Visible = true
  600. Containers.Visible = true
  601. line_Containers.Visible = true
  602. else
  603. ScrollBar.Visible = false
  604. Containers.Visible = false
  605. line_Containers.Visible = false
  606. end
  607. end)
  608.  
  609. function MakeTab(Configs)
  610. local TabName = Configs.Name or "Tab"
  611. local TabTitle = Configs.TabTitle or false
  612.  
  613. local Frame = Create("Frame", ScrollBar, {
  614. Size = UDim2.new(1, 0, 0, 25),
  615. BackgroundTransparency = 1
  616. })Corner(Frame)Stroke(Frame)
  617.  
  618. local TextButton = Create("TextButton", Frame, {
  619. Size = UDim2.new(1, 0, 1, 0),
  620. BackgroundTransparency = 1,
  621. Text = ""
  622. })
  623.  
  624. local TextLabel = Create("TextLabel", Frame, {
  625. Size = UDim2.new(1, 0, 1, 0),
  626. BackgroundTransparency = 1,
  627. Font = Configs_HUB.Text_Font,
  628. TextColor3 = textcolor,
  629. TextSize = textsize,
  630. Text = TabName
  631. })
  632.  
  633. local Container = Create("ScrollingFrame", Containers, {
  634. Size = UDim2.new(1, 0, 1, 0),
  635. ScrollingDirection = "Y",
  636. AutomaticCanvasSize = "Y",
  637. CanvasSize = UDim2.new(),
  638. BackgroundTransparency = 1,
  639. ScrollBarThickness = 2,
  640. Visible = firstVisible
  641. })Create("UIPadding", Container, {
  642. PaddingLeft = UDim.new(0, 10),
  643. PaddingRight = UDim.new(0, 10),
  644. PaddingTop = UDim.new(0, 10),
  645. PaddingBottom = UDim.new(0, 10)
  646. })Create("UIListLayout", Container, {
  647. Padding = UDim.new(0, 5)
  648. })
  649.  
  650. if TabTitle then
  651. Create("TextLabel",Container,{BackgroundTransparency=1,Text="#"..string.gsub(TabName," ","-"),TextSize=25,Font=Configs_HUB.Text_Font,TextXAlignment="Left",TextColor3=Configs_HUB.Cor_Text,Size=UDim2.new(1, 0, 0, 30),Position=UDim2.new(0, 30, 0, 0),Name="Frame"})
  652. end
  653.  
  654. TextButton.MouseButton1Click:Connect(function()
  655. for _,container in pairs(Containers:GetChildren()) do
  656. if container:IsA("ScrollingFrame") then
  657. container.Visible = false
  658. end
  659. end
  660. for _,frame in pairs(ScrollBar:GetChildren()) do
  661. if frame:IsA("Frame") and frame:FindFirstChild("TextLabel") and frame.TextLabel ~= TextLabel then
  662. CreateTween(frame.TextLabel, "TextColor3", Configs_HUB.Cor_DarkText, 0.3, false)
  663. frame.TextLabel.TextSize = 14
  664. end
  665. end
  666. Container.Visible = true
  667. CreateTween(TextLabel, "TextColor3", Configs_HUB.Cor_Text, 0.3, false)
  668. TextLabel.TextSize = 15
  669. end)
  670.  
  671. firstVisible = false
  672. FirstTab = false
  673. textsize = 14
  674. textcolor = Configs_HUB.Cor_DarkText
  675. return Container
  676. end
  677.  
  678. function AddButton(parent, Configs)
  679. local ButtonName = Configs.Name or "Button!!"
  680. local Callback = Configs.Callback or function() end
  681.  
  682. local TextButton = Create("TextButton", parent, {
  683. Size = UDim2.new(1, 0, 0, 25),
  684. BackgroundColor3 = Configs_HUB.Cor_Options,
  685. Name = "Frame",
  686. Text = "",
  687. AutoButtonColor = false
  688. })Corner(TextButton)Stroke(TextButton)
  689.  
  690. local TextLabel = Create("TextLabel", TextButton, {
  691. TextSize = 12,
  692. TextColor3 = Configs_HUB.Cor_Text,
  693. Text = ButtonName,
  694. Size = UDim2.new(1, 0, 1, 0),
  695. Position = UDim2.new(0, 35, 0, 0),
  696. BackgroundTransparency = 1,
  697. TextXAlignment = "Left",
  698. Font = Configs_HUB.Text_Font
  699. })
  700.  
  701. local ImageLabel = Create("ImageLabel", TextButton, {
  702. Image = "rbxassetid://15155219405",
  703. Size = UDim2.new(0, 20, 0, 20),
  704. Position = UDim2.new(0, 5, 0, 2.5),
  705. BackgroundTransparency = 1,
  706. ImageColor3 = Configs_HUB.Cor_Stroke
  707. })
  708.  
  709. TextButton.MouseButton1Click:Connect(function()
  710. Callback("Click!!")
  711. CreateTween(ImageLabel, "ImageColor3", Color3.fromRGB(30, 140, 200), 0.2, true)
  712. CreateTween(ImageLabel, "ImageColor3", Configs_HUB.Cor_Stroke, 0.2, false)
  713. end)
  714.  
  715. TextSetColor(TextLabel)
  716. end
  717.  
  718. function AddToggle(parent, Configs)
  719. local ToggleName = Configs.Name or "Toggle!!"
  720. local Default = Configs.Default or false
  721. local Callback = Configs.Callback or function() end
  722.  
  723. local TextButton = Create("TextButton", parent, {
  724. Size = UDim2.new(1, 0, 0, 25),
  725. BackgroundColor3 = Configs_HUB.Cor_Options,
  726. Name = "Frame",
  727. Text = "",
  728. AutoButtonColor = false
  729. })Corner(TextButton)Stroke(TextButton)
  730.  
  731. local TextLabel = Create("TextLabel", TextButton, {
  732. TextSize = 12,
  733. TextColor3 = Configs_HUB.Cor_Text,
  734. Text = ToggleName,
  735. Size = UDim2.new(1, 0, 1, 0),
  736. Position = UDim2.new(0, 35, 0, 0),
  737. BackgroundTransparency = 1,
  738. TextXAlignment = "Left",
  739. Font = Configs_HUB.Text_Font
  740. })
  741.  
  742. local Frame1 = Create("Frame", TextButton, {
  743. Size = UDim2.new(0, 25, 0, 15),
  744. Position = UDim2.new(0, 5, 0, 5),
  745. BackgroundTransparency = 1,
  746. })Corner(Frame1, {CornerRadius = UDim.new(1, 0)})
  747. local Stroke = Stroke(Frame1, {Thickness = 2})
  748.  
  749. local Frame2 = Create("Frame", Frame1, {
  750. Size = UDim2.new(0, 13, 0, 13),
  751. Position = UDim2.new(0, 2, 0.5, 0),
  752. AnchorPoint = Vector2.new(0, 0.5),
  753. BackgroundColor3 = Configs_HUB.Cor_Stroke
  754. })Corner(Frame2, {CornerRadius = UDim.new(1, 0)})
  755.  
  756. local OnOff = false
  757. if Default then
  758. OnOff = true
  759. CreateTween(Frame2, "Position", UDim2.new(0, 10, 0.5, 0), 0.2, false)
  760. CreateTween(Frame2, "BackgroundColor3", Color3.fromRGB(30, 140, 200), 0.2, false)
  761. CreateTween(Stroke, "Color", Color3.fromRGB(30, 140, 200), 0.2, false)
  762. CreateTween(TextLabel, "TextColor3", Color3.fromRGB(30, 140, 200), 0.2, false)
  763. end
  764. Callback(OnOff)
  765. TextButton.MouseButton1Click:Connect(function()
  766. if Frame2.Position.X.Offset < 5 then
  767. OnOff = true
  768. CreateTween(Frame2, "Position", UDim2.new(0, 10, 0.5, 0), 0.2, false)
  769. CreateTween(Frame2, "BackgroundColor3", Color3.fromRGB(30, 140, 200), 0.2, false)
  770. CreateTween(Stroke, "Color", Color3.fromRGB(30, 140, 200), 0.2, false)
  771. CreateTween(TextLabel, "TextColor3", Color3.fromRGB(30, 140, 200), 0.2, false)
  772. Callback(true)
  773. else
  774. OnOff = false
  775. CreateTween(Frame2, "Position", UDim2.new(0, 2, 0.5, 0), 0.2, false)
  776. CreateTween(Frame2, "BackgroundColor3", Configs_HUB.Cor_Stroke, 0.2, false)
  777. CreateTween(Stroke, "Color", Configs_HUB.Cor_Stroke, 0.2, false)
  778. CreateTween(TextLabel, "TextColor3", Configs_HUB.Cor_Text, 0.2, false)
  779. Callback(false)
  780. end
  781. end)
  782. return {Frame2, Stroke, OnOff, Callback}
  783. end
  784.  
  785. function AddMobileToggle(Configs)
  786. local name = Configs.Name or "Atalho"
  787. local Callback = Configs.Callback or function() end
  788. local visible = Configs.Visible or false
  789.  
  790. local Toggle_Atalho = Create("Frame", ScreenGui, {
  791. Size = UDim2.new(0, 100, 0, 60),
  792. Position = UDim2.new(0.8, 0, 0.8, 0),
  793. AnchorPoint = Vector2.new(0.5, 0.5),
  794. BackgroundColor3 = Configs_HUB.Cor_Hub,
  795. Draggable = true,
  796. Active = true,
  797. Visible = visible
  798. })Corner(Toggle_Atalho)
  799.  
  800. local TextLabel = Create("TextLabel", Toggle_Atalho, {
  801. Size = UDim2.new(1, 0, 0, 20),
  802. TextSize = 20,
  803. Font = Configs_HUB.Text_Font,
  804. TextColor3 = Configs_HUB.Cor_Text,
  805. Text = name,
  806. BackgroundTransparency = 1
  807. })
  808.  
  809. local Button = Create("TextButton", Toggle_Atalho, {
  810. Size = UDim2.new(1, 0, 0, 40),
  811. Position = UDim2.new(0, 0, 0, 20),
  812. BackgroundTransparency = 1,
  813. Text = ""
  814. })
  815.  
  816. local Frame = Create("Frame", Button, {
  817. Position = UDim2.new(0.5, 0, 0.5, 0),
  818. AnchorPoint = Vector2.new(0.5, 0.5),
  819. Size = UDim2.new(1, -40, 1, -15),
  820. BackgroundTransparency = 1
  821. })Corner(Frame, {CornerRadius = UDim.new(2, 0)})
  822.  
  823. local Frame2 = Create("Frame", Frame, {
  824. Position = UDim2.new(0, 5, 0.5, 0),
  825. AnchorPoint = Vector2.new(0, 0.5),
  826. Size = UDim2.new(0, 17, 0, 17),
  827. BackgroundTransparency = 1
  828. })Corner(Frame2, {CornerRadius = UDim.new(5, 0)})
  829.  
  830. local stroke = Stroke(Frame, {
  831. Color = Color3.fromRGB(100, 100, 100),
  832. Thickness = 3
  833. })
  834.  
  835. local stroke = Stroke(Frame2, {
  836. Color = Color3.fromRGB(100, 100, 100),
  837. Thickness = 3
  838. })
  839.  
  840. local OnOff = false
  841. Callback(OnOff)
  842. Button.MouseButton1Click:Connect(function()
  843. if OnOff == false then
  844. CreateTween(Frame2, "Position", UDim2.new(1, -22, 0.5, 0), 0.2, false)
  845. else
  846. CreateTween(Frame2, "Position", UDim2.new(0, 5, 0.5, 0), 0.2, false)
  847. end
  848. OnOff = not OnOff
  849. Callback(OnOff)
  850. end)
  851.  
  852. return Toggle_Atalho
  853. end
  854.  
  855. function UpdateToggle(toggle, value)
  856. local Frame2 = toggle[1]
  857. local Stroke = toggle[2]
  858. local OnOff = value
  859. local Callback = toggle[4]
  860.  
  861. if OnOff then
  862. Callback(true)
  863. CreateTween(Frame2, "Position", UDim2.new(0, 10, 0.5, 0), 0.2, false)
  864. CreateTween(Frame2, "BackgroundColor3", Color3.fromRGB(30, 140, 200), 0.2, false)
  865. CreateTween(Stroke, "Color", Color3.fromRGB(30, 140, 200), 0.2, false)
  866. CreateTween(TextLabel, "TextColor3", Color3.fromRGB(30, 140, 200), 0.2, false)
  867. else
  868. Callback(false)
  869. CreateTween(Frame2, "Position", UDim2.new(0, 2, 0.5, 0), 0.2, false)
  870. CreateTween(Frame2, "BackgroundColor3", Configs_HUB.Cor_Stroke, 0.2, false)
  871. CreateTween(Stroke, "Color", Configs_HUB.Cor_Stroke, 0.2, false)
  872. CreateTween(TextLabel, "TextColor3", Configs_HUB.Cor_Text, 0.2, false)
  873. end
  874. end
  875.  
  876. function AddSlider(parent, Configs)
  877. local SliderName = Configs.Name or "Slider!!"
  878. local Increase = Configs.Increase or 1
  879. local MinValue = Configs.MinValue / Increase or 10 / Increase
  880. local MaxValue = Configs.MaxValue / Increase or 100 / Increase
  881. local Default = Configs.Default or 25
  882. local Callback = Configs.Callback or function() end
  883.  
  884. local Frame = Create("TextButton", parent, {
  885. Size = UDim2.new(1, 0, 0, 25),
  886. BackgroundColor3 = Configs_HUB.Cor_Options,
  887. Name = "Frame",
  888. Text = 0
  889. })Corner(Frame)Stroke(Frame)
  890.  
  891. local TextLabel = Create("TextButton", Frame, {
  892. TextSize = 12,
  893. TextColor3 = Configs_HUB.Cor_Text,
  894. Text = SliderName,
  895. Size = UDim2.new(1, 0, 1, 0),
  896. Position = UDim2.new(0, 150, 0, 0),
  897. BackgroundTransparency = 1,
  898. TextXAlignment = "Left",
  899. Font = Configs_HUB.Text_Font
  900. })TextSetColor(TextLabel)
  901.  
  902. local TextLabelNumber = Create("TextLabel", Frame, {
  903. Font = Configs_HUB.Text_Font,
  904. Size = UDim2.new(0, 20, 0, 20),
  905. Text = "...",
  906. Position = UDim2.new(0, 5, 0, 2.5),
  907. TextScaled = true,
  908. TextColor3 = Configs_HUB.Cor_Text,
  909. BackgroundTransparency = 1
  910. })
  911.  
  912. local SliderBar1 = Create("TextLabel", Frame, {
  913. Size = UDim2.new(0, 100, 0, 7.5),
  914. Position = UDim2.new(0, 35, 0.5, 0),
  915. AnchorPoint = Vector2.new(0, 0.5),
  916. BackgroundColor3 = Configs_HUB.Cor_Stroke,
  917. Text = ""
  918. })Corner(SliderBar1)
  919.  
  920. local SavePos = Create("Frame", SliderBar1, {
  921. Size = UDim2.new(0, 1, 0, 0),
  922. Visible = false
  923. })
  924.  
  925. local Slider = Create("Frame", SliderBar1, {
  926. BackgroundColor3 = Configs_HUB.Cor_Text,
  927. Size = UDim2.new(0, 7.5, 0, 15),
  928. Position = UDim2.new(0, 0, 0.5, 0),
  929. AnchorPoint = Vector2.new(0, 0.5),
  930. Active = true,
  931. Draggable = true
  932. })Corner(Slider)
  933.  
  934. local SliderBar2 = Create("Frame", SliderBar1, {
  935. BackgroundColor3 = Color3.fromRGB(30, 140, 200),
  936. Size = UDim2.new(0, Slider.Position.X.Offset, 1, 0)
  937. })Corner(SliderBar2)
  938.  
  939. local function UpdCounter(Value)
  940. local String = tostring(Value * Increase)
  941. if string.find(String, ".") then
  942. String = String:sub(1, 5)
  943. end
  944. TextLabelNumber.Text = String
  945. Callback(Value * Increase)
  946. end
  947.  
  948. local MouseEnterOrLeave = false
  949. Frame.MouseButton1Down:Connect(function()
  950. MouseEnterOrLeave = true
  951. while MouseEnterOrLeave do task.wait()
  952. local MousePos = UserInputService:GetMouseLocation().X - SavePos.AbsolutePosition.X
  953. Slider.Position = UDim2.new(0, MousePos, 0.5, 0)
  954. end
  955. end)
  956. Frame.MouseLeave:Connect(function()
  957. MouseEnterOrLeave = false
  958. end)
  959.  
  960. local function SliderSet(NewValue)
  961. local max, min = MaxValue * Increase, MinValue * Increase
  962. local SliderPos = (NewValue - min) / (max - min)
  963. local X_Offset = SliderPos * 100
  964. local SliderPosition = UDim2.new(0, X_Offset + 1, 0, 0)
  965. CreateTween(Slider, "Position", SliderPosition, 0.5, false)
  966. end
  967. SliderSet(Default)
  968.  
  969. Slider.Changed:Connect(function(prop)
  970. if prop == "Position" then
  971. Slider.Position = UDim2.new(0, math.clamp(Slider.Position.X.Offset, 0, 100), 0.5, 0)
  972. SliderBar2.Size = UDim2.new(0, Slider.Position.X.Offset, 1, 0)
  973. local SliderPos = Slider.Position.X.Offset / 100
  974. local A_1 = math.floor(((SliderPos * MaxValue) / MaxValue) * (MaxValue - MinValue) + MinValue)
  975. UpdCounter(A_1)
  976. end
  977. end)
  978. return {Slider, Increase, MaxValue, MinValue}
  979. end
  980.  
  981. function UpdateSlider(Slider, NewValue)
  982. local Frame = Slider[1]
  983. local Increase = Slider[2]
  984. local Max = Slider[3] * Increase
  985. local Min = Slider[4] * Increase
  986.  
  987. local SliderPos = (NewValue - Min) / (Max - Min)
  988. local X_Offset = SliderPos * 100
  989. local SliderPosition = UDim2.new(0, X_Offset + 1, 0, 0)
  990. CreateTween(Frame, "Position", SliderPosition, 0.5, false)
  991. end
  992.  
  993. function AddKeybind(parent, Configs)
  994. local KeybindName = Configs.Name or "Slider!!"
  995. local KeyCode = Configs.KeyCode or "E"
  996. local Default = Configs.Default or false
  997. local Callback = Configs.Callback or function() end
  998.  
  999. local Frame = Create("Frame", parent, {
  1000. Size = UDim2.new(1, 0, 0, 25),
  1001. BackgroundColor3 = Configs_HUB.Cor_Options,
  1002. Name = "Frame"
  1003. })Corner(Frame)Stroke(Frame)
  1004.  
  1005. local TextLabel = Create("TextButton", Frame, {
  1006. TextSize = 12,
  1007. TextColor3 = Configs_HUB.Cor_Text,
  1008. Text = KeybindName,
  1009. Size = UDim2.new(1, 0, 1, 0),
  1010. Position = UDim2.new(0, 35, 0, 0),
  1011. BackgroundTransparency = 1,
  1012. TextXAlignment = "Left",
  1013. Font = Configs_HUB.Text_Font
  1014. })
  1015.  
  1016. local Keybind = Create("TextLabel", Frame, {
  1017. Font = Configs_HUB.Text_Font,
  1018. Size = UDim2.new(0, 18, 0, 18),
  1019. Text = KeyCode,
  1020. Position = UDim2.new(0, 5, 0, 3.5),
  1021. TextScaled = true,
  1022. TextColor3 = Configs_HUB.Cor_Text,
  1023. BackgroundTransparency = 1
  1024. })Corner(Keybind)Stroke(Keybind)
  1025.  
  1026. local OnOff = Default
  1027. UserInputService.InputBegan:Connect(function(input)
  1028. if input.KeyCode == Enum.KeyCode[KeyCode] then
  1029. OnOff = not OnOff
  1030. Callback(OnOff)
  1031. end
  1032. end)
  1033. TextSetColor(TextLabel)
  1034. end
  1035.  
  1036. function AddTextBox(parent, Configs)
  1037. local TextBoxName = Configs.Name or "TextBox!!"
  1038. local Default = Configs.Default or "TextBox"
  1039. local placeholderText = Configs.PlaceholderText or "TextBox"
  1040. local ClearText = Configs.ClearText or false
  1041. local Callback = Configs.Callback or function() end
  1042.  
  1043. local Frame = Create("Frame", parent, {
  1044. Size = UDim2.new(1, 0, 0, 25),
  1045. BackgroundColor3 = Configs_HUB.Cor_Options,
  1046. Name = "Frame"
  1047. })Corner(Frame)Stroke(Frame)
  1048.  
  1049. local TextLabel = Create("TextButton", Frame, {
  1050. TextSize = 12,
  1051. TextColor3 = Configs_HUB.Cor_Text,
  1052. Text = TextBoxName,
  1053. Size = UDim2.new(1, 0, 1, 0),
  1054. Position = UDim2.new(0, 150, 0, 0),
  1055. BackgroundTransparency = 1,
  1056. TextXAlignment = "Left",
  1057. Font = Configs_HUB.Text_Font
  1058. })
  1059. TextSetColor(TextLabel)
  1060.  
  1061. local TextBox = Create("TextBox", Frame, {
  1062. Size = UDim2.new(0, 120, 0, 20),
  1063. Position = UDim2.new(0, 15, 0, 2.5),
  1064. TextColor3 = Configs_HUB.Cor_Text,
  1065. Text = Default,
  1066. ClearTextOnFocus = ClearText,
  1067. PlaceholderText = placeholderText,
  1068. TextScaled = true,
  1069. Font = Configs_HUB.Text_Font,
  1070. BackgroundTransparency = 1
  1071. })
  1072.  
  1073. local Line = Create("Frame", TextBox, {
  1074. Size = UDim2.new(1, 0, 0, 1),
  1075. Position = UDim2.new(0.5, 0, 1, 0),
  1076. AnchorPoint = Vector2.new(0.5, 0.5),
  1077. BackgroundColor3 = Configs_HUB.Cor_Stroke,
  1078. BorderSizePixel = 0
  1079. })
  1080.  
  1081. TextBox.MouseEnter:Connect(function()
  1082. CreateTween(Line, "Size", UDim2.new(0, 0, 0, 1), 0.3, true)
  1083. CreateTween(Line, "Size", UDim2.new(1, 0, 0, 1), 0.3, true)
  1084. end)
  1085.  
  1086. TextBox.FocusLost:Connect(function()
  1087. Callback(TextBox.Text)
  1088. end)
  1089. end
  1090.  
  1091. function AddColorPicker(parent, Configs)
  1092. local name = Configs.Name or "Color Picker"
  1093. local Default = Configs.Default or Color3.fromRGB(0, 0, 200)
  1094. local Callback = Configs.Callback or function() end
  1095. local ColorH, ColorS, ColorV = 1, 1, 1
  1096. Callback(Default)
  1097.  
  1098. local TextButton = Create("Frame", parent, {
  1099. Size = UDim2.new(1, 0, 0, 25),
  1100. BackgroundColor3 = Configs_HUB.Cor_Options,
  1101. })Stroke(TextButton)Corner(TextButton)
  1102.  
  1103. local click = Create("TextButton", TextButton, {
  1104. Size = UDim2.new(1, 0, 0, 25),
  1105. BackgroundTransparency = 1,
  1106. AutoButtonColor = false,
  1107. Text = ""
  1108. })
  1109.  
  1110. local TextLabel = Create("TextLabel", TextButton, {
  1111. Size = UDim2.new(1, -10, 0, 25),
  1112. Position = UDim2.new(0, 35, 0, 0),
  1113. TextSize = 12,
  1114. TextColor3 = Configs_HUB.Cor_Text,
  1115. TextXAlignment = "Left",
  1116. Text = name,
  1117. Font = Configs_HUB.Text_Font,
  1118. BackgroundTransparency = 1
  1119. })
  1120.  
  1121. local picker = Create("Frame", TextButton, {
  1122. Size = UDim2.new(0, 20, 0, 20),
  1123. Position = UDim2.new(0, 5, 0, 2.5),
  1124. BackgroundColor3 = Default
  1125. })Corner(picker)Stroke(picker)
  1126.  
  1127. local UI_Grade = Create("ImageButton", TextButton, {
  1128. Size = UDim2.new(1, -100, 1, tonumber(-TextButton.Size.Y.Offset - 20)),
  1129. Position = UDim2.new(0, 10, 0, tonumber(TextButton.Size.Y.Offset + 12.5)),
  1130. Visible = false,
  1131. Image = "rbxassetid://4155801252"
  1132. })Corner(UI_Grade)Stroke(UI_Grade)local SavePos = Create("Frame", UI_Grade, {Visible = false})
  1133.  
  1134. local grade = Create("TextButton", TextButton, {
  1135. Size = UDim2.new(0, 30, 1, tonumber(-TextButton.Size.Y.Offset - 20)),
  1136. Position = UDim2.new(1, -10, 0, tonumber(TextButton.Size.Y.Offset + 12.5)),
  1137. AnchorPoint = Vector2.new(1, 0),
  1138. Visible = false,
  1139. Text = ""
  1140. })Corner(grade)Stroke(grade)Create("UIGradient", grade, {
  1141. Rotation = 90,
  1142. Color = ColorSequence.new({
  1143. ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 0, 4)),
  1144. ColorSequenceKeypoint.new(0.20, Color3.fromRGB(234, 255, 0)),
  1145. ColorSequenceKeypoint.new(0.40, Color3.fromRGB(21, 255, 0)),
  1146. ColorSequenceKeypoint.new(0.60, Color3.fromRGB(0, 255, 255)),
  1147. ColorSequenceKeypoint.new(0.80, Color3.fromRGB(0, 17, 255)),
  1148. ColorSequenceKeypoint.new(0.90, Color3.fromRGB(255, 0, 251)),
  1149. ColorSequenceKeypoint.new(1.00, Color3.fromRGB(255, 0, 4))
  1150. })
  1151. })local SavePos2 = Create("Frame", grade, {Visible = false, Size = UDim2.new(1, 0, 0, 0)})
  1152.  
  1153. local A_1 = Create("Frame", TextButton, {
  1154. Size = UDim2.new(1, 0, 0, 0),
  1155. Position = UDim2.new(0, 0, 0, 30),
  1156. Visible = false
  1157. })Stroke(A_1)
  1158.  
  1159. local Select1 = Create("Frame", grade, {
  1160. Size = UDim2.new(1, 0, 0, 10),
  1161. Position = UDim2.new(0, 0, 0, select(3, Color3.toHSV(Default))),
  1162. BackgroundTransparency = 1,
  1163. Active = true,
  1164. Draggable = true
  1165. })Corner(Select1, {CornerRadius = UDim.new(2, 0)})Stroke(Select1, {Color = Color3.fromRGB(255, 255, 255)})
  1166.  
  1167. local Select2 = Create("Frame", UI_Grade, {
  1168. Size = UDim2.new(0, 15, 0, 15),
  1169. Position = UDim2.new(0, select(2, Color3.toHSV(Default)), 0, select(1, Color3.toHSV(Default))),
  1170. BackgroundTransparency = 1,
  1171. Active = true,
  1172. Draggable = true
  1173. })Corner(Select2, {CornerRadius = UDim.new(2, 0)})Stroke(Select2, {Color = Color3.fromRGB(255, 255, 255)})
  1174.  
  1175. UI_Grade.MouseButton1Click:Connect(function()
  1176. local mouse = UserInputService:GetMouseLocation()
  1177. local savepos = SavePos.AbsolutePosition
  1178. CreateTween(Select2, "Position", UDim2.new(0, mouse.X - savepos.X, 0, tonumber(mouse.Y - savepos.Y) - 35), 0.3, false)
  1179. end)
  1180.  
  1181. grade.MouseButton1Click:Connect(function()
  1182. local mouse = UserInputService:GetMouseLocation().Y - 35
  1183. local savepos = SavePos2.AbsolutePosition.Y
  1184. CreateTween(Select1, "Position", UDim2.new(0, 0, 0, mouse - savepos), 0.3, false)
  1185. end)
  1186.  
  1187. local function callback()Callback(Color3.fromHSV(ColorH, ColorS, ColorV))end
  1188. local function updcolorpicker()
  1189. ColorH = tonumber(Select1.Position.Y.Offset) / 80
  1190. ColorS = tonumber(215 - Select2.Position.X.Offset) / 215
  1191. ColorV = tonumber(75 - Select2.Position.Y.Offset) / 75
  1192. UI_Grade.ImageColor3 = Color3.fromHSV(ColorH, 1, 1)
  1193. picker.BackgroundColor3 = Color3.fromHSV(ColorH, ColorS, ColorV)
  1194. callback()
  1195. end
  1196.  
  1197. updcolorpicker()
  1198.  
  1199. Select1.Changed:Connect(function(prop)
  1200. if prop == "Position" then
  1201. Select1.Position = UDim2.new(0, 0, 0, math.clamp(Select1.Position.Y.Offset, 0, 80))
  1202. updcolorpicker()
  1203. end
  1204. end)
  1205.  
  1206. Select2.Changed:Connect(function(prop)
  1207. if prop == "Position" then
  1208. Select2.Position = UDim2.new(0, math.clamp(Select2.Position.X.Offset, 0, 222), 0, math.clamp(Select2.Position.Y.Offset, 0, 75))
  1209. updcolorpicker()
  1210. end
  1211. end)
  1212.  
  1213. TextButton.Changed:Connect(function(prop)
  1214. if prop == "Size" then
  1215. if TextButton.Size.Y.Offset >= 60 then
  1216. picker.Position = UDim2.new(0, 5, 0, 5)
  1217. UI_Grade.Visible = true
  1218. A_1.Visible = true
  1219. grade.Visible = true
  1220. else
  1221. picker.Position = UDim2.new(0, 5, 0, 2.5)
  1222. UI_Grade.Visible = false
  1223. A_1.Visible = false
  1224. grade.Visible = false
  1225. end
  1226. end
  1227. end)
  1228.  
  1229. local onoff = false
  1230. click.MouseButton1Click:Connect(function()
  1231. onoff = not onoff
  1232. if onoff == true then
  1233. local tween = TweenService:Create(TextButton, TweenInfo.new(0.2, Enum.EasingStyle.Linear),
  1234. {Size = UDim2.new(1, 0, 0, 140)})tween:play()tween.Completed:Wait()
  1235. else
  1236. local tween = TweenService:Create(TextButton, TweenInfo.new(0.2, Enum.EasingStyle.Linear),
  1237. {Size = UDim2.new(1, 0, 0, 25)})tween:play()tween.Completed:Wait()
  1238. end
  1239. end)
  1240. end
  1241.  
  1242. function AddDropdown(parent, Configs)
  1243. local DropdownName = Configs.Name or "Dropdown!!"
  1244. local Default = Configs.Default or "TextBox"
  1245. local Options = Configs.Options or {"1", "2", "3"}
  1246. local Default = Configs.Default or "2"
  1247. local Callback = Configs.Callback or function() end
  1248.  
  1249. local TextButton = Create("TextButton", parent, {
  1250. Size = UDim2.new(1, 0, 0, 25),
  1251. BackgroundColor3 = Configs_HUB.Cor_Options,
  1252. Name = "Frame",
  1253. Text = "",
  1254. AutoButtonColor = false
  1255. })Corner(Frame)Stroke(Frame)
  1256.  
  1257. local TextLabel = Create("TextLabel", TextButton, {
  1258. TextSize = 12,
  1259. TextColor3 = Configs_HUB.Cor_Text,
  1260. Text = DropdownName,
  1261. Size = UDim2.new(1, 0, 0, 25),
  1262. Position = UDim2.new(0, 35, 0, 0),
  1263. BackgroundTransparency = 1,
  1264. TextXAlignment = "Left",
  1265. Font = Configs_HUB.Text_Font
  1266. })TextSetColor(TextLabel)
  1267.  
  1268. local Line = Create("Frame", TextButton, {
  1269. Size = UDim2.new(1, 0, 0, 1),
  1270. Position = UDim2.new(0, 0, 0, 25),
  1271. BorderSizePixel = 0,
  1272. BackgroundColor3 = Configs_HUB.Cor_Stroke,
  1273. Visible = false
  1274. })
  1275.  
  1276. local Arrow = Create("ImageLabel", TextButton, {
  1277. Image = "rbxassetid://6031090990",
  1278. Size = UDim2.new(0, 25, 0, 25),
  1279. Position = UDim2.new(0, 5, 0, 0),
  1280. BackgroundTransparency = 1
  1281. })
  1282.  
  1283. local DefaultText = Create("TextLabel", TextButton, {
  1284. BackgroundColor3 = Configs_HUB.Cor_Hub,
  1285. BackgroundTransparency = 0.1,
  1286. Position = UDim2.new(1, -20, 0, 2.5),
  1287. AnchorPoint = Vector2.new(1, 0),
  1288. Size = UDim2.new(0, 100, 0, 20),
  1289. TextColor3 = Configs_HUB.Cor_DarkText,
  1290. TextScaled = true,
  1291. Font = Configs_HUB.Text_Font,
  1292. Text = "..."
  1293. })Corner(DefaultText)Stroke(DefaultText)
  1294.  
  1295. local ScrollBar = Create("ScrollingFrame", TextButton, {
  1296. Size = UDim2.new(1, 0, 1, -25),
  1297. Position = UDim2.new(0, 0, 0, 25),
  1298. CanvasSize = UDim2.new(),
  1299. ScrollingDirection = "Y",
  1300. AutomaticCanvasSize = "Y",
  1301. BackgroundTransparency = 1,
  1302. ScrollBarThickness = 2
  1303. })Create("UIPadding", ScrollBar, {
  1304. PaddingLeft = UDim.new(0, 10),
  1305. PaddingRight = UDim.new(0, 10),
  1306. PaddingTop = UDim.new(0, 10),
  1307. PaddingBottom = UDim.new(0, 10)
  1308. })Create("UIListLayout", ScrollBar, {
  1309. Padding = UDim.new(0, 5)
  1310. })
  1311.  
  1312. local function AddOption(OptionName)
  1313. local TextButton = Create("TextButton", ScrollBar, {
  1314. Size = UDim2.new(1, 0, 0, 15),
  1315. Text = OptionName,
  1316. Font = Configs_HUB.Text_Font,
  1317. TextSize = 12,
  1318. TextColor3 = Color3.fromRGB(180, 180, 180),
  1319. BackgroundTransparency = 1
  1320. })Corner(TextButton)
  1321.  
  1322. local SelectTable = {}
  1323. local OnOff = false
  1324. if OptionName == Default then
  1325. OnOff = true
  1326. TextButton.BackgroundTransparency = 0.8
  1327. TextButton.TextColor3 = Configs_HUB.Cor_Text
  1328. DefaultText.Text = OptionName
  1329. Callback(OptionName)
  1330. end
  1331.  
  1332. TextButton.MouseButton1Click:Connect(function()
  1333. for _,v in pairs(ScrollBar:GetChildren()) do
  1334. if v:IsA("TextButton") then
  1335. v.BackgroundTransparency = 1
  1336. v.TextColor3 = Color3.fromRGB(180, 180, 180)
  1337. end
  1338. end
  1339. DefaultText.Text = OptionName
  1340. Callback(OptionName)
  1341. TextButton.BackgroundTransparency = 0.8
  1342. TextButton.TextColor3 = Configs_HUB.Cor_Text
  1343. end)
  1344. end
  1345.  
  1346. for _,v in pairs(Options) do
  1347. AddOption(v)
  1348. end
  1349.  
  1350. local DropOnOff = false
  1351. TextButton.MouseButton1Click:Connect(function()
  1352. local OptionSize, OptionsNumber = 25, 0
  1353. for _,v in pairs(ScrollBar:GetChildren()) do
  1354. if v:IsA("TextButton") and OptionsNumber < 5 then
  1355. OptionsNumber = OptionsNumber + 1
  1356. OptionSize = OptionSize + tonumber(v.Size.Y.Offset + 10)
  1357. end
  1358. end
  1359. if not DropOnOff then
  1360. CreateTween(TextButton, "Size", UDim2.new(1, 0, 0, OptionSize), 0.3, false)
  1361. CreateTween(Arrow, "Rotation", 180, 0.3, false)
  1362. DropOnOff = true
  1363. Line.Visible = true
  1364. else
  1365. CreateTween(TextButton, "Size", UDim2.new(1, 0, 0, 25), 0.3, false)
  1366. CreateTween(Arrow, "Rotation", 0, 0.3, true)
  1367. DropOnOff = false
  1368. Line.Visible = false
  1369. end
  1370. end)
  1371. return {ScrollBar, Default, Callback, DefaultText}
  1372. end
  1373.  
  1374. function UpdateDropdown(Dropdown, NewOptions)
  1375. local ScrollBar = Dropdown[1]
  1376. local Default = Dropdown[2]
  1377. local Callback = Dropdown[3]
  1378. local DefaultText = Dropdown[4]
  1379.  
  1380. for _,v in pairs(ScrollBar:GetChildren()) do
  1381. if v:IsA("TextButton") then
  1382. v:Destroy()
  1383. end
  1384. end
  1385.  
  1386. local function AddOption(OptionName)
  1387. local TextButton = Create("TextButton", ScrollBar, {
  1388. Size = UDim2.new(1, 0, 0, 15),
  1389. Text = OptionName,
  1390. Font = Configs_HUB.Text_Font,
  1391. TextSize = 12,
  1392. TextColor3 = Color3.fromRGB(180, 180, 180),
  1393. BackgroundTransparency = 1
  1394. })Corner(TextButton)
  1395.  
  1396. local SelectTable = {}
  1397. local OnOff = false
  1398. if OptionName == Default then
  1399. OnOff = true
  1400. TextButton.BackgroundTransparency = 0.8
  1401. TextButton.TextColor3 = Configs_HUB.Cor_Text
  1402. DefaultText.Text = OptionName
  1403. Callback(OptionName)
  1404. else
  1405. DefaultText.Text = "..."
  1406. end
  1407.  
  1408. TextButton.MouseButton1Click:Connect(function()
  1409. for _,v in pairs(ScrollBar:GetChildren()) do
  1410. if v:IsA("TextButton") then
  1411. v.BackgroundTransparency = 1
  1412. v.TextColor3 = Color3.fromRGB(180, 180, 180)
  1413. end
  1414. end
  1415. DefaultText.Text = OptionName
  1416. Callback(OptionName)
  1417. TextButton.BackgroundTransparency = 0.8
  1418. TextButton.TextColor3 = Configs_HUB.Cor_Text
  1419. end)
  1420. end
  1421.  
  1422. for _,v in pairs(NewOptions) do
  1423. AddOption(v)
  1424. end
  1425. end
  1426.  
  1427. function AddTextLabel(parent, Configs)
  1428. local LabelName = Configs[1] or Configs.Name or "Text Label!!"
  1429.  
  1430. local Frame = Create("Frame", parent, {
  1431. Size = UDim2.new(1, 0, 0, 25),
  1432. BackgroundColor3 = Configs_HUB.Cor_Options,
  1433. Name = "Frame"
  1434. })Corner(Frame)Stroke(Frame)
  1435.  
  1436. local TextButton = Create("TextButton", Frame, {
  1437. TextSize = 12,
  1438. TextColor3 = Configs_HUB.Cor_Text,
  1439. Text = LabelName,
  1440. Size = UDim2.new(1, 0, 0, 25),
  1441. Position = UDim2.new(0, 20, 0, 0),
  1442. BackgroundTransparency = 1,
  1443. TextXAlignment = "Left",
  1444. Font = Configs_HUB.Text_Font
  1445. })
  1446. TextSetColor(TextButton)
  1447. return TextButton
  1448. end
  1449.  
  1450. function SetLabel(label, NewValue)
  1451. label.Text = NewValue
  1452. end
  1453.  
  1454. function AddImageLabel(parent, Configs)
  1455. local LabelName = Configs[1] or Configs.Name or ""
  1456. local LabelImage = Configs[2] or Configs.Image or "Image Label"
  1457.  
  1458. local Frame = Create("Frame", parent, {
  1459. Size = UDim2.new(0, 95, 0, 110),
  1460. BackgroundColor3 = Configs_HUB.Cor_Options,
  1461. Name = "Frame"
  1462. })Corner(Frame)Stroke(Frame)
  1463.  
  1464. local TextButton = Create("TextButton", Frame, {
  1465. TextSize = 12,
  1466. TextColor3 = Configs_HUB.Cor_Text,
  1467. Text = LabelName,
  1468. Size = UDim2.new(1, 0, 0, 25),
  1469. BackgroundTransparency = 1,
  1470. Font = Configs_HUB.Text_Font
  1471. })
  1472.  
  1473. local ImageLabel = Create("ImageLabel", Frame, {
  1474. Image = LabelImage,
  1475. Size = UDim2.new(0, 75, 0, 75),
  1476. Position = UDim2.new(0, 10, 0, 25)
  1477. })
  1478. TextSetColor(TextButton)
  1479. return ImageLabel
  1480. end
  1481.  
  1482. function SetImage(label, NewImage)
  1483. label.Image = NewImage
  1484. end
  1485.  
  1486. function AddParagraph(parent, Configs)
  1487. local ParagraphName1 = Configs[1] or Configs.Title or "Paragraph!!"
  1488. local ParagraphName2 = Configs[1] or Configs.Text or "Paragraph!!"
  1489.  
  1490. local Frame = Create("Frame", parent, {
  1491. Size = UDim2.new(1, 0, 0, 25),
  1492. BackgroundColor3 = Configs_HUB.Cor_Options,
  1493. Name = "Frame",
  1494. AutomaticSize = "Y"
  1495. })Corner(Frame)Stroke(Frame)Create("UIListLayout", Frame)Create("UIPadding", Frame, {
  1496. PaddingLeft = UDim.new(0, 20), PaddingRight = UDim.new(0, 10), PaddingTop = UDim.new(0, 5), PaddingBottom = UDim.new(0, 5)
  1497. })
  1498.  
  1499. local TextButton = Create("TextButton", Frame, {
  1500. Name = "Frame",
  1501. TextSize = 12,
  1502. TextColor3 = Configs_HUB.Cor_Text,
  1503. Text = ParagraphName1,
  1504. Size = UDim2.new(1, 0, 0, 0),
  1505. AutomaticSize = "Y",
  1506. BackgroundTransparency = 1,
  1507. TextXAlignment = "Left",
  1508. TextYAlignment = "Top",
  1509. Font = Configs_HUB.Text_Font,
  1510. TextWrapped = true
  1511. })TextSetColor(TextButton)
  1512.  
  1513. local TextLabel = Create("TextLabel", Frame, {
  1514. Name = "Frame",
  1515. Size = UDim2.new(1, 0, 0, 0),
  1516. BackgroundTransparency = 1,
  1517. AutomaticSize = "Y",
  1518. TextXAlignment = "Left",
  1519. TextYAlignment = "Top",
  1520. TextColor3 = Configs_HUB.Cor_DarkText,
  1521. TextSize = 11,
  1522. Text = ParagraphName2,
  1523. Font = Configs_HUB.Text_Font,
  1524. TextWrapped = true
  1525. })
  1526. return {TextButton, TextLabel}
  1527. end
  1528.  
  1529. function SetParagraph(Paragraph, NewValue)
  1530. Paragraph[1].Text = NewValue[1]
  1531. Paragraph[2].Text = NewValue[2]
  1532. end
  1533.  
  1534. function AddSection(parent, Configs)
  1535. local SectionName = Configs[1] or Configs.Name or "Section!!"
  1536.  
  1537. local Frame = Create("Frame", parent, {
  1538. Size = UDim2.new(1, 0, 0, 25),
  1539. BackgroundColor3 = Configs_HUB.Cor_Hub,
  1540. Name = "Frame",
  1541. Transparency = 1
  1542. })Corner(Frame)
  1543.  
  1544. local TextButton = Create("TextButton", Frame, {
  1545. TextSize = 12,
  1546. TextColor3 = Configs_HUB.Cor_DarkText,
  1547. Text = SectionName,
  1548. Size = UDim2.new(1, 0, 0, 25),
  1549. Position = UDim2.new(0, 10, 0, 0),
  1550. BackgroundTransparency = 1,
  1551. TextXAlignment = "Left",
  1552. Font = Configs_HUB.Text_Font
  1553. })
  1554. return TextButton
  1555. end
  1556.  
  1557. function SetSection(Section, NewName)
  1558. Section.Text = NewName
  1559. end
  1560.  
  1561. function AddDiscord(parent, Configs)
  1562. local DiscordLink = Configs[1] or Configs.DiscordLink or "https://discord.gg/"
  1563. local DiscordIcon = Configs[2] or Configs.DiscordIcon or "rbxassetid://"
  1564. local DiscordTitle = Configs[3] or Configs.DiscordTitle or ""
  1565.  
  1566. local Frame = Create("Frame", parent, {
  1567. Size = UDim2.new(1, 0, 0, 110),
  1568. BackgroundColor3 = Color3.fromRGB(30, 30, 30),
  1569. Name = "Frame",
  1570. AutomaticSize = "Y"
  1571. })
  1572.  
  1573. local LinkLabel = Create("TextLabel", Frame, {
  1574. Size = UDim2.new(1, 0, 0, 25),
  1575. Text = DiscordLink,
  1576. TextXAlignment = "Left",
  1577. BackgroundTransparency = 1,
  1578. Position = UDim2.new(0, 12, 0, 0),
  1579. TextColor3 = Color3.fromRGB(0, 120, 255),
  1580. Font = Enum.Font.GothamBold,
  1581. TextSize = 14
  1582. })
  1583.  
  1584. local TitleLabel = Create("TextLabel", Frame, {
  1585. Size = UDim2.new(1, 0, 0, 25),
  1586. Text = DiscordTitle,
  1587. TextXAlignment = "Left",
  1588. BackgroundTransparency = 1,
  1589. Position = UDim2.new(0, 60, 0, 25),
  1590. TextColor3 = Color3.fromRGB(200, 200, 200),
  1591. Font = Enum.Font.GothamBold,
  1592. TextSize = 14
  1593. })
  1594.  
  1595. local IconLabel = Create("ImageLabel", Frame, {
  1596. Size = UDim2.new(0, 40, 0, 40),
  1597. AnchorPoint = Vector2.new(0, 0.5),
  1598. Position = UDim2.new(0, 12, 0.45, 0),
  1599. Image = DiscordIcon
  1600. })Corner(IconLabel)
  1601.  
  1602. local JoinButton = Create("TextButton", Frame, {
  1603. Size = UDim2.new(1, -24, 0, 25),
  1604. AnchorPoint = Vector2.new(0.5, 1),
  1605. Position = UDim2.new(0.5, 0, 1, -8),
  1606. Text = "Join",
  1607. Font = Enum.Font.GothamBold,
  1608. TextSize = 15,
  1609. TextColor3 = Color3.fromRGB(220, 220, 220),
  1610. BackgroundColor3 = Color3.fromRGB(50, 200, 50)
  1611. })Corner(IconLabel)
  1612.  
  1613. local time = tick()
  1614. ClickConter = 0
  1615. JoinButton.MouseButton1Click:Connect(function()
  1616. if ClickConter == 0 or tick() - time > 5 then time = tick() setclipboard(DiscordLink) ClickConter = ClickConter + 1
  1617. JoinButton.Text = "Copied to Clipboard"
  1618. JoinButton.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
  1619. JoinButton.TextColor3 = Color3.fromRGB(150, 150, 150)
  1620. task.wait(5)
  1621. JoinButton.Text = "Join"
  1622. JoinButton.BackgroundColor3 = Color3.fromRGB(50, 200, 50)
  1623. JoinButton.TextColor3 = Color3.fromRGB(220, 220, 220)
  1624. end
  1625. end)
  1626. end
  1627. return Menu
  1628. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement