Joey6555

System UI

Dec 14th, 2024 (edited)
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 54.15 KB | None | 0 0
  1. local Library = {}
  2.  
  3. --// Service
  4. local RunService = game:GetService("RunService")
  5. local LocalPlayer = game:GetService("Players").LocalPlayer
  6. local Mouse = LocalPlayer:GetMouse()
  7. local UserInputService = game:GetService("UserInputService")
  8. local TweenService = game:GetService("TweenService")
  9. local TweenInfo = TweenInfo.new
  10.  
  11. --// Init
  12. local LocalizationService = game:GetService("LocalizationService");
  13. local http = game:GetService("HttpService");
  14. local LocalPlayer = game:GetService("Players").LocalPlayer;
  15. local NameID = LocalPlayer.Name;
  16. local GameName = game:GetService("MarketplaceService"):GetProductInfo(game.PlaceId).Name;
  17.  
  18. local utility = {};
  19. local Objects = {};
  20.  
  21. function utility:Tween(instance, properties, duration, ...)
  22. TweenService:Create(instance, TweenInfo(duration, ...), properties):Play()
  23. end;
  24.  
  25. local SettingToggle = {}
  26.  
  27. local Name = "BTConfig.JSON"
  28.  
  29. pcall(function()
  30. if not pcall(function() readfile(Name) end) then
  31. writefile(Name, game:service'HttpService':JSONEncode(SettingToggle))
  32. end
  33.  
  34. Settings = game:service'HttpService':JSONEncode(readfile(Name))
  35. end)
  36.  
  37. local LibName = tostring(math.random(1, 100))..tostring(math.random(1,50))..tostring(math.random(1, 100));
  38.  
  39. function Library:ToggleUI()
  40. if game.CoreGui[LibName].Enabled then
  41. game.CoreGui[LibName].Enabled = false
  42. else
  43. game.CoreGui[LibName].Enabled = true
  44. end
  45. end
  46.  
  47. function Library:DestroyGui()
  48. if game.CoreGui[LibName] then
  49. game.CoreGui[LibName]:Destroy()
  50. end
  51. end
  52.  
  53. function Library:CreateWindow(hubname)
  54.  
  55. table.insert(Library, hubname);
  56. for i,v in pairs(game.CoreGui:GetChildren()) do
  57. if v:IsA("ScreenGui") and v.Name == hubname then
  58. v:Destroy();
  59. end;
  60. end;
  61.  
  62. -- Instances:
  63. local ScreenGui = Instance.new("ScreenGui")
  64. local Body = Instance.new("Frame")
  65. local Body_Corner = Instance.new("UICorner")
  66. local Title_Hub = Instance.new("TextLabel")
  67. local MInimize_Button = Instance.new("TextButton")
  68. local Discord = Instance.new("TextButton")
  69. local UICorner = Instance.new("UICorner")
  70. local Disc_Logo = Instance.new("ImageLabel")
  71. local Disc_Title = Instance.new("TextLabel")
  72. local Server_Time = Instance.new("TextLabel")
  73. local Server_ID = Instance.new("TextLabel")
  74. local List_Tile = Instance.new("Frame")
  75. local Tile_Gradient = Instance.new("UIGradient")
  76. local Toggle = Instance.new("Frame")
  77. local toggle_corner = Instance.new("UICorner")
  78. local toggle_Image = Instance.new("ImageButton")
  79.  
  80. -- Properties:
  81. ScreenGui.Name = LibName
  82. ScreenGui.Parent = game.CoreGui
  83. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Global
  84.  
  85. game:GetService("UserInputService").InputBegan:connect(function(input)
  86. if input.KeyCode == Enum.KeyCode.LeftControl then
  87. Library:ToggleUI()
  88. end
  89. end)
  90.  
  91. Body.Name = "Body"
  92. Body.Parent = ScreenGui
  93. Body.BackgroundColor3 = Color3.fromRGB(12, 12, 12)
  94. Body.BorderColor3 = Color3.fromRGB(0, 0, 0)
  95. Body.BorderSizePixel = 0
  96. Body.Position = UDim2.new(0.258427024, 0, 0.217948765, 0)
  97. Body.Size = UDim2.new(0, 600, 0, 350)
  98. Body.ClipsDescendants = true
  99.  
  100. Body_Corner.CornerRadius = UDim.new(0, 5)
  101. Body_Corner.Name = "Body_Corner"
  102. Body_Corner.Parent = Body
  103.  
  104. Title_Hub.Name = "Title_Hub"
  105. Title_Hub.Parent = Body
  106. Title_Hub.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  107. Title_Hub.BackgroundTransparency = 1.000
  108. Title_Hub.BorderColor3 = Color3.fromRGB(0, 0, 0)
  109. Title_Hub.BorderSizePixel = 0
  110. Title_Hub.Position = UDim2.new(0, 5, 0, 0)
  111. Title_Hub.Size = UDim2.new(0, 558, 0, 30)
  112. Title_Hub.Font = Enum.Font.SourceSansBold
  113. Title_Hub.Text = hubname .. " - " .. GameName
  114. Title_Hub.TextColor3 = Color3.fromRGB(255, 255, 255)
  115. Title_Hub.TextSize = 15.000
  116. Title_Hub.TextXAlignment = Enum.TextXAlignment.Left
  117.  
  118. MInimize_Button.Name = "MInimize_Button"
  119. MInimize_Button.Parent = Body
  120. MInimize_Button.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  121. MInimize_Button.BackgroundTransparency = 1.000
  122. MInimize_Button.BorderColor3 = Color3.fromRGB(0, 0, 0)
  123. MInimize_Button.BorderSizePixel = 0
  124. MInimize_Button.Position = UDim2.new(0, 570, 0, 0)
  125. MInimize_Button.Rotation = -315
  126. MInimize_Button.Size = UDim2.new(0, 30, 0, 30)
  127. MInimize_Button.AutoButtonColor = false
  128. MInimize_Button.Font = Enum.Font.SourceSans
  129. MInimize_Button.Text = "+"
  130. MInimize_Button.TextColor3 = Color3.fromRGB(255, 255, 255)
  131. MInimize_Button.TextSize = 40.000
  132. MInimize_Button.TextStrokeColor3 = Color3.fromRGB(255, 255, 255)
  133.  
  134. Discord.Name = "Discord"
  135. Discord.Parent = Body
  136. Discord.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  137. Discord.BorderColor3 = Color3.fromRGB(0, 0, 0)
  138. Discord.BorderSizePixel = 0
  139. Discord.Position = UDim2.new(0, 5, 0, 320)
  140. Discord.Size = UDim2.new(0, 85, 0, 25)
  141. Discord.AutoButtonColor = false
  142. Discord.Font = Enum.Font.SourceSans
  143. Discord.Text = ""
  144. Discord.TextColor3 = Color3.fromRGB(0, 0, 0)
  145. Discord.TextSize = 14.000
  146.  
  147. UICorner.CornerRadius = UDim.new(0, 5)
  148. UICorner.Parent = Discord
  149.  
  150. Disc_Logo.Name = "Disc_Logo"
  151. Disc_Logo.Parent = Discord
  152. Disc_Logo.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  153. Disc_Logo.BackgroundTransparency = 1.000
  154. Disc_Logo.BorderColor3 = Color3.fromRGB(0, 0, 0)
  155. Disc_Logo.BorderSizePixel = 0
  156. Disc_Logo.Position = UDim2.new(0, 5, 0, 1)
  157. Disc_Logo.Size = UDim2.new(0, 23, 0, 23)
  158. Disc_Logo.Image = "http://www.roblox.com/asset/?id=12058969086"
  159.  
  160. Disc_Title.Name = "Disc_Title"
  161. Disc_Title.Parent = Discord
  162. Disc_Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  163. Disc_Title.BackgroundTransparency = 1.000
  164. Disc_Title.BorderColor3 = Color3.fromRGB(0, 0, 0)
  165. Disc_Title.BorderSizePixel = 0
  166. Disc_Title.Position = UDim2.new(0, 35, 0, 0)
  167. Disc_Title.Size = UDim2.new(0, 40, 0, 25)
  168. Disc_Title.Font = Enum.Font.SourceSansSemibold
  169. Disc_Title.Text = "Discord"
  170. Disc_Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  171. Disc_Title.TextSize = 14.000
  172. Disc_Title.TextXAlignment = Enum.TextXAlignment.Left
  173.  
  174. Discord.MouseEnter:Connect(function()
  175. utility:Tween(Discord, {BackgroundColor3 = Color3.fromRGB(30, 30, 30)}, .15)
  176. utility:Tween(Disc_Logo, {ImageTransparency = 0.7}, .15)
  177. utility:Tween(Disc_Title, {TextTransparency = 0.7}, .15)
  178. end)
  179.  
  180. Discord.MouseLeave:connect(function()
  181. utility:Tween(Discord, {BackgroundColor3 = Color3.fromRGB(40, 40, 40)}, .15)
  182. utility:Tween(Disc_Logo, {ImageTransparency = 0}, .15)
  183. utility:Tween(Disc_Title, {TextTransparency = 0}, .15)
  184. end)
  185.  
  186. Discord.MouseButton1Click:Connect(function()
  187. (setclipboard or toclipboard)("https://discord.gg/PTJmhG2tTv")
  188. wait(.1)
  189. game:GetService("StarterGui"):SetCore("SendNotification",{
  190. Title = "Discord",
  191. Text = "Discord copied on your clipboard",
  192. Button1 = "Okay",
  193. Duration = 20
  194. })
  195. end)
  196.  
  197. Server_Time.Name = "Server_Time"
  198. Server_Time.Parent = Body
  199. Server_Time.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  200. Server_Time.BackgroundTransparency = 1.000
  201. Server_Time.BorderColor3 = Color3.fromRGB(0, 0, 0)
  202. Server_Time.BorderSizePixel = 0
  203. Server_Time.Position = UDim2.new(0, 100, 0, 320)
  204. Server_Time.Size = UDim2.new(0, 120, 0, 25)
  205. Server_Time.Font = Enum.Font.SourceSansSemibold
  206. Server_Time.Text = ""
  207. Server_Time.TextColor3 = Color3.fromRGB(255, 255, 255)
  208. Server_Time.TextSize = 14.000
  209. Server_Time.TextXAlignment = Enum.TextXAlignment.Left
  210.  
  211. local ServerTimeFunc = {};
  212. function ServerTimeFunc:Refresh(textadd)
  213. Server_Time.Text = textadd;
  214. end;
  215.  
  216. function UpdateTime()
  217. local GameTime = math.floor(workspace.DistributedGameTime+0.5)
  218. local Hour = math.floor(GameTime/(60^2))%24
  219. local Minute = math.floor(GameTime/(60^1))%60
  220. local Second = math.floor(GameTime/(60^0))%60
  221. local FormatTime = string.format("%02d.%02d.%02d", Hour, Minute, Second)
  222. ServerTimeFunc:Refresh("Game Time : " .. FormatTime)
  223. end
  224.  
  225. spawn(function()
  226. while game:GetService('RunService').Heartbeat:Wait() do
  227. UpdateTime()
  228. end
  229. end)
  230.  
  231. Server_ID.Name = "Server_ID"
  232. Server_ID.Parent = Body
  233. Server_ID.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  234. Server_ID.BackgroundTransparency = 1.000
  235. Server_ID.BorderColor3 = Color3.fromRGB(0, 0, 0)
  236. Server_ID.BorderSizePixel = 0
  237. Server_ID.Position = UDim2.new(0, 230, 0, 320)
  238. Server_ID.Size = UDim2.new(0, 365, 0, 25)
  239. Server_ID.Font = Enum.Font.SourceSansSemibold
  240. Server_ID.Text = "User : " .. NameID .. " [CTRL = Hide Gui]";
  241. Server_ID.TextColor3 = Color3.fromRGB(255, 255, 255)
  242. Server_ID.TextSize = 14.000
  243. Server_ID.TextXAlignment = Enum.TextXAlignment.Right
  244.  
  245. List_Tile.Name = "List_Tile"
  246. List_Tile.Parent = Body
  247. List_Tile.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  248. List_Tile.BorderColor3 = Color3.fromRGB(0, 0, 0)
  249. List_Tile.BorderSizePixel = 0
  250. List_Tile.Position = UDim2.new(0, 0, 0, 30)
  251. List_Tile.Size = UDim2.new(1, 0, 0, 2)
  252.  
  253. Tile_Gradient.Color = ColorSequence.new({
  254. ColorSequenceKeypoint.new(0, Color3.fromRGB(0, 0, 0)),
  255. ColorSequenceKeypoint.new(0.3, Color3.fromRGB(255, 0, 0)),
  256. ColorSequenceKeypoint.new(0.7, Color3.fromRGB(255, 0, 0)),
  257. ColorSequenceKeypoint.new(1, Color3.fromRGB(0, 0, 0)),
  258. })
  259. Tile_Gradient.Name = "Tile_Gradient"
  260. Tile_Gradient.Parent = List_Tile
  261.  
  262. Toggle.Name = "Toggle"
  263. Toggle.Parent = ScreenGui
  264. Toggle.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
  265. Toggle.BorderColor3 = Color3.fromRGB(0, 0, 0)
  266. Toggle.BorderSizePixel = 0
  267. Toggle.Position = UDim2.new(0.0160791595, 0, 0.219451368, 0)
  268. Toggle.Size = UDim2.new(0, 40, 0, 40)
  269.  
  270. toggle_corner.Name = "toggle_corner"
  271. toggle_corner.Parent = Toggle
  272.  
  273. toggle_Image.Name = "toggle_Image"
  274. toggle_Image.Parent = Toggle
  275. toggle_Image.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  276. toggle_Image.BackgroundTransparency = 1.000
  277. toggle_Image.BorderColor3 = Color3.fromRGB(0, 0, 0)
  278. toggle_Image.BorderSizePixel = 0
  279. toggle_Image.Size = UDim2.new(0, 40, 0, 40)
  280. toggle_Image.Image = "http://www.roblox.com/asset/?id=12021503727"
  281. toggle_Image.ImageColor3 = Color3.fromRGB(255, 0, 0)
  282.  
  283. local minimizetog = false
  284. MInimize_Button.MouseButton1Click:Connect(function()
  285. if minimizetog then
  286. utility:Tween(Body, {Size = UDim2.new(0, 600, 0, 350)}, .3)
  287. utility:Tween(MInimize_Button, {Rotation = -315}, .3)
  288. else
  289. utility:Tween(Body, {Size = UDim2.new(0, 600, 0, 32)}, .3)
  290. utility:Tween(MInimize_Button, {Rotation = 360}, .3)
  291. end
  292. minimizetog = not minimizetog
  293. end)
  294.  
  295. local togimage = false
  296. toggle_Image.MouseEnter:Connect(function()
  297. utility:Tween(Toggle, {BackgroundColor3 = Color3.fromRGB(30, 30, 30)}, .15)
  298. end)
  299.  
  300. toggle_Image.MouseLeave:Connect(function()
  301. utility:Tween(Toggle, {BackgroundColor3 = Color3.fromRGB(60, 60, 60)}, .15)
  302. end)
  303.  
  304. toggle_Image.MouseButton1Click:Connect(function()
  305. if togimage then
  306. Body.Visible = true
  307. else
  308. Body.Visible = false
  309. end
  310. togimage = not togimage;
  311. end)
  312.  
  313. -- Scripts:
  314. local function HJUAU_fake_script() -- Body.BodyObject
  315. local script = Instance.new('LocalScript', Body)
  316.  
  317. local gui = script.Parent
  318. local dragging = false
  319. local dragInput, dragStart, startPos
  320.  
  321. local function update(input)
  322. local delta = input.Position - dragStart
  323. gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  324. end
  325.  
  326. gui.InputBegan:Connect(function(input)
  327. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  328. dragging = true
  329. dragStart = input.Position
  330. startPos = gui.Position
  331.  
  332. input.Changed:Connect(function()
  333. if input.UserInputState == Enum.UserInputState.End then
  334. dragging = false
  335. end
  336. end)
  337. end
  338. end)
  339.  
  340. gui.InputChanged:Connect(function(input)
  341. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  342. dragInput = input
  343. end
  344. end)
  345.  
  346. UserInputService.InputChanged:Connect(function(input)
  347. if input == dragInput and dragging then
  348. update(input)
  349. end
  350. end)
  351. end
  352. coroutine.wrap(HJUAU_fake_script)()
  353.  
  354. -- Instances:
  355. local Tab_Container = Instance.new("Frame")
  356. local Tab_List = Instance.new("Frame")
  357. local TabList_Gradient = Instance.new("UIGradient")
  358. local Tab_Scroll = Instance.new("ScrollingFrame")
  359. local Tab_Scroll_Layout = Instance.new("UIListLayout")
  360. local Main_Container = Instance.new("Frame")
  361. local Container = Instance.new("Folder")
  362.  
  363. -- Properties:
  364. Tab_Container.Name = "Tab_Container"
  365. Tab_Container.Parent = Body
  366. Tab_Container.BackgroundColor3 = Color3.fromRGB(64, 64, 95)
  367. Tab_Container.BackgroundTransparency = 1.000
  368. Tab_Container.BorderColor3 = Color3.fromRGB(0, 0, 0)
  369. Tab_Container.BorderSizePixel = 0
  370. Tab_Container.ClipsDescendants = true
  371. Tab_Container.Position = UDim2.new(0, 0, 0, 36)
  372. Tab_Container.Size = UDim2.new(1, 0, 0, 30)
  373.  
  374. Tab_List.Name = "Tab_List"
  375. Tab_List.Parent = Tab_Container
  376. Tab_List.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  377. Tab_List.BorderColor3 = Color3.fromRGB(0, 0, 0)
  378. Tab_List.BorderSizePixel = 0
  379. Tab_List.Position = UDim2.new(0, 0, 0, 28)
  380. Tab_List.Size = UDim2.new(1, 0, 0, 2)
  381.  
  382. TabList_Gradient.Color = ColorSequence.new({
  383. ColorSequenceKeypoint.new(0, Color3.fromRGB(0, 0, 0)),
  384. ColorSequenceKeypoint.new(0.3, Color3.fromRGB(255, 0, 0)),
  385. ColorSequenceKeypoint.new(0.7, Color3.fromRGB(255, 0, 0)),
  386. ColorSequenceKeypoint.new(1, Color3.fromRGB(0, 0, 0)),
  387. })
  388. TabList_Gradient.Name = "TabList_Gradient"
  389. TabList_Gradient.Parent = Tab_List
  390.  
  391. Tab_Scroll.Name = "Tab_Scroll"
  392. Tab_Scroll.Parent = Tab_Container
  393. Tab_Scroll.Active = true
  394. Tab_Scroll.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  395. Tab_Scroll.BackgroundTransparency = 1.000
  396. Tab_Scroll.BorderColor3 = Color3.fromRGB(0, 0, 0)
  397. Tab_Scroll.BorderSizePixel = 0
  398. Tab_Scroll.Position = UDim2.new(0, 10, 0, 0)
  399. Tab_Scroll.Size = UDim2.new(1, -20, 0, 30)
  400. Tab_Scroll.CanvasPosition = Vector2.new(0, 150)
  401. Tab_Scroll.ScrollBarImageColor3 = Color3.fromRGB(0, 0, 0)
  402. Tab_Scroll.ScrollBarThickness = 0
  403.  
  404. Tab_Scroll_Layout.Name = "Tab_Scroll_Layout"
  405. Tab_Scroll_Layout.Parent = Tab_Scroll
  406. Tab_Scroll_Layout.FillDirection = Enum.FillDirection.Horizontal
  407. Tab_Scroll_Layout.HorizontalAlignment = Enum.HorizontalAlignment.Left
  408. Tab_Scroll_Layout.VerticalAlignment = Enum.VerticalAlignment.Top
  409. Tab_Scroll_Layout.SortOrder = Enum.SortOrder.LayoutOrder
  410. Tab_Scroll_Layout.Padding = UDim.new(0, 5)
  411.  
  412. Tab_Scroll_Layout:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(function()
  413. Tab_Scroll.CanvasSize = UDim2.new(0, 0 + Tab_Scroll_Layout.Padding.Offset + Tab_Scroll_Layout.AbsoluteContentSize.X, 0, 0)
  414. end)
  415.  
  416. Tab_Scroll.ChildAdded:Connect(function()
  417. Tab_Scroll.CanvasSize = UDim2.new(0, 0 + Tab_Scroll_Layout.Padding.Offset + Tab_Scroll_Layout.AbsoluteContentSize.X, 0, 0)
  418. end)
  419.  
  420. Main_Container.Name = "Main_Container"
  421. Main_Container.Parent = Body
  422. Main_Container.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  423. Main_Container.BackgroundTransparency = 1.000
  424. Main_Container.BorderSizePixel = 0
  425. Main_Container.Position = UDim2.new(0, 5, 0, 70)
  426. Main_Container.Size = UDim2.new(0, 590, 0, 245)
  427.  
  428. local ContainerGradients = Instance.new("UIGradient")
  429. ContainerGradients.Color = ColorSequence.new({
  430. ColorSequenceKeypoint.new(0, Color3.fromRGB(100, 0, 0)),
  431. ColorSequenceKeypoint.new(0.3, Color3.fromRGB(255, 0, 0)),
  432. ColorSequenceKeypoint.new(0.7, Color3.fromRGB(255, 0, 0)),
  433. ColorSequenceKeypoint.new(1, Color3.fromRGB(100, 0, 0)),
  434. })
  435. ContainerGradients.Name = "ContainerGradients"
  436. ContainerGradients.Parent = Main_Container
  437.  
  438. Container.Name = "Container"
  439. Container.Parent = Main_Container
  440.  
  441.  
  442. local Tabs = {}
  443. local is_first_tab = true
  444. function Tabs:addTab(title_tab)
  445.  
  446. -- Instances:
  447. local Tab_Items = Instance.new("TextButton")
  448. local Tab_Item_Corner = Instance.new("UICorner")
  449.  
  450. -- Properties:
  451. Tab_Items.Name = "Tab_Items"
  452. Tab_Items.Parent = Tab_Scroll
  453. Tab_Items.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  454. Tab_Items.BackgroundTransparency = 1.000
  455. Tab_Items.BorderColor3 = Color3.fromRGB(0, 0, 0)
  456. Tab_Items.BorderSizePixel = 0
  457. Tab_Items.Size = UDim2.new(0, 0, 0, 0)
  458. Tab_Items.AutoButtonColor = false
  459. Tab_Items.Font = Enum.Font.SourceSansSemibold
  460. Tab_Items.TextColor3 = Color3.fromRGB(255, 255, 255)
  461. Tab_Items.TextSize = 14.000
  462. Tab_Items.Text = title_tab
  463.  
  464. Tab_Item_Corner.Name = "Tab_Item_Corner"
  465. Tab_Item_Corner.CornerRadius = UDim.new(0, 4)
  466. Tab_Item_Corner.Parent = Tab_Items
  467.  
  468. utility:Tween(Tab_Items, {Size = UDim2.new(0, 25 + Tab_Items.TextBounds.X, 0, 24)}, .15)
  469.  
  470. -- Instances:
  471. local ScrollingFrame = Instance.new("ScrollingFrame")
  472. local Scrolling_Layout = Instance.new("UIListLayout")
  473.  
  474. -- Properties:
  475. ScrollingFrame.Name = "ScrollingFrame"
  476. ScrollingFrame.Parent = Container
  477. ScrollingFrame.Active = true
  478. ScrollingFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  479. ScrollingFrame.BackgroundTransparency = 1.000
  480. ScrollingFrame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  481. ScrollingFrame.BorderSizePixel = 0
  482. ScrollingFrame.Position = UDim2.new(0, 0, 0, 0)
  483. ScrollingFrame.Size = UDim2.new(1, 0, 1, 0)
  484. ScrollingFrame.ScrollBarImageColor3 = Color3.fromRGB(0, 0, 0)
  485. ScrollingFrame.ScrollBarThickness = 0
  486. ScrollingFrame.Visible = false
  487.  
  488. Scrolling_Layout.Name = "Scrolling_Layout"
  489. Scrolling_Layout.Parent = ScrollingFrame
  490. Scrolling_Layout.FillDirection = Enum.FillDirection.Horizontal
  491. Scrolling_Layout.SortOrder = Enum.SortOrder.LayoutOrder
  492. Scrolling_Layout.Padding = UDim.new(0, 19)
  493.  
  494. Scrolling_Layout:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(function()
  495. ScrollingFrame.CanvasSize = UDim2.new(0, Scrolling_Layout.AbsoluteContentSize.X, 0, 0)
  496. end)
  497.  
  498. ScrollingFrame.ChildAdded:Connect(function()
  499. ScrollingFrame.CanvasSize = UDim2.new(0, Scrolling_Layout.AbsoluteContentSize.X, 0, 0)
  500. end)
  501.  
  502. if is_first_tab then
  503. is_first_tab = false
  504. utility:Tween(Tab_Items, {BackgroundTransparency = 0.5}, .3);
  505. ScrollingFrame.Visible = true
  506. end
  507.  
  508. Tab_Items.MouseButton1Click:Connect(function()
  509. for _,v in next, Tab_Scroll:GetChildren() do
  510. if v:IsA("TextButton") then
  511. utility:Tween(v, {BackgroundTransparency = 1.000}, .3);
  512. end;
  513. end;
  514. utility:Tween(Tab_Items, {BackgroundTransparency = 0.5}, .3);
  515.  
  516. for _,v in next, Container:GetChildren() do
  517. if v.Name == "ScrollingFrame" then
  518. v.Visible = false
  519. end;
  520. end;
  521. ScrollingFrame.Visible = true
  522. end)
  523.  
  524. local Section = {}
  525. function Section:addSection()
  526.  
  527. -- Instances:
  528. local SectionScroll = Instance.new("ScrollingFrame")
  529. local UIListLayout_Section = Instance.new("UIListLayout")
  530.  
  531. -- Properties:
  532. SectionScroll.Name = "SectionScroll"
  533. SectionScroll.Parent = ScrollingFrame
  534. SectionScroll.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  535. SectionScroll.BackgroundTransparency = 1.000
  536. SectionScroll.BorderColor3 = Color3.fromRGB(0, 0, 0)
  537. SectionScroll.BorderSizePixel = 0
  538. SectionScroll.Size = UDim2.new(0, 285, 0, 245)
  539. SectionScroll.ScrollBarImageColor3 = Color3.fromRGB(255, 0, 0)
  540. SectionScroll.ScrollBarThickness = 4
  541.  
  542. UIListLayout_Section.Parent = SectionScroll
  543. UIListLayout_Section.HorizontalAlignment = Enum.HorizontalAlignment.Center
  544. UIListLayout_Section.SortOrder = Enum.SortOrder.LayoutOrder
  545. UIListLayout_Section.Padding = UDim.new(0, 6)
  546.  
  547. UIListLayout_Section:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(function()
  548. SectionScroll.CanvasSize = UDim2.new(0, 0, 0, 5 + UIListLayout_Section.Padding.Offset + UIListLayout_Section.AbsoluteContentSize.Y)
  549. end)
  550.  
  551. SectionScroll.ChildAdded:Connect(function()
  552. SectionScroll.CanvasSize = UDim2.new(0, 0, 0, 5 + UIListLayout_Section.Padding.Offset + UIListLayout_Section.AbsoluteContentSize.Y)
  553. end)
  554.  
  555. local Menus = {}
  556. function Menus:addMenu(title_menu)
  557.  
  558. -- Instances:
  559. local Section = Instance.new("Frame")
  560. local Section_Inner = Instance.new("Frame")
  561. local UIListLayout = Instance.new("UIListLayout")
  562. local UICorner = Instance.new("UICorner")
  563. local List = Instance.new("Frame")
  564. local UIGradient = Instance.new("UIGradient")
  565. local UIGradient_2 = Instance.new("UIGradient")
  566. local TextLabel = Instance.new("TextLabel")
  567.  
  568. -- Properties:
  569. Section.Name = "Section" or title_menu
  570. Section.Parent = SectionScroll
  571. Section.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  572. Section.BackgroundTransparency = 1.000
  573. Section.BorderColor3 = Color3.fromRGB(0, 0, 0)
  574. Section.BorderSizePixel = 0
  575. Section.Size = UDim2.new(1, 0, 0, 25)
  576.  
  577. Section_Inner.Name = "Section_Inner"
  578. Section_Inner.Parent = Section
  579. Section_Inner.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  580. Section_Inner.BorderColor3 = Color3.fromRGB(0, 0, 0)
  581. Section_Inner.BorderSizePixel = 0
  582. Section_Inner.Position = UDim2.new(0, 5, 0, 0)
  583. Section_Inner.Size = UDim2.new(1, -10, 0, 25)
  584.  
  585. UIGradient_2.Color = ColorSequence.new({
  586. ColorSequenceKeypoint.new(0, Color3.fromRGB(0, 0, 0)),
  587. ColorSequenceKeypoint.new(0.3, Color3.fromRGB(20, 20, 20)),
  588. ColorSequenceKeypoint.new(0.7, Color3.fromRGB(20, 20, 20)),
  589. ColorSequenceKeypoint.new(1, Color3.fromRGB(0, 0, 0)),
  590. })
  591. UIGradient_2.Parent = Section_Inner
  592.  
  593. UIListLayout.Parent = Section_Inner
  594. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  595. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  596. UIListLayout.Padding = UDim.new(0, 3)
  597.  
  598. UICorner.CornerRadius = UDim.new(0, 4)
  599. UICorner.Parent = Section_Inner
  600.  
  601. TextLabel.Parent = Section_Inner
  602. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  603. TextLabel.BackgroundTransparency = 1.000
  604. TextLabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
  605. TextLabel.BorderSizePixel = 0
  606. TextLabel.Size = UDim2.new(1, 0, 0, 20)
  607. TextLabel.Font = Enum.Font.SourceSansSemibold
  608. TextLabel.Text = title_menu
  609. TextLabel.TextColor3 = Color3.fromRGB(255, 0, 0)
  610. TextLabel.TextSize = 14.000
  611.  
  612. List.Name = "List"
  613. List.Parent = Section_Inner
  614. List.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  615. List.BorderColor3 = Color3.fromRGB(0, 0, 0)
  616. List.BorderSizePixel = 0
  617. List.Size = UDim2.new(1, 0, 0, 1)
  618.  
  619. UIGradient.Color = ColorSequence.new({
  620. ColorSequenceKeypoint.new(0, Color3.fromRGB(30, 30, 30)),
  621. ColorSequenceKeypoint.new(0.3, Color3.fromRGB(255, 0, 0)),
  622. ColorSequenceKeypoint.new(0.7, Color3.fromRGB(255, 0, 0)),
  623. ColorSequenceKeypoint.new(1, Color3.fromRGB(30, 30, 30)),
  624. })
  625. UIGradient.Parent = List
  626.  
  627. Section.Size = UDim2.new(1, 0, 0, UIListLayout.AbsoluteContentSize.Y + UIListLayout.Padding.Offset + 5)
  628. Section_Inner.Size = UDim2.new(1, -10, 0, UIListLayout.AbsoluteContentSize.Y + UIListLayout.Padding.Offset + 5)
  629. UIListLayout:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(function()
  630. Section.Size = UDim2.new(1, 0, 0, UIListLayout.AbsoluteContentSize.Y + UIListLayout.Padding.Offset + 5)
  631. Section_Inner.Size = UDim2.new(1, -10, 0, UIListLayout.AbsoluteContentSize.Y + UIListLayout.Padding.Offset + 5)
  632. end)
  633.  
  634. local function SectionScrollChanged()
  635. local SCL = 0
  636. SCL = UIListLayout.AbsoluteContentSize.Y
  637. SectionScroll.CanvasSize = UDim2.new(0, 0, 0, SCL + UIListLayout.Padding.Offset + 5)
  638. end
  639. local function SectionInnerChanged()
  640. Section.Size = UDim2.new(1, 0, 0, UIListLayout.AbsoluteContentSize.Y + UIListLayout.Padding.Offset + 5)
  641. Section_Inner.Size = UDim2.new(1, -10, 0, UIListLayout.AbsoluteContentSize.Y + UIListLayout.Padding.Offset + 5)
  642. end
  643.  
  644. SectionScrollChanged()
  645. SectionInnerChanged()
  646.  
  647. local Menu_Item = {}
  648. function Menu_Item:addButton(button_tile, callback)
  649.  
  650. callback = callback or function () end
  651.  
  652. -- Instances:
  653. local TextButton = Instance.new("TextButton")
  654. local UICorner = Instance.new("UICorner")
  655.  
  656. -- Properties:
  657. TextButton.Parent = Section_Inner
  658. TextButton.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  659. TextButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
  660. TextButton.BorderSizePixel = 0
  661. TextButton.Size = UDim2.new(1, -10, 0, 25)
  662. TextButton.AutoButtonColor = false
  663. TextButton.Font = Enum.Font.SourceSansSemibold
  664. TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  665. TextButton.TextSize = 12.000
  666. TextButton.Text = button_tile
  667.  
  668. UICorner.CornerRadius = UDim.new(0, 4)
  669. UICorner.Parent = TextButton
  670.  
  671. TextButton.MouseEnter:Connect(function()
  672. utility:Tween(TextButton, {BackgroundColor3 = Color3.fromRGB(30, 30, 30)}, .15)
  673. utility:Tween(TextButton, {TextColor3 = Color3.fromRGB(180, 180, 180)}, .15)
  674. end)
  675.  
  676. TextButton.MouseLeave:Connect(function()
  677. utility:Tween(TextButton, {BackgroundColor3 = Color3.fromRGB(40, 40, 40)}, .15)
  678. utility:Tween(TextButton, {TextColor3 = Color3.fromRGB(255, 255, 255)}, .15)
  679. end)
  680.  
  681. TextButton.MouseButton1Down:Connect(function()
  682. utility:Tween(TextButton, {TextColor3 = Color3.fromRGB(0, 255, 0)}, .15)
  683. utility:Tween(TextButton, {Size = UDim2.new(1, -25, 0, 15)}, .15)
  684. end)
  685.  
  686. TextButton.MouseButton1Up:Connect(function()
  687. utility:Tween(TextButton, {TextColor3 = Color3.fromRGB(255, 255, 255)}, 1)
  688. utility:Tween(TextButton, {Size = UDim2.new(1, -10, 0, 25)}, .15)
  689. end)
  690.  
  691. TextButton.MouseButton1Click:Connect(function()
  692. callback()
  693. end)
  694. end
  695.  
  696. function Menu_Item:addToggle(toggle_title, default, callback)
  697.  
  698. callback = callback or function(Value) end
  699. default = default or false
  700.  
  701. -- Instances:
  702. local Frame = Instance.new("Frame")
  703. local TextLabel = Instance.new("TextLabel")
  704. local ImageButton = Instance.new("ImageButton")
  705. local UICorner = Instance.new("UICorner")
  706.  
  707. -- Properties:
  708. Frame.Parent = Section_Inner
  709. Frame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  710. Frame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  711. Frame.BorderSizePixel = 0
  712. Frame.Size = UDim2.new(1, -10, 0, 25)
  713.  
  714. TextLabel.Parent = Frame
  715. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  716. TextLabel.BackgroundTransparency = 1.000
  717. TextLabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
  718. TextLabel.BorderSizePixel = 0
  719. TextLabel.Position = UDim2.new(0, 5, 0, 0)
  720. TextLabel.Size = UDim2.new(1, -30, 0, 25)
  721. TextLabel.Font = Enum.Font.SourceSansSemibold
  722. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  723. TextLabel.TextSize = 12.000
  724. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  725. TextLabel.Text = toggle_title
  726.  
  727. ImageButton.Parent = Frame
  728. ImageButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  729. ImageButton.BackgroundTransparency = 1.000
  730. ImageButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
  731. ImageButton.BorderSizePixel = 0
  732. ImageButton.Position = UDim2.new(0, 242, 0, 2)
  733. ImageButton.Size = UDim2.new(0, 20, 0, 20)
  734. ImageButton.Image = "rbxassetid://3926311105"
  735. ImageButton.ImageRectOffset = Vector2.new(940, 784)
  736. ImageButton.ImageRectSize = Vector2.new(48, 48)
  737.  
  738. UICorner.CornerRadius = UDim.new(0, 4)
  739. UICorner.Parent = Frame
  740.  
  741. local CheckToggle = false
  742. if default then
  743. ImageButton.ImageRectOffset = Vector2.new(4, 836);
  744. ImageButton.ImageColor3 = Color3.fromRGB(0, 255, 0);
  745. TextLabel.TextColor3 = Color3.fromRGB(0, 255, 0);
  746. CheckToggle = not CheckToggle;
  747. callback(CheckToggle);
  748. end
  749.  
  750. ImageButton.MouseEnter:Connect(function ()
  751. utility:Tween(TextLabel, {TextTransparency = 0.5}, .15)
  752. utility:Tween(ImageButton, {ImageTransparency = 0.5}, .15)
  753. utility:Tween(Frame, {BackgroundColor3 = Color3.fromRGB(30, 30, 30)}, .15);
  754. end);
  755.  
  756. ImageButton.MouseLeave:Connect(function ()
  757. utility:Tween(TextLabel, {TextTransparency = 0}, .15)
  758. utility:Tween(ImageButton, {ImageTransparency = 0}, .15)
  759. utility:Tween(Frame, {BackgroundColor3 = Color3.fromRGB(40, 40, 40)}, .15);
  760. end);
  761.  
  762. ImageButton.MouseButton1Click:Connect(function ()
  763. if not CheckToggle then
  764. ImageButton.ImageRectOffset = Vector2.new(4, 836);
  765. utility:Tween(ImageButton, {ImageColor3 = Color3.fromRGB(0, 255, 0)}, .3);
  766. utility:Tween(TextLabel, {TextColor3 = Color3.fromRGB(0, 255, 0)}, .3);
  767. else
  768. ImageButton.ImageRectOffset = Vector2.new(940, 784);
  769. utility:Tween(ImageButton, {ImageColor3 = Color3.fromRGB(255, 255, 255)}, .3);
  770. utility:Tween(TextLabel, {TextColor3 = Color3.fromRGB(255, 255, 255)}, .3);
  771. end;
  772. CheckToggle = not CheckToggle;
  773. callback(CheckToggle);
  774. end)
  775. end
  776.  
  777. function Menu_Item:addDropdown(dropdown_tile, default, list, callback)
  778. default = default or ""
  779. list = list or {}
  780. callback = callback or function(Value) end
  781.  
  782. -- Instances:
  783. local Frame = Instance.new("Frame")
  784. local UICorner = Instance.new("UICorner")
  785. local TextLabel = Instance.new("TextLabel")
  786. local ImageButton = Instance.new("ImageButton")
  787.  
  788. -- Properties:
  789. Frame.Parent = Section_Inner
  790. Frame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  791. Frame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  792. Frame.BorderSizePixel = 0
  793. Frame.Size = UDim2.new(1, -10, 0, 25)
  794.  
  795. UICorner.CornerRadius = UDim.new(0, 4)
  796. UICorner.Parent = Frame
  797.  
  798. TextLabel.Parent = Frame
  799. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  800. TextLabel.BackgroundTransparency = 1.000
  801. TextLabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
  802. TextLabel.BorderSizePixel = 0
  803. TextLabel.Position = UDim2.new(0, 5, 0, 0)
  804. TextLabel.Size = UDim2.new(1, -40, 0, 25)
  805. TextLabel.Font = Enum.Font.SourceSansSemibold
  806. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  807. TextLabel.TextSize = 12.000
  808. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  809. TextLabel.Text = dropdown_tile
  810.  
  811. ImageButton.Parent = Frame
  812. ImageButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  813. ImageButton.BackgroundTransparency = 1.000
  814. ImageButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
  815. ImageButton.BorderSizePixel = 0
  816. ImageButton.Position = UDim2.new(0, 242, 0, 1)
  817. ImageButton.Size = UDim2.new(0, 21, 0, 22)
  818. ImageButton.Image = "rbxassetid://14834203285"
  819.  
  820. if default then
  821. for i,v in pairs(list) do
  822. if v == default then
  823. TextLabel.Text = dropdown_tile ..' - ' .. v
  824. callback(v)
  825. end
  826. end
  827. end
  828.  
  829. ImageButton.MouseEnter:Connect(function ()
  830. utility:Tween(TextLabel, {TextTransparency = 0.5}, .15)
  831. utility:Tween(ImageButton, {ImageTransparency = 0.5}, .15)
  832. utility:Tween(Frame, {BackgroundColor3 = Color3.fromRGB(30, 30, 30)}, .15);
  833. end);
  834.  
  835. ImageButton.MouseLeave:Connect(function ()
  836. utility:Tween(TextLabel, {TextTransparency = 0}, .15)
  837. utility:Tween(ImageButton, {ImageTransparency = 0}, .15)
  838. utility:Tween(Frame, {BackgroundColor3 = Color3.fromRGB(40, 40, 40)}, .15);
  839. end);
  840.  
  841. -- Instances:
  842. local ScrollDown = Instance.new("Frame")
  843. local UIListLayout = Instance.new("UIListLayout")
  844. local UICorner = Instance.new("UICorner")
  845.  
  846. -- Properties:
  847. ScrollDown.Name = "ScrollDown"
  848. ScrollDown.Parent = Section_Inner
  849. ScrollDown.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  850. ScrollDown.BorderColor3 = Color3.fromRGB(0, 0, 0)
  851. ScrollDown.BorderSizePixel = 0
  852. ScrollDown.ClipsDescendants = true
  853. ScrollDown.Size = UDim2.new(1, -10, 0, 0)
  854.  
  855. UIListLayout.Parent = ScrollDown
  856. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  857. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  858. UIListLayout.Padding = UDim.new(0, 3)
  859.  
  860. UICorner.CornerRadius = UDim.new(0, 4)
  861. UICorner.Parent = ScrollDown
  862.  
  863. local dropdown_toggle = false
  864. ImageButton.MouseButton1Click:Connect(function()
  865. if dropdown_toggle then
  866. utility:Tween(ScrollDown, {Size = UDim2.new(1, -10, 0, 0)}, 0.15)
  867. utility:Tween(ImageButton, {ImageColor3 = Color3.fromRGB(255, 255, 255)}, .15)
  868. utility:Tween(TextLabel, {TextColor3 = Color3.fromRGB(255, 255, 255)}, .15)
  869. else
  870. utility:Tween(ScrollDown, {Size = UDim2.new(1, -10, 0, 0 + UIListLayout.AbsoluteContentSize.Y + 5)}, 0.15)
  871. utility:Tween(ImageButton, {ImageColor3 = Color3.fromRGB(0, 255, 0)}, .15)
  872. utility:Tween(TextLabel, {TextColor3 = Color3.fromRGB(0, 255, 0)}, .15)
  873. end
  874. dropdown_toggle = not dropdown_toggle
  875. end)
  876.  
  877. for i,v in pairs(list) do
  878. local TextButton = Instance.new('TextButton')
  879.  
  880. TextButton.Parent = ScrollDown
  881. TextButton.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  882. TextButton.BackgroundTransparency = 1.000
  883. TextButton.BorderSizePixel = 0
  884. TextButton.Size = UDim2.new(1, 0, 0, 25)
  885. TextButton.Position = UDim2.new(0, 5, 0, 0)
  886. TextButton.Font = Enum.Font.SourceSansSemibold
  887. TextButton.AutoButtonColor = false
  888. TextButton.TextSize = 12.000
  889. TextButton.Text = v
  890. TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  891.  
  892. TextButton.MouseEnter:Connect(function()
  893. utility:Tween(TextButton, {TextSize = 9.000}, 0.15)
  894. utility:Tween(TextButton, {TextColor3 = Color3.fromRGB(0, 255, 0)}, 0.15)
  895. end)
  896.  
  897. TextButton.MouseLeave:Connect(function()
  898. utility:Tween(TextButton, {TextSize = 12.000}, 0.15)
  899. utility:Tween(TextButton, {TextColor3 = Color3.fromRGB(255, 255, 255)}, 0.15)
  900. end)
  901.  
  902. TextButton.MouseButton1Click:Connect(function()
  903. dropdown_toggle = false
  904. TextLabel.Text = dropdown_tile ..' - ' .. v
  905. callback(v)
  906. utility:Tween(ScrollDown, {Size = UDim2.new(1, -10, 0, 0)}, 0.15)
  907. utility:Tween(ImageButton, {ImageColor3 = Color3.fromRGB(255, 255, 255)}, .15)
  908. utility:Tween(TextLabel, {TextColor3 = Color3.fromRGB(255, 255, 255)}, .15)
  909. end)
  910. end
  911.  
  912. local updatedropfunc = {}
  913. function updatedropfunc:Clear()
  914. for i,v in pairs(ScrollDown:GetChildren()) do
  915. if v:IsA("TextButton") then
  916. v:Destroy()
  917. dropdown_toggle = false
  918. TextLabel.Text = dropdown_tile
  919. callback(v)
  920. utility:Tween(ScrollDown, {Size = UDim2.new(1, -10, 0, 0)}, 0.15)
  921. end
  922. end
  923. end
  924.  
  925. function updatedropfunc:Refresh(newlist)
  926. newlist = newlist or {}
  927.  
  928. for i,v in pairs(newlist) do
  929. local TextButton = Instance.new('TextButton')
  930.  
  931. TextButton.Parent = ScrollDown
  932. TextButton.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  933. TextButton.BackgroundTransparency = 1.000
  934. TextButton.BorderSizePixel = 0
  935. TextButton.Size = UDim2.new(1, 0, 0, 25)
  936. TextButton.Position = UDim2.new(0, 5, 0, 0)
  937. TextButton.Font = Enum.Font.SourceSansSemibold
  938. TextButton.AutoButtonColor = false
  939. TextButton.TextSize = 12.000
  940. TextButton.Text = v
  941. TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  942.  
  943. TextButton.MouseEnter:Connect(function()
  944. utility:Tween(TextButton, {TextSize = 9.000}, 0.15)
  945. utility:Tween(TextButton, {TextColor3 = Color3.fromRGB(0, 255, 0)}, 0.15)
  946. end)
  947.  
  948. TextButton.MouseLeave:Connect(function()
  949. utility:Tween(TextButton, {TextSize = 12.000}, 0.15)
  950. utility:Tween(TextButton, {TextColor3 = Color3.fromRGB(255, 255, 255)}, 0.15)
  951. end)
  952.  
  953. TextButton.MouseButton1Click:Connect(function()
  954. dropdown_toggle = false
  955. TextLabel.Text = dropdown_tile ..' - ' .. v
  956. callback(v)
  957. utility:Tween(ScrollDown, {Size = UDim2.new(1, -10, 0, 0)}, 0.15)
  958. utility:Tween(ImageButton, {ImageColor3 = Color3.fromRGB(255, 255, 255)}, .15)
  959. utility:Tween(TextLabel, {TextColor3 = Color3.fromRGB(255, 255, 255)}, .15)
  960. end)
  961. end
  962. end
  963. return updatedropfunc
  964. end
  965.  
  966. function Menu_Item:addTextbox(text_tile, default, callback)
  967.  
  968. callback = callback or function(Value) end
  969.  
  970. -- Instances:
  971. local Frame = Instance.new("Frame")
  972. local UICorner = Instance.new("UICorner")
  973. local TextLabel = Instance.new("TextLabel")
  974. local TextBox = Instance.new("TextBox")
  975.  
  976. -- Properties:
  977. Frame.Parent = Section_Inner
  978. Frame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  979. Frame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  980. Frame.BorderSizePixel = 0
  981. Frame.Size = UDim2.new(1, -10, 0, 25)
  982.  
  983. UICorner.CornerRadius = UDim.new(0, 4)
  984. UICorner.Parent = Frame
  985.  
  986. TextLabel.Parent = Frame
  987. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  988. TextLabel.BackgroundTransparency = 1.000
  989. TextLabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
  990. TextLabel.BorderSizePixel = 0
  991. TextLabel.Position = UDim2.new(0, 5, 0, 0)
  992. TextLabel.Size = UDim2.new(0, 150, 0, 25)
  993. TextLabel.Font = Enum.Font.SourceSansSemibold
  994. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  995. TextLabel.TextSize = 12.000
  996. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  997. TextLabel.Text = text_tile
  998.  
  999. TextBox.Parent = Frame
  1000. TextBox.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
  1001. TextBox.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1002. TextBox.BorderSizePixel = 0
  1003. TextBox.Position = UDim2.new(0, 190, 0, 2)
  1004. TextBox.Size = UDim2.new(0, 70, 0, 20)
  1005. TextBox.Font = Enum.Font.SourceSansSemibold
  1006. TextBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  1007. TextBox.TextSize = 12.000
  1008. TextBox.Text = default or "Type Here"
  1009.  
  1010. local function onFocusLost(enterPressed, default)
  1011. if enterPressed then
  1012. callback(TextBox.Text)
  1013. utility:Tween(TextBox, {TextColor3 = Color3.fromRGB(0, 255, 0)}, .1);
  1014. utility:Tween(TextLabel, {TextColor3 = Color3.fromRGB(0, 255, 0)}, .1);
  1015. wait(.1);
  1016. utility:Tween(TextBox, {TextColor3 = Color3.fromRGB(255, 255, 255)}, .5);
  1017. utility:Tween(TextLabel, {TextColor3 = Color3.fromRGB(255, 255, 255)}, .5);
  1018. end;
  1019. end;
  1020. TextBox.FocusLost:Connect(onFocusLost);
  1021. end
  1022.  
  1023. function Menu_Item:addKeybind(keybind_tile, preset, callback)
  1024.  
  1025. callback = callback or function(Value) end;
  1026.  
  1027. -- Instances:
  1028. local Frame = Instance.new("Frame")
  1029. local UICorner = Instance.new("UICorner")
  1030. local TextLabel = Instance.new("TextLabel")
  1031. local TextButton = Instance.new("TextButton")
  1032. local UICorner_2 = Instance.new("UICorner")
  1033.  
  1034. -- Properties:
  1035. Frame.Parent = Section_Inner
  1036. Frame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  1037. Frame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1038. Frame.BorderSizePixel = 0
  1039. Frame.Size = UDim2.new(1, -10, 0, 25)
  1040.  
  1041. UICorner.CornerRadius = UDim.new(0, 4)
  1042. UICorner.Parent = Frame
  1043.  
  1044. TextLabel.Parent = Frame
  1045. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1046. TextLabel.BackgroundTransparency = 1.000
  1047. TextLabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1048. TextLabel.BorderSizePixel = 0
  1049. TextLabel.Position = UDim2.new(0, 5, 0, 0)
  1050. TextLabel.Size = UDim2.new(0, 150, 0, 25)
  1051. TextLabel.Font = Enum.Font.SourceSansSemibold
  1052. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  1053. TextLabel.TextSize = 12.000
  1054. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  1055. TextLabel.Text = keybind_tile
  1056.  
  1057. TextButton.Parent = Frame
  1058. TextButton.BackgroundColor3 = Color3.fromRGB(12, 12, 12)
  1059. TextButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1060. TextButton.BorderSizePixel = 0
  1061. TextButton.Position = UDim2.new(0, 190, 0, 3)
  1062. TextButton.Size = UDim2.new(0, 70, 0, 20)
  1063. TextButton.AutoButtonColor = false
  1064. TextButton.Font = Enum.Font.SourceSansSemibold
  1065. TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  1066. TextButton.TextSize = 14.000
  1067. TextButton.Text = preset.Name
  1068.  
  1069. UICorner_2.CornerRadius = UDim.new(0, 4)
  1070. UICorner_2.Parent = TextButton
  1071.  
  1072. TextButton.MouseButton1Click:Connect(function()
  1073. TextButton.Text = ". . .";
  1074. local inputwait = UserInputService.InputBegan:wait();
  1075. if inputwait.KeyCode.Name == preset.Name then
  1076. TextButton.Text = inputwait.KeyCode.Name;
  1077. Key = inputwait.KeyCode.Name;
  1078. callback(Key);
  1079. utility:Tween(TextButton, {TextColor3 = Color3.fromRGB(0, 255, 0)}, .1);
  1080. utility:Tween(TextLabel, {TextColor3 = Color3.fromRGB(0, 255, 0)}, .1);
  1081. wait(.1);
  1082. utility:Tween(TextButton, {TextColor3 = Color3.fromRGB(255, 255, 255)}, 1);
  1083. utility:Tween(TextLabel, {TextColor3 = Color3.fromRGB(255, 255, 255)}, 1);
  1084. else
  1085. TextButton.Text = "Invald...";
  1086. Key = inputwait.KeyCode.Name;
  1087. callback();
  1088. utility:Tween(TextButton, {TextColor3 = Color3.fromRGB(255, 0, 0)}, .1);
  1089. utility:Tween(TextLabel, {TextColor3 = Color3.fromRGB(255, 0, 0)}, .1);
  1090. wait(.1);
  1091. utility:Tween(TextButton, {TextColor3 = Color3.fromRGB(255, 255, 255)}, 1);
  1092. utility:Tween(TextLabel, {TextColor3 = Color3.fromRGB(255, 255, 255)}, 1);
  1093. end;
  1094. end)
  1095. end
  1096.  
  1097. function Menu_Item:addLabel(label_text)
  1098.  
  1099. local LabelFunc = {}
  1100. local TextLabel = Instance.new("TextLabel")
  1101.  
  1102. -- Properties:
  1103. TextLabel.Parent = Section_Inner
  1104. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1105. TextLabel.BackgroundTransparency = 1.000
  1106. TextLabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1107. TextLabel.BorderSizePixel = 0
  1108. TextLabel.Size = UDim2.new(1, -20, 0, 15)
  1109. TextLabel.Font = Enum.Font.SourceSansSemibold
  1110. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  1111. TextLabel.TextSize = 12.000
  1112. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  1113. TextLabel.Text = label_text
  1114.  
  1115. function LabelFunc:Refresh(newLabel)
  1116. if TextLabel.Text ~= newLabel then
  1117. TextLabel.Text = newLabel;
  1118. end;
  1119. end;
  1120. return LabelFunc;
  1121. end
  1122.  
  1123. function Menu_Item:addChangelog(changeloogtext)
  1124.  
  1125. local ChangelogFunc = {}
  1126. local TextLabel = Instance.new("TextLabel")
  1127.  
  1128. -- Properties:
  1129. TextLabel.Parent = Section_Inner
  1130. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1131. TextLabel.BackgroundTransparency = 1.000
  1132. TextLabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1133. TextLabel.BorderSizePixel = 0
  1134. TextLabel.Size = UDim2.new(1, -20, 0, 15)
  1135. TextLabel.Font = Enum.Font.SourceSansSemibold
  1136. TextLabel.TextColor3 = Color3.fromRGB(85, 170, 255)
  1137. TextLabel.TextSize = 12.000
  1138. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  1139. TextLabel.Text = changeloogtext
  1140.  
  1141. function ChangelogFunc:Refresh(newchangelog)
  1142. if TextLabel.Text ~= newchangelog then
  1143. TextLabel.Text = newchangelog;
  1144. end;
  1145. end;
  1146. return ChangelogFunc;
  1147. end
  1148.  
  1149. function Menu_Item:addLog(log_text)
  1150.  
  1151. local LogFunc = {}
  1152. local TextLabel = Instance.new("TextLabel")
  1153.  
  1154. -- Properties:
  1155. TextLabel.Parent = Section_Inner
  1156. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1157. TextLabel.BackgroundTransparency = 1.000
  1158. TextLabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1159. TextLabel.BorderSizePixel = 0
  1160. TextLabel.Font = Enum.Font.SourceSansSemibold
  1161. TextLabel.Text = log_text
  1162. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 0)
  1163. TextLabel.TextSize = 12.000
  1164. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  1165. TextLabel.TextYAlignment = Enum.TextYAlignment.Top
  1166.  
  1167. TextLabel.Size = UDim2.new(1, -20, 0, TextLabel.Text:len() + 15)
  1168. TextLabel:GetPropertyChangedSignal("Text"):Connect(function()
  1169. TextLabel.Size = UDim2.new(1, -20, 0, TextLabel.Text:len() + 15)
  1170. end)
  1171.  
  1172. function LogFunc:Refresh(newLog)
  1173. if TextLabel.Text ~= newLog then
  1174. TextLabel.Text = newLog
  1175. end
  1176. end
  1177. return LogFunc
  1178. end
  1179. return Menu_Item
  1180. end
  1181. return Menus
  1182. end
  1183. return Section
  1184. end
  1185. return Tabs
  1186. end
  1187. return Library
Advertisement
Add Comment
Please, Sign In to add comment