Advertisement
SaijiKung

gui

Jun 23rd, 2020
68,790
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 66.80 KB | None | 0 0
  1. game:GetService("StarterGui"):SetCore("SendNotification", {
  2. Title = 'A Bizarre Day Gui';
  3. Text = "A Bizarre Day Made By SaijiKungTH#4800\nSubscribe to SaijiKungTH";
  4. Duration = 10;
  5. })
  6.  
  7. --[[
  8. ui-engine-v2
  9. version 1.3a
  10. by Singularity (V3rm @ King Singularity) (Discord @ Singularity#5490)
  11. --]]
  12.  
  13. local ui_options = {
  14. main_color = Color3.fromRGB(255, 74, 122),
  15. min_size = Vector2.new(410, 570),
  16. toggle_key = Enum.KeyCode.P,
  17. can_resize = true,
  18. }
  19.  
  20. do
  21. local imgui = game:GetService("CoreGui"):FindFirstChild("SaijiKung ImGui")
  22. if imgui then imgui:Destroy() end
  23. end
  24.  
  25. local imgui = Instance.new("ScreenGui")
  26. local Prefabs = Instance.new("Frame")
  27. local Label = Instance.new("TextLabel")
  28. local Window = Instance.new("ImageLabel")
  29. local Resizer = Instance.new("Frame")
  30. local Bar = Instance.new("Frame")
  31. local Toggle = Instance.new("ImageButton")
  32. local Base = Instance.new("ImageLabel")
  33. local Top = Instance.new("ImageLabel")
  34. local Tabs = Instance.new("Frame")
  35. local Title = Instance.new("TextLabel")
  36. local TabSelection = Instance.new("ImageLabel")
  37. local TabButtons = Instance.new("Frame")
  38. local UIListLayout = Instance.new("UIListLayout")
  39. local Frame = Instance.new("Frame")
  40. local Tab = Instance.new("Frame")
  41. local UIListLayout_2 = Instance.new("UIListLayout")
  42. local TextBox = Instance.new("TextBox")
  43. local TextBox_Roundify_4px = Instance.new("ImageLabel")
  44. local Slider = Instance.new("ImageLabel")
  45. local Title_2 = Instance.new("TextLabel")
  46. local Indicator = Instance.new("ImageLabel")
  47. local Value = Instance.new("TextLabel")
  48. local TextLabel = Instance.new("TextLabel")
  49. local TextLabel_2 = Instance.new("TextLabel")
  50. local Circle = Instance.new("ImageLabel")
  51. local UIListLayout_3 = Instance.new("UIListLayout")
  52. local Dropdown = Instance.new("TextButton")
  53. local Indicator_2 = Instance.new("ImageLabel")
  54. local Box = Instance.new("ImageButton")
  55. local Objects = Instance.new("ScrollingFrame")
  56. local UIListLayout_4 = Instance.new("UIListLayout")
  57. local TextButton_Roundify_4px = Instance.new("ImageLabel")
  58. local TabButton = Instance.new("TextButton")
  59. local TextButton_Roundify_4px_2 = Instance.new("ImageLabel")
  60. local Folder = Instance.new("ImageLabel")
  61. local Button = Instance.new("TextButton")
  62. local TextButton_Roundify_4px_3 = Instance.new("ImageLabel")
  63. local Toggle_2 = Instance.new("ImageLabel")
  64. local Objects_2 = Instance.new("Frame")
  65. local UIListLayout_5 = Instance.new("UIListLayout")
  66. local HorizontalAlignment = Instance.new("Frame")
  67. local UIListLayout_6 = Instance.new("UIListLayout")
  68. local Console = Instance.new("ImageLabel")
  69. local ScrollingFrame = Instance.new("ScrollingFrame")
  70. local Source = Instance.new("TextBox")
  71. local Comments = Instance.new("TextLabel")
  72. local Globals = Instance.new("TextLabel")
  73. local Keywords = Instance.new("TextLabel")
  74. local RemoteHighlight = Instance.new("TextLabel")
  75. local Strings = Instance.new("TextLabel")
  76. local Tokens = Instance.new("TextLabel")
  77. local Numbers = Instance.new("TextLabel")
  78. local Info = Instance.new("TextLabel")
  79. local Lines = Instance.new("TextLabel")
  80. local ColorPicker = Instance.new("ImageLabel")
  81. local Palette = Instance.new("ImageLabel")
  82. local Indicator_3 = Instance.new("ImageLabel")
  83. local Sample = Instance.new("ImageLabel")
  84. local Saturation = Instance.new("ImageLabel")
  85. local Indicator_4 = Instance.new("Frame")
  86. local Switch = Instance.new("TextButton")
  87. local TextButton_Roundify_4px_4 = Instance.new("ImageLabel")
  88. local Title_3 = Instance.new("TextLabel")
  89. local Button_2 = Instance.new("TextButton")
  90. local TextButton_Roundify_4px_5 = Instance.new("ImageLabel")
  91. local DropdownButton = Instance.new("TextButton")
  92. local Keybind = Instance.new("ImageLabel")
  93. local Title_4 = Instance.new("TextLabel")
  94. local Input = Instance.new("TextButton")
  95. local Input_Roundify_4px = Instance.new("ImageLabel")
  96. local Windows = Instance.new("Frame")
  97.  
  98. imgui.Name = "SaijiKung ImGui"
  99. imgui.Parent = game:GetService("CoreGui")
  100.  
  101. Prefabs.Name = "Prefabs"
  102. Prefabs.Parent = imgui
  103. Prefabs.BackgroundColor3 = Color3.new(1, 1, 1)
  104. Prefabs.Size = UDim2.new(0, 100, 0, 100)
  105. Prefabs.Visible = false
  106.  
  107. Label.Name = "Label"
  108. Label.Parent = Prefabs
  109. Label.BackgroundColor3 = Color3.new(1, 1, 1)
  110. Label.BackgroundTransparency = 1
  111. Label.Size = UDim2.new(0, 200, 0, 20)
  112. Label.Font = Enum.Font.GothamSemibold
  113. Label.Text = "Hello, world 123"
  114. Label.TextColor3 = Color3.new(1, 1, 1)
  115. Label.TextSize = 14
  116. Label.TextXAlignment = Enum.TextXAlignment.Left
  117.  
  118. Window.Name = "Window"
  119. Window.Parent = Prefabs
  120. Window.Active = true
  121. Window.BackgroundColor3 = Color3.new(1, 1, 1)
  122. Window.BackgroundTransparency = 1
  123. Window.ClipsDescendants = true
  124. Window.Position = UDim2.new(0, 20, 0, 20)
  125. Window.Selectable = true
  126. Window.Size = UDim2.new(0, 200, 0, 200)
  127. Window.Image = "rbxassetid://2851926732"
  128. Window.ImageColor3 = Color3.new(0.0823529, 0.0862745, 0.0901961)
  129. Window.ScaleType = Enum.ScaleType.Slice
  130. Window.SliceCenter = Rect.new(12, 12, 12, 12)
  131.  
  132. Resizer.Name = "Resizer"
  133. Resizer.Parent = Window
  134. Resizer.Active = true
  135. Resizer.BackgroundColor3 = Color3.new(1, 1, 1)
  136. Resizer.BackgroundTransparency = 1
  137. Resizer.BorderSizePixel = 0
  138. Resizer.Position = UDim2.new(1, -20, 1, -20)
  139. Resizer.Size = UDim2.new(0, 20, 0, 20)
  140.  
  141. Bar.Name = "Bar"
  142. Bar.Parent = Window
  143. Bar.BackgroundColor3 = Color3.new(0.160784, 0.290196, 0.478431)
  144. Bar.BorderSizePixel = 0
  145. Bar.Position = UDim2.new(0, 0, 0, 5)
  146. Bar.Size = UDim2.new(1, 0, 0, 15)
  147.  
  148. Toggle.Name = "Toggle"
  149. Toggle.Parent = Bar
  150. Toggle.BackgroundColor3 = Color3.new(1, 1, 1)
  151. Toggle.BackgroundTransparency = 1
  152. Toggle.Position = UDim2.new(0, 5, 0, -2)
  153. Toggle.Rotation = 90
  154. Toggle.Size = UDim2.new(0, 20, 0, 20)
  155. Toggle.ZIndex = 2
  156. Toggle.Image = "https://www.roblox.com/Thumbs/Asset.ashx?width=420&height=420&assetId=4731371541"
  157.  
  158. Base.Name = "Base"
  159. Base.Parent = Bar
  160. Base.BackgroundColor3 = Color3.new(0.160784, 0.290196, 0.478431)
  161. Base.BorderSizePixel = 0
  162. Base.Position = UDim2.new(0, 0, 0.800000012, 0)
  163. Base.Size = UDim2.new(1, 0, 0, 10)
  164. Base.Image = "rbxassetid://2851926732"
  165. Base.ImageColor3 = Color3.new(0.160784, 0.290196, 0.478431)
  166. Base.ScaleType = Enum.ScaleType.Slice
  167. Base.SliceCenter = Rect.new(12, 12, 12, 12)
  168.  
  169. Top.Name = "Top"
  170. Top.Parent = Bar
  171. Top.BackgroundColor3 = Color3.new(1, 1, 1)
  172. Top.BackgroundTransparency = 1
  173. Top.Position = UDim2.new(0, 0, 0, -5)
  174. Top.Size = UDim2.new(1, 0, 0, 10)
  175. Top.Image = "rbxassetid://2851926732"
  176. Top.ImageColor3 = Color3.new(0.160784, 0.290196, 0.478431)
  177. Top.ScaleType = Enum.ScaleType.Slice
  178. Top.SliceCenter = Rect.new(12, 12, 12, 12)
  179.  
  180. Tabs.Name = "Tabs"
  181. Tabs.Parent = Window
  182. Tabs.BackgroundColor3 = Color3.new(1, 1, 1)
  183. Tabs.BackgroundTransparency = 1
  184. Tabs.Position = UDim2.new(0, 15, 0, 60)
  185. Tabs.Size = UDim2.new(1, -30, 1, -60)
  186.  
  187. Title.Name = "Title"
  188. Title.Parent = Window
  189. Title.BackgroundColor3 = Color3.new(1, 1, 1)
  190. Title.BackgroundTransparency = 1
  191. Title.Position = UDim2.new(0, 30, 0, 3)
  192. Title.Size = UDim2.new(0, 200, 0, 20)
  193. Title.Font = Enum.Font.GothamBold
  194. Title.Text = "Gamer Time"
  195. Title.TextColor3 = Color3.new(1, 1, 1)
  196. Title.TextSize = 14
  197. Title.TextXAlignment = Enum.TextXAlignment.Left
  198.  
  199. TabSelection.Name = "TabSelection"
  200. TabSelection.Parent = Window
  201. TabSelection.BackgroundColor3 = Color3.new(1, 1, 1)
  202. TabSelection.BackgroundTransparency = 1
  203. TabSelection.Position = UDim2.new(0, 15, 0, 30)
  204. TabSelection.Size = UDim2.new(1, -30, 0, 25)
  205. TabSelection.Visible = false
  206. TabSelection.Image = "rbxassetid://2851929490"
  207. TabSelection.ImageColor3 = Color3.new(0.145098, 0.14902, 0.156863)
  208. TabSelection.ScaleType = Enum.ScaleType.Slice
  209. TabSelection.SliceCenter = Rect.new(4, 4, 4, 4)
  210.  
  211. TabButtons.Name = "TabButtons"
  212. TabButtons.Parent = TabSelection
  213. TabButtons.BackgroundColor3 = Color3.new(1, 1, 1)
  214. TabButtons.BackgroundTransparency = 1
  215. TabButtons.Size = UDim2.new(1, 0, 1, 0)
  216.  
  217. UIListLayout.Parent = TabButtons
  218. UIListLayout.FillDirection = Enum.FillDirection.Horizontal
  219. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  220. UIListLayout.Padding = UDim.new(0, 2)
  221.  
  222. Frame.Parent = TabSelection
  223. Frame.BackgroundColor3 = Color3.new(0.12549, 0.227451, 0.372549)
  224. Frame.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  225. Frame.BorderSizePixel = 0
  226. Frame.Position = UDim2.new(0, 0, 1, 0)
  227. Frame.Size = UDim2.new(1, 0, 0, 2)
  228.  
  229. Tab.Name = "Tab"
  230. Tab.Parent = Prefabs
  231. Tab.BackgroundColor3 = Color3.new(1, 1, 1)
  232. Tab.BackgroundTransparency = 1
  233. Tab.Size = UDim2.new(1, 0, 1, 0)
  234. Tab.Visible = false
  235.  
  236. UIListLayout_2.Parent = Tab
  237. UIListLayout_2.SortOrder = Enum.SortOrder.LayoutOrder
  238. UIListLayout_2.Padding = UDim.new(0, 5)
  239.  
  240. TextBox.Parent = Prefabs
  241. TextBox.BackgroundColor3 = Color3.new(1, 1, 1)
  242. TextBox.BackgroundTransparency = 1
  243. TextBox.BorderSizePixel = 0
  244. TextBox.Size = UDim2.new(1, 0, 0, 20)
  245. TextBox.ZIndex = 2
  246. TextBox.Font = Enum.Font.GothamSemibold
  247. TextBox.PlaceholderColor3 = Color3.new(0.698039, 0.698039, 0.698039)
  248. TextBox.PlaceholderText = "Input Text"
  249. TextBox.Text = ""
  250. TextBox.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  251. TextBox.TextSize = 14
  252.  
  253. TextBox_Roundify_4px.Name = "TextBox_Roundify_4px"
  254. TextBox_Roundify_4px.Parent = TextBox
  255. TextBox_Roundify_4px.BackgroundColor3 = Color3.new(1, 1, 1)
  256. TextBox_Roundify_4px.BackgroundTransparency = 1
  257. TextBox_Roundify_4px.Size = UDim2.new(1, 0, 1, 0)
  258. TextBox_Roundify_4px.Image = "rbxassetid://2851929490"
  259. TextBox_Roundify_4px.ImageColor3 = Color3.new(0.203922, 0.207843, 0.219608)
  260. TextBox_Roundify_4px.ScaleType = Enum.ScaleType.Slice
  261. TextBox_Roundify_4px.SliceCenter = Rect.new(4, 4, 4, 4)
  262.  
  263. Slider.Name = "Slider"
  264. Slider.Parent = Prefabs
  265. Slider.BackgroundColor3 = Color3.new(1, 1, 1)
  266. Slider.BackgroundTransparency = 1
  267. Slider.Position = UDim2.new(0, 0, 0.178571433, 0)
  268. Slider.Size = UDim2.new(1, 0, 0, 20)
  269. Slider.Image = "rbxassetid://2851929490"
  270. Slider.ImageColor3 = Color3.new(0.145098, 0.14902, 0.156863)
  271. Slider.ScaleType = Enum.ScaleType.Slice
  272. Slider.SliceCenter = Rect.new(4, 4, 4, 4)
  273.  
  274. Title_2.Name = "Title"
  275. Title_2.Parent = Slider
  276. Title_2.BackgroundColor3 = Color3.new(1, 1, 1)
  277. Title_2.BackgroundTransparency = 1
  278. Title_2.Position = UDim2.new(0.5, 0, 0.5, -10)
  279. Title_2.Size = UDim2.new(0, 0, 0, 20)
  280. Title_2.ZIndex = 2
  281. Title_2.Font = Enum.Font.GothamBold
  282. Title_2.Text = "Slider"
  283. Title_2.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  284. Title_2.TextSize = 14
  285.  
  286. Indicator.Name = "Indicator"
  287. Indicator.Parent = Slider
  288. Indicator.BackgroundColor3 = Color3.new(1, 1, 1)
  289. Indicator.BackgroundTransparency = 1
  290. Indicator.Size = UDim2.new(0, 0, 0, 20)
  291. Indicator.Image = "rbxassetid://2851929490"
  292. Indicator.ImageColor3 = Color3.new(0.254902, 0.262745, 0.278431)
  293. Indicator.ScaleType = Enum.ScaleType.Slice
  294. Indicator.SliceCenter = Rect.new(4, 4, 4, 4)
  295.  
  296. Value.Name = "Value"
  297. Value.Parent = Slider
  298. Value.BackgroundColor3 = Color3.new(1, 1, 1)
  299. Value.BackgroundTransparency = 1
  300. Value.Position = UDim2.new(1, -55, 0.5, -10)
  301. Value.Size = UDim2.new(0, 50, 0, 20)
  302. Value.Font = Enum.Font.GothamBold
  303. Value.Text = "0%"
  304. Value.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  305. Value.TextSize = 14
  306.  
  307. TextLabel.Parent = Slider
  308. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  309. TextLabel.BackgroundTransparency = 1
  310. TextLabel.Position = UDim2.new(1, -20, -0.75, 0)
  311. TextLabel.Size = UDim2.new(0, 26, 0, 50)
  312. TextLabel.Font = Enum.Font.GothamBold
  313. TextLabel.Text = "]"
  314. TextLabel.TextColor3 = Color3.new(0.627451, 0.627451, 0.627451)
  315. TextLabel.TextSize = 14
  316.  
  317. TextLabel_2.Parent = Slider
  318. TextLabel_2.BackgroundColor3 = Color3.new(1, 1, 1)
  319. TextLabel_2.BackgroundTransparency = 1
  320. TextLabel_2.Position = UDim2.new(1, -65, -0.75, 0)
  321. TextLabel_2.Size = UDim2.new(0, 26, 0, 50)
  322. TextLabel_2.Font = Enum.Font.GothamBold
  323. TextLabel_2.Text = "["
  324. TextLabel_2.TextColor3 = Color3.new(0.627451, 0.627451, 0.627451)
  325. TextLabel_2.TextSize = 14
  326.  
  327. Circle.Name = "Circle"
  328. Circle.Parent = Prefabs
  329. Circle.BackgroundColor3 = Color3.new(1, 1, 1)
  330. Circle.BackgroundTransparency = 1
  331. Circle.Image = "rbxassetid://266543268"
  332. Circle.ImageTransparency = 0.5
  333.  
  334. UIListLayout_3.Parent = Prefabs
  335. UIListLayout_3.FillDirection = Enum.FillDirection.Horizontal
  336. UIListLayout_3.SortOrder = Enum.SortOrder.LayoutOrder
  337. UIListLayout_3.Padding = UDim.new(0, 20)
  338.  
  339. Dropdown.Name = "Dropdown"
  340. Dropdown.Parent = Prefabs
  341. Dropdown.BackgroundColor3 = Color3.new(1, 1, 1)
  342. Dropdown.BackgroundTransparency = 1
  343. Dropdown.BorderSizePixel = 0
  344. Dropdown.Position = UDim2.new(-0.055555556, 0, 0.0833333284, 0)
  345. Dropdown.Size = UDim2.new(0, 200, 0, 20)
  346. Dropdown.ZIndex = 2
  347. Dropdown.Font = Enum.Font.GothamBold
  348. Dropdown.Text = " Dropdown"
  349. Dropdown.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  350. Dropdown.TextSize = 14
  351. Dropdown.TextXAlignment = Enum.TextXAlignment.Left
  352.  
  353. Indicator_2.Name = "Indicator"
  354. Indicator_2.Parent = Dropdown
  355. Indicator_2.BackgroundColor3 = Color3.new(1, 1, 1)
  356. Indicator_2.BackgroundTransparency = 1
  357. Indicator_2.Position = UDim2.new(0.899999976, -10, 0.100000001, 0)
  358. Indicator_2.Rotation = -90
  359. Indicator_2.Size = UDim2.new(0, 15, 0, 15)
  360. Indicator_2.ZIndex = 2
  361. Indicator_2.Image = "https://www.roblox.com/Thumbs/Asset.ashx?width=420&height=420&assetId=4744658743"
  362.  
  363. Box.Name = "Box"
  364. Box.Parent = Dropdown
  365. Box.BackgroundColor3 = Color3.new(1, 1, 1)
  366. Box.BackgroundTransparency = 1
  367. Box.Position = UDim2.new(0, 0, 0, 25)
  368. Box.Size = UDim2.new(1, 0, 0, 150)
  369. Box.ZIndex = 3
  370. Box.Image = "rbxassetid://2851929490"
  371. Box.ImageColor3 = Color3.new(0.129412, 0.133333, 0.141176)
  372. Box.ScaleType = Enum.ScaleType.Slice
  373. Box.SliceCenter = Rect.new(4, 4, 4, 4)
  374.  
  375. Objects.Name = "Objects"
  376. Objects.Parent = Box
  377. Objects.BackgroundColor3 = Color3.new(1, 1, 1)
  378. Objects.BackgroundTransparency = 1
  379. Objects.BorderSizePixel = 0
  380. Objects.Size = UDim2.new(1, 0, 1, 0)
  381. Objects.ZIndex = 3
  382. Objects.CanvasSize = UDim2.new(0, 0, 0, 0)
  383. Objects.ScrollBarThickness = 8
  384.  
  385. UIListLayout_4.Parent = Objects
  386. UIListLayout_4.SortOrder = Enum.SortOrder.LayoutOrder
  387.  
  388. TextButton_Roundify_4px.Name = "TextButton_Roundify_4px"
  389. TextButton_Roundify_4px.Parent = Dropdown
  390. TextButton_Roundify_4px.BackgroundColor3 = Color3.new(1, 1, 1)
  391. TextButton_Roundify_4px.BackgroundTransparency = 1
  392. TextButton_Roundify_4px.Size = UDim2.new(1, 0, 1, 0)
  393. TextButton_Roundify_4px.Image = "rbxassetid://2851929490"
  394. TextButton_Roundify_4px.ImageColor3 = Color3.new(0.203922, 0.207843, 0.219608)
  395. TextButton_Roundify_4px.ScaleType = Enum.ScaleType.Slice
  396. TextButton_Roundify_4px.SliceCenter = Rect.new(4, 4, 4, 4)
  397.  
  398. TabButton.Name = "TabButton"
  399. TabButton.Parent = Prefabs
  400. TabButton.BackgroundColor3 = Color3.new(0.160784, 0.290196, 0.478431)
  401. TabButton.BackgroundTransparency = 1
  402. TabButton.BorderSizePixel = 0
  403. TabButton.Position = UDim2.new(0.185185179, 0, 0, 0)
  404. TabButton.Size = UDim2.new(0, 71, 0, 20)
  405. TabButton.ZIndex = 2
  406. TabButton.Font = Enum.Font.GothamSemibold
  407. TabButton.Text = "Test tab"
  408. TabButton.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  409. TabButton.TextSize = 14
  410.  
  411. TextButton_Roundify_4px_2.Name = "TextButton_Roundify_4px"
  412. TextButton_Roundify_4px_2.Parent = TabButton
  413. TextButton_Roundify_4px_2.BackgroundColor3 = Color3.new(1, 1, 1)
  414. TextButton_Roundify_4px_2.BackgroundTransparency = 1
  415. TextButton_Roundify_4px_2.Size = UDim2.new(1, 0, 1, 0)
  416. TextButton_Roundify_4px_2.Image = "rbxassetid://2851929490"
  417. TextButton_Roundify_4px_2.ImageColor3 = Color3.new(0.203922, 0.207843, 0.219608)
  418. TextButton_Roundify_4px_2.ScaleType = Enum.ScaleType.Slice
  419. TextButton_Roundify_4px_2.SliceCenter = Rect.new(4, 4, 4, 4)
  420.  
  421. Folder.Name = "Folder"
  422. Folder.Parent = Prefabs
  423. Folder.BackgroundColor3 = Color3.new(1, 1, 1)
  424. Folder.BackgroundTransparency = 1
  425. Folder.Position = UDim2.new(0, 0, 0, 50)
  426. Folder.Size = UDim2.new(1, 0, 0, 20)
  427. Folder.Image = "rbxassetid://2851929490"
  428. Folder.ImageColor3 = Color3.new(0.0823529, 0.0862745, 0.0901961)
  429. Folder.ScaleType = Enum.ScaleType.Slice
  430. Folder.SliceCenter = Rect.new(4, 4, 4, 4)
  431.  
  432. Button.Name = "Button"
  433. Button.Parent = Folder
  434. Button.BackgroundColor3 = Color3.new(0.160784, 0.290196, 0.478431)
  435. Button.BackgroundTransparency = 1
  436. Button.BorderSizePixel = 0
  437. Button.Size = UDim2.new(1, 0, 0, 20)
  438. Button.ZIndex = 2
  439. Button.Font = Enum.Font.GothamSemibold
  440. Button.Text = " Folder"
  441. Button.TextColor3 = Color3.new(1, 1, 1)
  442. Button.TextSize = 14
  443. Button.TextXAlignment = Enum.TextXAlignment.Left
  444.  
  445. TextButton_Roundify_4px_3.Name = "TextButton_Roundify_4px"
  446. TextButton_Roundify_4px_3.Parent = Button
  447. TextButton_Roundify_4px_3.BackgroundColor3 = Color3.new(1, 1, 1)
  448. TextButton_Roundify_4px_3.BackgroundTransparency = 1
  449. TextButton_Roundify_4px_3.Size = UDim2.new(1, 0, 1, 0)
  450. TextButton_Roundify_4px_3.Image = "rbxassetid://2851929490"
  451. TextButton_Roundify_4px_3.ImageColor3 = Color3.new(0.160784, 0.290196, 0.478431)
  452. TextButton_Roundify_4px_3.ScaleType = Enum.ScaleType.Slice
  453. TextButton_Roundify_4px_3.SliceCenter = Rect.new(4, 4, 4, 4)
  454.  
  455. Toggle_2.Name = "Toggle"
  456. Toggle_2.Parent = Button
  457. Toggle_2.BackgroundColor3 = Color3.new(1, 1, 1)
  458. Toggle_2.BackgroundTransparency = 1
  459. Toggle_2.Position = UDim2.new(0, 5, 0, 0)
  460. Toggle_2.Size = UDim2.new(0, 20, 0, 20)
  461. Toggle_2.Image = "https://www.roblox.com/Thumbs/Asset.ashx?width=420&height=420&assetId=4731371541"
  462.  
  463. Objects_2.Name = "Objects"
  464. Objects_2.Parent = Folder
  465. Objects_2.BackgroundColor3 = Color3.new(1, 1, 1)
  466. Objects_2.BackgroundTransparency = 1
  467. Objects_2.Position = UDim2.new(0, 10, 0, 25)
  468. Objects_2.Size = UDim2.new(1, -10, 1, -25)
  469. Objects_2.Visible = false
  470.  
  471. UIListLayout_5.Parent = Objects_2
  472. UIListLayout_5.SortOrder = Enum.SortOrder.LayoutOrder
  473. UIListLayout_5.Padding = UDim.new(0, 5)
  474.  
  475. HorizontalAlignment.Name = "HorizontalAlignment"
  476. HorizontalAlignment.Parent = Prefabs
  477. HorizontalAlignment.BackgroundColor3 = Color3.new(1, 1, 1)
  478. HorizontalAlignment.BackgroundTransparency = 1
  479. HorizontalAlignment.Size = UDim2.new(1, 0, 0, 20)
  480.  
  481. UIListLayout_6.Parent = HorizontalAlignment
  482. UIListLayout_6.FillDirection = Enum.FillDirection.Horizontal
  483. UIListLayout_6.SortOrder = Enum.SortOrder.LayoutOrder
  484. UIListLayout_6.Padding = UDim.new(0, 5)
  485.  
  486. Console.Name = "Console"
  487. Console.Parent = Prefabs
  488. Console.BackgroundColor3 = Color3.new(1, 1, 1)
  489. Console.BackgroundTransparency = 1
  490. Console.Size = UDim2.new(1, 0, 0, 200)
  491. Console.Image = "rbxassetid://2851928141"
  492. Console.ImageColor3 = Color3.new(0.129412, 0.133333, 0.141176)
  493. Console.ScaleType = Enum.ScaleType.Slice
  494. Console.SliceCenter = Rect.new(8, 8, 8, 8)
  495.  
  496. ScrollingFrame.Parent = Console
  497. ScrollingFrame.BackgroundColor3 = Color3.new(1, 1, 1)
  498. ScrollingFrame.BackgroundTransparency = 1
  499. ScrollingFrame.BorderSizePixel = 0
  500. ScrollingFrame.Size = UDim2.new(1, 0, 1, 1)
  501. ScrollingFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
  502. ScrollingFrame.ScrollBarThickness = 4
  503.  
  504. Source.Name = "Source"
  505. Source.Parent = ScrollingFrame
  506. Source.BackgroundColor3 = Color3.new(1, 1, 1)
  507. Source.BackgroundTransparency = 1
  508. Source.Position = UDim2.new(0, 40, 0, 0)
  509. Source.Size = UDim2.new(1, -40, 0, 10000)
  510. Source.ZIndex = 3
  511. Source.ClearTextOnFocus = false
  512. Source.Font = Enum.Font.Code
  513. Source.MultiLine = true
  514. Source.PlaceholderColor3 = Color3.new(0.8, 0.8, 0.8)
  515. Source.Text = ""
  516. Source.TextColor3 = Color3.new(1, 1, 1)
  517. Source.TextSize = 15
  518. Source.TextStrokeColor3 = Color3.new(1, 1, 1)
  519. Source.TextWrapped = true
  520. Source.TextXAlignment = Enum.TextXAlignment.Left
  521. Source.TextYAlignment = Enum.TextYAlignment.Top
  522.  
  523. Comments.Name = "Comments"
  524. Comments.Parent = Source
  525. Comments.BackgroundColor3 = Color3.new(1, 1, 1)
  526. Comments.BackgroundTransparency = 1
  527. Comments.Size = UDim2.new(1, 0, 1, 0)
  528. Comments.ZIndex = 5
  529. Comments.Font = Enum.Font.Code
  530. Comments.Text = ""
  531. Comments.TextColor3 = Color3.new(0.231373, 0.784314, 0.231373)
  532. Comments.TextSize = 15
  533. Comments.TextXAlignment = Enum.TextXAlignment.Left
  534. Comments.TextYAlignment = Enum.TextYAlignment.Top
  535.  
  536. Globals.Name = "Globals"
  537. Globals.Parent = Source
  538. Globals.BackgroundColor3 = Color3.new(1, 1, 1)
  539. Globals.BackgroundTransparency = 1
  540. Globals.Size = UDim2.new(1, 0, 1, 0)
  541. Globals.ZIndex = 5
  542. Globals.Font = Enum.Font.Code
  543. Globals.Text = ""
  544. Globals.TextColor3 = Color3.new(0.517647, 0.839216, 0.968628)
  545. Globals.TextSize = 15
  546. Globals.TextXAlignment = Enum.TextXAlignment.Left
  547. Globals.TextYAlignment = Enum.TextYAlignment.Top
  548.  
  549. Keywords.Name = "Keywords"
  550. Keywords.Parent = Source
  551. Keywords.BackgroundColor3 = Color3.new(1, 1, 1)
  552. Keywords.BackgroundTransparency = 1
  553. Keywords.Size = UDim2.new(1, 0, 1, 0)
  554. Keywords.ZIndex = 5
  555. Keywords.Font = Enum.Font.Code
  556. Keywords.Text = ""
  557. Keywords.TextColor3 = Color3.new(0.972549, 0.427451, 0.486275)
  558. Keywords.TextSize = 15
  559. Keywords.TextXAlignment = Enum.TextXAlignment.Left
  560. Keywords.TextYAlignment = Enum.TextYAlignment.Top
  561.  
  562. RemoteHighlight.Name = "RemoteHighlight"
  563. RemoteHighlight.Parent = Source
  564. RemoteHighlight.BackgroundColor3 = Color3.new(1, 1, 1)
  565. RemoteHighlight.BackgroundTransparency = 1
  566. RemoteHighlight.Size = UDim2.new(1, 0, 1, 0)
  567. RemoteHighlight.ZIndex = 5
  568. RemoteHighlight.Font = Enum.Font.Code
  569. RemoteHighlight.Text = ""
  570. RemoteHighlight.TextColor3 = Color3.new(0, 0.568627, 1)
  571. RemoteHighlight.TextSize = 15
  572. RemoteHighlight.TextXAlignment = Enum.TextXAlignment.Left
  573. RemoteHighlight.TextYAlignment = Enum.TextYAlignment.Top
  574.  
  575. Strings.Name = "Strings"
  576. Strings.Parent = Source
  577. Strings.BackgroundColor3 = Color3.new(1, 1, 1)
  578. Strings.BackgroundTransparency = 1
  579. Strings.Size = UDim2.new(1, 0, 1, 0)
  580. Strings.ZIndex = 5
  581. Strings.Font = Enum.Font.Code
  582. Strings.Text = ""
  583. Strings.TextColor3 = Color3.new(0.678431, 0.945098, 0.584314)
  584. Strings.TextSize = 15
  585. Strings.TextXAlignment = Enum.TextXAlignment.Left
  586. Strings.TextYAlignment = Enum.TextYAlignment.Top
  587.  
  588. Tokens.Name = "Tokens"
  589. Tokens.Parent = Source
  590. Tokens.BackgroundColor3 = Color3.new(1, 1, 1)
  591. Tokens.BackgroundTransparency = 1
  592. Tokens.Size = UDim2.new(1, 0, 1, 0)
  593. Tokens.ZIndex = 5
  594. Tokens.Font = Enum.Font.Code
  595. Tokens.Text = ""
  596. Tokens.TextColor3 = Color3.new(1, 1, 1)
  597. Tokens.TextSize = 15
  598. Tokens.TextXAlignment = Enum.TextXAlignment.Left
  599. Tokens.TextYAlignment = Enum.TextYAlignment.Top
  600.  
  601. Numbers.Name = "Numbers"
  602. Numbers.Parent = Source
  603. Numbers.BackgroundColor3 = Color3.new(1, 1, 1)
  604. Numbers.BackgroundTransparency = 1
  605. Numbers.Size = UDim2.new(1, 0, 1, 0)
  606. Numbers.ZIndex = 4
  607. Numbers.Font = Enum.Font.Code
  608. Numbers.Text = ""
  609. Numbers.TextColor3 = Color3.new(1, 0.776471, 0)
  610. Numbers.TextSize = 15
  611. Numbers.TextXAlignment = Enum.TextXAlignment.Left
  612. Numbers.TextYAlignment = Enum.TextYAlignment.Top
  613.  
  614. Info.Name = "Info"
  615. Info.Parent = Source
  616. Info.BackgroundColor3 = Color3.new(1, 1, 1)
  617. Info.BackgroundTransparency = 1
  618. Info.Size = UDim2.new(1, 0, 1, 0)
  619. Info.ZIndex = 5
  620. Info.Font = Enum.Font.Code
  621. Info.Text = ""
  622. Info.TextColor3 = Color3.new(0, 0.635294, 1)
  623. Info.TextSize = 15
  624. Info.TextXAlignment = Enum.TextXAlignment.Left
  625. Info.TextYAlignment = Enum.TextYAlignment.Top
  626.  
  627. Lines.Name = "Lines"
  628. Lines.Parent = ScrollingFrame
  629. Lines.BackgroundColor3 = Color3.new(1, 1, 1)
  630. Lines.BackgroundTransparency = 1
  631. Lines.BorderSizePixel = 0
  632. Lines.Size = UDim2.new(0, 40, 0, 10000)
  633. Lines.ZIndex = 4
  634. Lines.Font = Enum.Font.Code
  635. Lines.Text = "1\n"
  636. Lines.TextColor3 = Color3.new(1, 1, 1)
  637. Lines.TextSize = 15
  638. Lines.TextWrapped = true
  639. Lines.TextYAlignment = Enum.TextYAlignment.Top
  640.  
  641. ColorPicker.Name = "ColorPicker"
  642. ColorPicker.Parent = Prefabs
  643. ColorPicker.BackgroundColor3 = Color3.new(1, 1, 1)
  644. ColorPicker.BackgroundTransparency = 1
  645. ColorPicker.Size = UDim2.new(0, 180, 0, 110)
  646. ColorPicker.Image = "rbxassetid://2851929490"
  647. ColorPicker.ImageColor3 = Color3.new(0.203922, 0.207843, 0.219608)
  648. ColorPicker.ScaleType = Enum.ScaleType.Slice
  649. ColorPicker.SliceCenter = Rect.new(4, 4, 4, 4)
  650.  
  651. Palette.Name = "Palette"
  652. Palette.Parent = ColorPicker
  653. Palette.BackgroundColor3 = Color3.new(1, 1, 1)
  654. Palette.BackgroundTransparency = 1
  655. Palette.Position = UDim2.new(0.0500000007, 0, 0.0500000007, 0)
  656. Palette.Size = UDim2.new(0, 100, 0, 100)
  657. Palette.Image = "rbxassetid://698052001"
  658. Palette.ScaleType = Enum.ScaleType.Slice
  659. Palette.SliceCenter = Rect.new(4, 4, 4, 4)
  660.  
  661. Indicator_3.Name = "Indicator"
  662. Indicator_3.Parent = Palette
  663. Indicator_3.BackgroundColor3 = Color3.new(1, 1, 1)
  664. Indicator_3.BackgroundTransparency = 1
  665. Indicator_3.Size = UDim2.new(0, 5, 0, 5)
  666. Indicator_3.ZIndex = 2
  667. Indicator_3.Image = "rbxassetid://2851926732"
  668. Indicator_3.ImageColor3 = Color3.new(0, 0, 0)
  669. Indicator_3.ScaleType = Enum.ScaleType.Slice
  670. Indicator_3.SliceCenter = Rect.new(12, 12, 12, 12)
  671.  
  672. Sample.Name = "Sample"
  673. Sample.Parent = ColorPicker
  674. Sample.BackgroundColor3 = Color3.new(1, 1, 1)
  675. Sample.BackgroundTransparency = 1
  676. Sample.Position = UDim2.new(0.800000012, 0, 0.0500000007, 0)
  677. Sample.Size = UDim2.new(0, 25, 0, 25)
  678. Sample.Image = "rbxassetid://2851929490"
  679. Sample.ScaleType = Enum.ScaleType.Slice
  680. Sample.SliceCenter = Rect.new(4, 4, 4, 4)
  681.  
  682. Saturation.Name = "Saturation"
  683. Saturation.Parent = ColorPicker
  684. Saturation.BackgroundColor3 = Color3.new(1, 1, 1)
  685. Saturation.Position = UDim2.new(0.649999976, 0, 0.0500000007, 0)
  686. Saturation.Size = UDim2.new(0, 15, 0, 100)
  687. Saturation.Image = "rbxassetid://3641079629"
  688.  
  689. Indicator_4.Name = "Indicator"
  690. Indicator_4.Parent = Saturation
  691. Indicator_4.BackgroundColor3 = Color3.new(1, 1, 1)
  692. Indicator_4.BorderSizePixel = 0
  693. Indicator_4.Size = UDim2.new(0, 20, 0, 2)
  694. Indicator_4.ZIndex = 2
  695.  
  696. Switch.Name = "Switch"
  697. Switch.Parent = Prefabs
  698. Switch.BackgroundColor3 = Color3.new(1, 1, 1)
  699. Switch.BackgroundTransparency = 1
  700. Switch.BorderSizePixel = 0
  701. Switch.Position = UDim2.new(0.229411766, 0, 0.20714286, 0)
  702. Switch.Size = UDim2.new(0, 20, 0, 20)
  703. Switch.ZIndex = 2
  704. Switch.Font = Enum.Font.SourceSans
  705. Switch.Text = ""
  706. Switch.TextColor3 = Color3.new(1, 1, 1)
  707. Switch.TextSize = 18
  708.  
  709. TextButton_Roundify_4px_4.Name = "TextButton_Roundify_4px"
  710. TextButton_Roundify_4px_4.Parent = Switch
  711. TextButton_Roundify_4px_4.BackgroundColor3 = Color3.new(1, 1, 1)
  712. TextButton_Roundify_4px_4.BackgroundTransparency = 1
  713. TextButton_Roundify_4px_4.Size = UDim2.new(1, 0, 1, 0)
  714. TextButton_Roundify_4px_4.Image = "rbxassetid://2851929490"
  715. TextButton_Roundify_4px_4.ImageColor3 = Color3.new(0.160784, 0.290196, 0.478431)
  716. TextButton_Roundify_4px_4.ImageTransparency = 0.5
  717. TextButton_Roundify_4px_4.ScaleType = Enum.ScaleType.Slice
  718. TextButton_Roundify_4px_4.SliceCenter = Rect.new(4, 4, 4, 4)
  719.  
  720. Title_3.Name = "Title"
  721. Title_3.Parent = Switch
  722. Title_3.BackgroundColor3 = Color3.new(1, 1, 1)
  723. Title_3.BackgroundTransparency = 1
  724. Title_3.Position = UDim2.new(1.20000005, 0, 0, 0)
  725. Title_3.Size = UDim2.new(0, 20, 0, 20)
  726. Title_3.Font = Enum.Font.GothamSemibold
  727. Title_3.Text = "Switch"
  728. Title_3.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  729. Title_3.TextSize = 14
  730. Title_3.TextXAlignment = Enum.TextXAlignment.Left
  731.  
  732. Button_2.Name = "Button"
  733. Button_2.Parent = Prefabs
  734. Button_2.BackgroundColor3 = Color3.new(0.160784, 0.290196, 0.478431)
  735. Button_2.BackgroundTransparency = 1
  736. Button_2.BorderSizePixel = 0
  737. Button_2.Size = UDim2.new(0, 91, 0, 20)
  738. Button_2.ZIndex = 2
  739. Button_2.Font = Enum.Font.GothamSemibold
  740. Button_2.TextColor3 = Color3.new(1, 1, 1)
  741. Button_2.TextSize = 14
  742.  
  743. TextButton_Roundify_4px_5.Name = "TextButton_Roundify_4px"
  744. TextButton_Roundify_4px_5.Parent = Button_2
  745. TextButton_Roundify_4px_5.BackgroundColor3 = Color3.new(1, 1, 1)
  746. TextButton_Roundify_4px_5.BackgroundTransparency = 1
  747. TextButton_Roundify_4px_5.Size = UDim2.new(1, 0, 1, 0)
  748. TextButton_Roundify_4px_5.Image = "rbxassetid://2851929490"
  749. TextButton_Roundify_4px_5.ImageColor3 = Color3.new(0.160784, 0.290196, 0.478431)
  750. TextButton_Roundify_4px_5.ScaleType = Enum.ScaleType.Slice
  751. TextButton_Roundify_4px_5.SliceCenter = Rect.new(4, 4, 4, 4)
  752.  
  753. DropdownButton.Name = "DropdownButton"
  754. DropdownButton.Parent = Prefabs
  755. DropdownButton.BackgroundColor3 = Color3.new(0.129412, 0.133333, 0.141176)
  756. DropdownButton.BorderSizePixel = 0
  757. DropdownButton.Size = UDim2.new(1, 0, 0, 20)
  758. DropdownButton.ZIndex = 3
  759. DropdownButton.Font = Enum.Font.GothamBold
  760. DropdownButton.Text = " Button"
  761. DropdownButton.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  762. DropdownButton.TextSize = 14
  763. DropdownButton.TextXAlignment = Enum.TextXAlignment.Left
  764.  
  765. Keybind.Name = "Keybind"
  766. Keybind.Parent = Prefabs
  767. Keybind.BackgroundColor3 = Color3.new(1, 1, 1)
  768. Keybind.BackgroundTransparency = 1
  769. Keybind.Size = UDim2.new(0, 200, 0, 20)
  770. Keybind.Image = "rbxassetid://2851929490"
  771. Keybind.ImageColor3 = Color3.new(0.203922, 0.207843, 0.219608)
  772. Keybind.ScaleType = Enum.ScaleType.Slice
  773. Keybind.SliceCenter = Rect.new(4, 4, 4, 4)
  774.  
  775. Title_4.Name = "Title"
  776. Title_4.Parent = Keybind
  777. Title_4.BackgroundColor3 = Color3.new(1, 1, 1)
  778. Title_4.BackgroundTransparency = 1
  779. Title_4.Size = UDim2.new(0, 0, 1, 0)
  780. Title_4.Font = Enum.Font.GothamBold
  781. Title_4.Text = "Keybind"
  782. Title_4.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  783. Title_4.TextSize = 14
  784. Title_4.TextXAlignment = Enum.TextXAlignment.Left
  785.  
  786. Input.Name = "Input"
  787. Input.Parent = Keybind
  788. Input.BackgroundColor3 = Color3.new(1, 1, 1)
  789. Input.BackgroundTransparency = 1
  790. Input.BorderSizePixel = 0
  791. Input.Position = UDim2.new(1, -85, 0, 2)
  792. Input.Size = UDim2.new(0, 80, 1, -4)
  793. Input.ZIndex = 2
  794. Input.Font = Enum.Font.GothamSemibold
  795. Input.Text = "RShift"
  796. Input.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  797. Input.TextSize = 12
  798. Input.TextWrapped = true
  799.  
  800. Input_Roundify_4px.Name = "Input_Roundify_4px"
  801. Input_Roundify_4px.Parent = Input
  802. Input_Roundify_4px.BackgroundColor3 = Color3.new(1, 1, 1)
  803. Input_Roundify_4px.BackgroundTransparency = 1
  804. Input_Roundify_4px.Size = UDim2.new(1, 0, 1, 0)
  805. Input_Roundify_4px.Image = "rbxassetid://2851929490"
  806. Input_Roundify_4px.ImageColor3 = Color3.new(0.290196, 0.294118, 0.313726)
  807. Input_Roundify_4px.ScaleType = Enum.ScaleType.Slice
  808. Input_Roundify_4px.SliceCenter = Rect.new(4, 4, 4, 4)
  809.  
  810. Windows.Name = "Windows"
  811. Windows.Parent = imgui
  812. Windows.BackgroundColor3 = Color3.new(1, 1, 1)
  813. Windows.BackgroundTransparency = 1
  814. Windows.Position = UDim2.new(0, 20, 0, 20)
  815. Windows.Size = UDim2.new(1, 20, 1, -20)
  816.  
  817. --[[ Script ]]--
  818. script.Parent = imgui
  819.  
  820. local UIS = game:GetService("UserInputService")
  821. local TweenService = game:GetService("TweenService")
  822. local RS = game:GetService("RunService")
  823. local ps = game:GetService("Players")
  824.  
  825. local p = ps.LocalPlayer
  826. local mouse = p:GetMouse()
  827.  
  828. local Prefabs = script.Parent:WaitForChild("Prefabs")
  829. local Windows = script.Parent:FindFirstChild("Windows")
  830.  
  831. local checks = {
  832. ["binding"] = false,
  833. }
  834.  
  835. UIS.InputBegan:Connect(function(input, gameProcessed)
  836. if input.KeyCode == ((typeof(ui_options.toggle_key) == "EnumItem") and ui_options.toggle_key or Enum.KeyCode.RightShift) then
  837. if script.Parent then
  838. if not checks.binding then
  839. script.Parent.Enabled = not script.Parent.Enabled
  840. end
  841. end
  842. end
  843. end)
  844.  
  845. local function Resize(part, new, _delay)
  846. _delay = _delay or 0.5
  847. local tweenInfo = TweenInfo.new(_delay, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
  848. local tween = TweenService:Create(part, tweenInfo, new)
  849. tween:Play()
  850. end
  851.  
  852. local function rgbtohsv(r, g, b) -- idk who made this function, but thanks
  853. r, g, b = r / 255, g / 255, b / 255
  854. local max, min = math.max(r, g, b), math.min(r, g, b)
  855. local h, s, v
  856. v = max
  857.  
  858. local d = max - min
  859. if max == 0 then
  860. s = 0
  861. else
  862. s = d / max
  863. end
  864.  
  865. if max == min then
  866. h = 0
  867. else
  868. if max == r then
  869. h = (g - b) / d
  870. if g < b then
  871. h = h + 6
  872. end
  873. elseif max == g then
  874. h = (b - r) / d + 2
  875. elseif max == b then
  876. h = (r - g) / d + 4
  877. end
  878. h = h / 6
  879. end
  880.  
  881. return h, s, v
  882. end
  883.  
  884. local function hasprop(object, prop)
  885. local a, b = pcall(function()
  886. return object[tostring(prop)]
  887. end)
  888. if a then
  889. return b
  890. end
  891. end
  892.  
  893. local function gNameLen(obj)
  894. return obj.TextBounds.X + 15
  895. end
  896.  
  897. local function gMouse()
  898. return Vector2.new(UIS:GetMouseLocation().X + 1, UIS:GetMouseLocation().Y - 35)
  899. end
  900.  
  901. local function ripple(button, x, y)
  902. spawn(function()
  903. button.ClipsDescendants = true
  904.  
  905. local circle = Prefabs:FindFirstChild("Circle"):Clone()
  906.  
  907. circle.Parent = button
  908. circle.ZIndex = 1000
  909.  
  910. local new_x = x - circle.AbsolutePosition.X
  911. local new_y = y - circle.AbsolutePosition.Y
  912. circle.Position = UDim2.new(0, new_x, 0, new_y)
  913.  
  914. local size = 0
  915. if button.AbsoluteSize.X > button.AbsoluteSize.Y then
  916. size = button.AbsoluteSize.X * 1.5
  917. elseif button.AbsoluteSize.X < button.AbsoluteSize.Y then
  918. size = button.AbsoluteSize.Y * 1.5
  919. elseif button.AbsoluteSize.X == button.AbsoluteSize.Y then
  920. size = button.AbsoluteSize.X * 1.5
  921. end
  922.  
  923. circle:TweenSizeAndPosition(UDim2.new(0, size, 0, size), UDim2.new(0.5, -size / 2, 0.5, -size / 2), "Out", "Quad", 0.5, false, nil)
  924. Resize(circle, {ImageTransparency = 1}, 0.5)
  925.  
  926. wait(0.5)
  927. circle:Destroy()
  928. end)
  929. end
  930.  
  931. local windows = 0
  932. library = {}
  933.  
  934. local function format_windows()
  935. local ull = Prefabs:FindFirstChild("UIListLayout"):Clone()
  936. ull.Parent = Windows
  937. local data = {}
  938.  
  939. for i,v in next, Windows:GetChildren() do
  940. if not (v:IsA("UIListLayout")) then
  941. data[v] = v.AbsolutePosition
  942. end
  943. end
  944.  
  945. ull:Destroy()
  946.  
  947. for i,v in next, data do
  948. i.Position = UDim2.new(0, v.X, 0, v.Y)
  949. end
  950. end
  951.  
  952. function library:FormatWindows()
  953. format_windows()
  954. end
  955.  
  956. function library:AddWindow(title, options)
  957. windows = windows + 1
  958. local dropdown_open = false
  959. title = tostring(title or "New Window")
  960. options = (typeof(options) == "table") and options or ui_options
  961. options.tween_time = 0.1
  962.  
  963. local Window = Prefabs:FindFirstChild("Window"):Clone()
  964. Window.Parent = Windows
  965. Window:FindFirstChild("Title").Text = title
  966. Window.Size = UDim2.new(0, options.min_size.X, 0, options.min_size.Y)
  967. Window.ZIndex = Window.ZIndex + (windows * 10)
  968.  
  969. do -- Altering Window Color
  970. local Title = Window:FindFirstChild("Title")
  971. local Bar = Window:FindFirstChild("Bar")
  972. local Base = Bar:FindFirstChild("Base")
  973. local Top = Bar:FindFirstChild("Top")
  974. local SplitFrame = Window:FindFirstChild("TabSelection"):FindFirstChild("Frame")
  975. local Toggle = Bar:FindFirstChild("Toggle")
  976.  
  977. spawn(function()
  978. while true do
  979. Bar.BackgroundColor3 = options.main_color
  980. Base.BackgroundColor3 = options.main_color
  981. Base.ImageColor3 = options.main_color
  982. Top.ImageColor3 = options.main_color
  983. SplitFrame.BackgroundColor3 = options.main_color
  984.  
  985. RS.Heartbeat:Wait()
  986. end
  987. end)
  988.  
  989. end
  990.  
  991. local Resizer = Window:WaitForChild("Resizer")
  992.  
  993. local window_data = {}
  994. Window.Draggable = true
  995.  
  996. do -- Resize Window
  997. local oldIcon = mouse.Icon
  998. local Entered = false
  999. Resizer.MouseEnter:Connect(function()
  1000. Window.Draggable = false
  1001. if options.can_resize then
  1002. oldIcon = mouse.Icon
  1003. -- mouse.Icon = "http://www.roblox.com/asset?id=4745131330"
  1004. end
  1005. Entered = true
  1006. end)
  1007.  
  1008. Resizer.MouseLeave:Connect(function()
  1009. Entered = false
  1010. if options.can_resize then
  1011. mouse.Icon = oldIcon
  1012. end
  1013. Window.Draggable = true
  1014. end)
  1015.  
  1016. local Held = false
  1017. UIS.InputBegan:Connect(function(inputObject)
  1018. if inputObject.UserInputType == Enum.UserInputType.MouseButton1 then
  1019. Held = true
  1020.  
  1021. spawn(function() -- Loop check
  1022. if Entered and Resizer.Active and options.can_resize then
  1023. while Held and Resizer.Active do
  1024.  
  1025. local mouse_location = gMouse()
  1026. local x = mouse_location.X - Window.AbsolutePosition.X
  1027. local y = mouse_location.Y - Window.AbsolutePosition.Y
  1028.  
  1029. --
  1030. if x >= options.min_size.X and y >= options.min_size.Y then
  1031. Resize(Window, {Size = UDim2.new(0, x, 0, y)}, options.tween_time)
  1032. elseif x >= options.min_size.X then
  1033. Resize(Window, {Size = UDim2.new(0, x, 0, options.min_size.Y)}, options.tween_time)
  1034. elseif y >= options.min_size.Y then
  1035. Resize(Window, {Size = UDim2.new(0, options.min_size.X, 0, y)}, options.tween_time)
  1036. else
  1037. Resize(Window, {Size = UDim2.new(0, options.min_size.X, 0, options.min_size.Y)}, options.tween_time)
  1038. end
  1039.  
  1040. RS.Heartbeat:Wait()
  1041. end
  1042. end
  1043. end)
  1044. end
  1045. end)
  1046. UIS.InputEnded:Connect(function(inputObject)
  1047. if inputObject.UserInputType == Enum.UserInputType.MouseButton1 then
  1048. Held = false
  1049. end
  1050. end)
  1051. end
  1052.  
  1053. do -- [Open / Close] Window
  1054. local open_close = Window:FindFirstChild("Bar"):FindFirstChild("Toggle")
  1055. local open = true
  1056. local canopen = true
  1057.  
  1058. local oldwindowdata = {}
  1059. local oldy = Window.AbsoluteSize.Y
  1060. open_close.MouseButton1Click:Connect(function()
  1061. if canopen then
  1062. canopen = false
  1063.  
  1064. if open then
  1065. -- Close
  1066.  
  1067. oldwindowdata = {}
  1068. for i,v in next, Window:FindFirstChild("Tabs"):GetChildren() do
  1069. oldwindowdata[v] = v.Visible
  1070. v.Visible = false
  1071. end
  1072.  
  1073. Resizer.Active = false
  1074.  
  1075. oldy = Window.AbsoluteSize.Y
  1076. Resize(open_close, {Rotation = 0}, options.tween_time)
  1077. Resize(Window, {Size = UDim2.new(0, Window.AbsoluteSize.X, 0, 26)}, options.tween_time)
  1078. open_close.Parent:FindFirstChild("Base").Transparency = 1
  1079.  
  1080. else
  1081. -- Open
  1082.  
  1083. for i,v in next, oldwindowdata do
  1084. i.Visible = v
  1085. end
  1086.  
  1087. Resizer.Active = true
  1088.  
  1089. Resize(open_close, {Rotation = 90}, options.tween_time)
  1090. Resize(Window, {Size = UDim2.new(0, Window.AbsoluteSize.X, 0, oldy)}, options.tween_time)
  1091. open_close.Parent:FindFirstChild("Base").Transparency = 0
  1092.  
  1093. end
  1094.  
  1095. open = not open
  1096. wait(options.tween_time)
  1097. canopen = true
  1098.  
  1099. end
  1100. end)
  1101. end
  1102.  
  1103. do -- UI Elements
  1104. local tabs = Window:FindFirstChild("Tabs")
  1105. local tab_selection = Window:FindFirstChild("TabSelection")
  1106. local tab_buttons = tab_selection:FindFirstChild("TabButtons")
  1107.  
  1108. do -- Add Tab
  1109. function window_data:AddTab(tab_name)
  1110. local tab_data = {}
  1111. tab_name = tostring(tab_name or "New Tab")
  1112. tab_selection.Visible = true
  1113.  
  1114. local new_button = Prefabs:FindFirstChild("TabButton"):Clone()
  1115. new_button.Parent = tab_buttons
  1116. new_button.Text = tab_name
  1117. new_button.Size = UDim2.new(0, gNameLen(new_button), 0, 20)
  1118. new_button.ZIndex = new_button.ZIndex + (windows * 10)
  1119. new_button:GetChildren()[1].ZIndex = new_button:GetChildren()[1].ZIndex + (windows * 10)
  1120.  
  1121. local new_tab = Prefabs:FindFirstChild("Tab"):Clone()
  1122. new_tab.Parent = tabs
  1123. new_tab.ZIndex = new_tab.ZIndex + (windows * 10)
  1124.  
  1125. local function show()
  1126. if dropdown_open then return end
  1127. for i, v in next, tab_buttons:GetChildren() do
  1128. if not (v:IsA("UIListLayout")) then
  1129. v:GetChildren()[1].ImageColor3 = Color3.fromRGB(52, 53, 56)
  1130. Resize(v, {Size = UDim2.new(0, v.AbsoluteSize.X, 0, 20)}, options.tween_time)
  1131. end
  1132. end
  1133. for i, v in next, tabs:GetChildren() do
  1134. v.Visible = false
  1135. end
  1136.  
  1137. Resize(new_button, {Size = UDim2.new(0, new_button.AbsoluteSize.X, 0, 25)}, options.tween_time)
  1138. new_button:GetChildren()[1].ImageColor3 = Color3.fromRGB(73, 75, 79)
  1139. new_tab.Visible = true
  1140. end
  1141.  
  1142. new_button.MouseButton1Click:Connect(function()
  1143. show()
  1144. end)
  1145.  
  1146. function tab_data:Show()
  1147. show()
  1148. end
  1149.  
  1150. do -- Tab Elements
  1151.  
  1152. function tab_data:AddLabel(label_text) -- [Label]
  1153. label_text = tostring(label_text or "New Label")
  1154.  
  1155. local label = Prefabs:FindFirstChild("Label"):Clone()
  1156.  
  1157. label.Parent = new_tab
  1158. label.Text = label_text
  1159. label.Size = UDim2.new(0, gNameLen(label), 0, 20)
  1160. label.ZIndex = label.ZIndex + (windows * 10)
  1161.  
  1162. return label
  1163. end
  1164.  
  1165. function tab_data:AddButton(button_text, callback) -- [Button]
  1166. button_text = tostring(button_text or "New Button")
  1167. callback = typeof(callback) == "function" and callback or function()end
  1168.  
  1169. local button = Prefabs:FindFirstChild("Button"):Clone()
  1170.  
  1171. button.Parent = new_tab
  1172. button.Text = button_text
  1173. button.Size = UDim2.new(0, gNameLen(button), 0, 20)
  1174. button.ZIndex = button.ZIndex + (windows * 10)
  1175. button:GetChildren()[1].ZIndex = button:GetChildren()[1].ZIndex + (windows * 10)
  1176.  
  1177. spawn(function()
  1178. while true do
  1179. if button and button:GetChildren()[1] then
  1180. button:GetChildren()[1].ImageColor3 = options.main_color
  1181. end
  1182. RS.Heartbeat:Wait()
  1183. end
  1184. end)
  1185.  
  1186. button.MouseButton1Click:Connect(function()
  1187. ripple(button, mouse.X, mouse.Y)
  1188. pcall(callback)
  1189. end)
  1190.  
  1191. return button
  1192. end
  1193.  
  1194. function tab_data:AddSwitch(switch_text, callback) -- [Switch]
  1195. local switch_data = {}
  1196.  
  1197. switch_text = tostring(switch_text or "New Switch")
  1198. callback = typeof(callback) == "function" and callback or function()end
  1199.  
  1200. local switch = Prefabs:FindFirstChild("Switch"):Clone()
  1201.  
  1202. switch.Parent = new_tab
  1203. switch:FindFirstChild("Title").Text = switch_text
  1204.  
  1205. switch:FindFirstChild("Title").ZIndex = switch:FindFirstChild("Title").ZIndex + (windows * 10)
  1206. switch.ZIndex = switch.ZIndex + (windows * 10)
  1207. switch:GetChildren()[1].ZIndex = switch:GetChildren()[1].ZIndex + (windows * 10)
  1208.  
  1209. spawn(function()
  1210. while true do
  1211. if switch and switch:GetChildren()[1] then
  1212. switch:GetChildren()[1].ImageColor3 = options.main_color
  1213. end
  1214. RS.Heartbeat:Wait()
  1215. end
  1216. end)
  1217.  
  1218. local toggled = false
  1219. switch.MouseButton1Click:Connect(function()
  1220. toggled = not toggled
  1221. switch.Text = toggled and utf8.char(10003) or ""
  1222. pcall(callback, toggled)
  1223. end)
  1224.  
  1225. function switch_data:Set(bool)
  1226. toggled = (typeof(bool) == "boolean") and bool or false
  1227. switch.Text = toggled and utf8.char(10003) or ""
  1228. pcall(callback,toggled)
  1229. end
  1230.  
  1231. return switch_data, switch
  1232. end
  1233.  
  1234. function tab_data:AddTextBox(textbox_text, callback, textbox_options)
  1235. textbox_text = tostring(textbox_text or "New TextBox")
  1236. callback = typeof(callback) == "function" and callback or function()end
  1237. textbox_options = typeof(textbox_options) == "table" and textbox_options or {["clear"] = true}
  1238. textbox_options = {
  1239. ["clear"] = ((textbox_options.clear) == true)
  1240. }
  1241.  
  1242. local textbox = Prefabs:FindFirstChild("TextBox"):Clone()
  1243.  
  1244. textbox.Parent = new_tab
  1245. textbox.PlaceholderText = textbox_text
  1246. textbox.ZIndex = textbox.ZIndex + (windows * 10)
  1247. textbox:GetChildren()[1].ZIndex = textbox:GetChildren()[1].ZIndex + (windows * 10)
  1248.  
  1249. textbox.FocusLost:Connect(function(ep)
  1250. if ep then
  1251. if #textbox.Text > 0 then
  1252. pcall(callback, textbox.Text)
  1253. if textbox_options.clear then
  1254. textbox.Text = ""
  1255. end
  1256. end
  1257. end
  1258. end)
  1259.  
  1260. return textbox
  1261. end
  1262.  
  1263. function tab_data:AddSlider(slider_text, callback, slider_options)
  1264. local slider_data = {}
  1265.  
  1266. slider_text = tostring(slider_text or "New Slider")
  1267. callback = typeof(callback) == "function" and callback or function()end
  1268. slider_options = typeof(slider_options) == "table" and slider_options or {}
  1269. slider_options = {
  1270. ["min"] = slider_options.min or 0,
  1271. ["max"] = slider_options.max or 100,
  1272. ["readonly"] = slider_options.readonly or false,
  1273. }
  1274.  
  1275. local slider = Prefabs:FindFirstChild("Slider"):Clone()
  1276.  
  1277. slider.Parent = new_tab
  1278. slider.ZIndex = slider.ZIndex + (windows * 10)
  1279.  
  1280. local title = slider:FindFirstChild("Title")
  1281. local indicator = slider:FindFirstChild("Indicator")
  1282. local value = slider:FindFirstChild("Value")
  1283. title.ZIndex = title.ZIndex + (windows * 10)
  1284. indicator.ZIndex = indicator.ZIndex + (windows * 10)
  1285. value.ZIndex = value.ZIndex + (windows * 10)
  1286.  
  1287. title.Text = slider_text
  1288.  
  1289. do -- Slider Math
  1290. local Entered = false
  1291. slider.MouseEnter:Connect(function()
  1292. Entered = true
  1293. Window.Draggable = false
  1294. end)
  1295. slider.MouseLeave:Connect(function()
  1296. Entered = false
  1297. Window.Draggable = true
  1298. end)
  1299.  
  1300. local Held = false
  1301. UIS.InputBegan:Connect(function(inputObject)
  1302. if inputObject.UserInputType == Enum.UserInputType.MouseButton1 then
  1303. Held = true
  1304.  
  1305. spawn(function() -- Loop check
  1306. if Entered and not slider_options.readonly then
  1307. while Held and (not dropdown_open) do
  1308. local mouse_location = gMouse()
  1309. local x = (slider.AbsoluteSize.X - (slider.AbsoluteSize.X - ((mouse_location.X - slider.AbsolutePosition.X)) + 1)) / slider.AbsoluteSize.X
  1310.  
  1311. local min = 0
  1312. local max = 1
  1313.  
  1314. local size = min
  1315. if x >= min and x <= max then
  1316. size = x
  1317. elseif x < min then
  1318. size = min
  1319. elseif x > max then
  1320. size = max
  1321. end
  1322.  
  1323. Resize(indicator, {Size = UDim2.new(size or min, 0, 0, 20)}, options.tween_time)
  1324. local p = math.floor((size or min) * 100)
  1325.  
  1326. local maxv = slider_options.max
  1327. local minv = slider_options.min
  1328. local diff = maxv - minv
  1329.  
  1330. local sel_value = math.floor(((diff / 100) * p) + minv)
  1331.  
  1332. value.Text = tostring(sel_value)
  1333. pcall(callback, sel_value)
  1334.  
  1335. RS.Heartbeat:Wait()
  1336. end
  1337. end
  1338. end)
  1339. end
  1340. end)
  1341. UIS.InputEnded:Connect(function(inputObject)
  1342. if inputObject.UserInputType == Enum.UserInputType.MouseButton1 then
  1343. Held = false
  1344. end
  1345. end)
  1346.  
  1347. function slider_data:Set(new_value)
  1348. new_value = tonumber(new_value) or 0
  1349. new_value = (((new_value >= 0 and new_value <= 100) and new_value) / 100)
  1350.  
  1351. Resize(indicator, {Size = UDim2.new(new_value or 0, 0, 0, 20)}, options.tween_time)
  1352. local p = math.floor((new_value or 0) * 100)
  1353.  
  1354. local maxv = slider_options.max
  1355. local minv = slider_options.min
  1356. local diff = maxv - minv
  1357.  
  1358. local sel_value = math.floor(((diff / 100) * p) + minv)
  1359.  
  1360. value.Text = tostring(sel_value)
  1361. pcall(callback, sel_value)
  1362. end
  1363.  
  1364. slider_data:Set(slider_options["min"])
  1365. end
  1366.  
  1367. return slider_data, slider
  1368. end
  1369.  
  1370. function tab_data:AddKeybind(keybind_name, callback, keybind_options)
  1371. local keybind_data = {}
  1372.  
  1373. keybind_name = tostring(keybind_name or "New Keybind")
  1374. callback = typeof(callback) == "function" and callback or function()end
  1375. keybind_options = typeof(keybind_options) == "table" and keybind_options or {}
  1376. keybind_options = {
  1377. ["standard"] = keybind_options.standard or Enum.KeyCode.RightShift,
  1378. }
  1379.  
  1380. local keybind = Prefabs:FindFirstChild("Keybind"):Clone()
  1381. local input = keybind:FindFirstChild("Input")
  1382. local title = keybind:FindFirstChild("Title")
  1383. keybind.ZIndex = keybind.ZIndex + (windows * 10)
  1384. input.ZIndex = input.ZIndex + (windows * 10)
  1385. input:GetChildren()[1].ZIndex = input:GetChildren()[1].ZIndex + (windows * 10)
  1386. title.ZIndex = title.ZIndex + (windows * 10)
  1387.  
  1388. keybind.Parent = new_tab
  1389. title.Text = " " .. keybind_name
  1390. keybind.Size = UDim2.new(0, gNameLen(title) + 80, 0, 20)
  1391.  
  1392. local shortkeys = { -- thanks to stroketon for helping me out with this
  1393. RightControl = 'RightCtrl',
  1394. LeftControl = 'LeftCtrl',
  1395. LeftShift = 'LShift',
  1396. RightShift = 'RShift',
  1397. MouseButton1 = "Mouse1",
  1398. MouseButton2 = "Mouse2"
  1399. }
  1400.  
  1401. local keybind = keybind_options.standard
  1402.  
  1403. function keybind_data:SetKeybind(Keybind)
  1404. local key = shortkeys[Keybind.Name] or Keybind.Name
  1405. input.Text = key
  1406. keybind = Keybind
  1407. end
  1408.  
  1409. UIS.InputBegan:Connect(function(a, b)
  1410. if checks.binding then
  1411. spawn(function()
  1412. wait()
  1413. checks.binding = false
  1414. end)
  1415. return
  1416. end
  1417. if a.KeyCode == keybind and not b then
  1418. pcall(callback, keybind)
  1419. end
  1420. end)
  1421.  
  1422. keybind_data:SetKeybind(keybind_options.standard)
  1423.  
  1424. input.MouseButton1Click:Connect(function()
  1425. if checks.binding then return end
  1426. input.Text = "..."
  1427. checks.binding = true
  1428. local a, b = UIS.InputBegan:Wait()
  1429. keybind_data:SetKeybind(a.KeyCode)
  1430. end)
  1431.  
  1432. return keybind_data, keybind
  1433. end
  1434.  
  1435. function tab_data:AddDropdown(dropdown_name, callback)
  1436. local dropdown_data = {}
  1437. dropdown_name = tostring(dropdown_name or "New Dropdown")
  1438. callback = typeof(callback) == "function" and callback or function()end
  1439.  
  1440. local dropdown = Prefabs:FindFirstChild("Dropdown"):Clone()
  1441. local box = dropdown:FindFirstChild("Box")
  1442. local objects = box:FindFirstChild("Objects")
  1443. local indicator = dropdown:FindFirstChild("Indicator")
  1444. dropdown.ZIndex = dropdown.ZIndex + (windows * 10)
  1445. box.ZIndex = box.ZIndex + (windows * 10)
  1446. objects.ZIndex = objects.ZIndex + (windows * 10)
  1447. indicator.ZIndex = indicator.ZIndex + (windows * 10)
  1448. dropdown:GetChildren()[3].ZIndex = dropdown:GetChildren()[3].ZIndex + (windows * 10)
  1449.  
  1450. dropdown.Parent = new_tab
  1451. dropdown.Text = " " .. dropdown_name
  1452. box.Size = UDim2.new(1, 0, 0, 0)
  1453.  
  1454. local open = false
  1455. dropdown.MouseButton1Click:Connect(function()
  1456. open = not open
  1457.  
  1458. local len = (#objects:GetChildren() - 1) * 20
  1459. if #objects:GetChildren() - 1 >= 10 then
  1460. len = 10 * 20
  1461. objects.CanvasSize = UDim2.new(0, 0, (#objects:GetChildren() - 1) * 0.1, 0)
  1462. end
  1463.  
  1464. if open then -- Open
  1465. if dropdown_open then return end
  1466. dropdown_open = true
  1467. Resize(box, {Size = UDim2.new(1, 0, 0, len)}, options.tween_time)
  1468. Resize(indicator, {Rotation = 90}, options.tween_time)
  1469. else -- Close
  1470. dropdown_open = false
  1471. Resize(box, {Size = UDim2.new(1, 0, 0, 0)}, options.tween_time)
  1472. Resize(indicator, {Rotation = -90}, options.tween_time)
  1473. end
  1474.  
  1475. end)
  1476.  
  1477. function dropdown_data:Add(n)
  1478. local object_data = {}
  1479. n = tostring(n or "New Object")
  1480.  
  1481. local object = Prefabs:FindFirstChild("DropdownButton"):Clone()
  1482.  
  1483. object.Parent = objects
  1484. object.Text = n
  1485. object.ZIndex = object.ZIndex + (windows * 10)
  1486.  
  1487. object.MouseEnter:Connect(function()
  1488. object.BackgroundColor3 = options.main_color
  1489. end)
  1490. object.MouseLeave:Connect(function()
  1491. object.BackgroundColor3 = Color3.fromRGB(33, 34, 36)
  1492. end)
  1493.  
  1494. if open then
  1495. local len = (#objects:GetChildren() - 1) * 20
  1496. if #objects:GetChildren() - 1 >= 10 then
  1497. len = 10 * 20
  1498. objects.CanvasSize = UDim2.new(0, 0, (#objects:GetChildren() - 1) * 0.1, 0)
  1499. end
  1500. Resize(box, {Size = UDim2.new(1, 0, 0, len)}, options.tween_time)
  1501. end
  1502.  
  1503. object.MouseButton1Click:Connect(function()
  1504. if dropdown_open then
  1505. dropdown.Text = " [ " .. n .. " ]"
  1506. dropdown_open = false
  1507. open = false
  1508. Resize(box, {Size = UDim2.new(1, 0, 0, 0)}, options.tween_time)
  1509. Resize(indicator, {Rotation = -90}, options.tween_time)
  1510. pcall(callback, n)
  1511. end
  1512. end)
  1513.  
  1514. function object_data:Remove()
  1515. object:Destroy()
  1516. end
  1517.  
  1518. return object, object_data
  1519. end
  1520.  
  1521. return dropdown_data, dropdown
  1522. end
  1523.  
  1524. function tab_data:AddColorPicker(callback)
  1525. local color_picker_data = {}
  1526. callback = typeof(callback) == "function" and callback or function()end
  1527.  
  1528. local color_picker = Prefabs:FindFirstChild("ColorPicker"):Clone()
  1529.  
  1530. color_picker.Parent = new_tab
  1531. color_picker.ZIndex = color_picker.ZIndex + (windows * 10)
  1532.  
  1533. local palette = color_picker:FindFirstChild("Palette")
  1534. local sample = color_picker:FindFirstChild("Sample")
  1535. local saturation = color_picker:FindFirstChild("Saturation")
  1536. palette.ZIndex = palette.ZIndex + (windows * 10)
  1537. sample.ZIndex = sample.ZIndex + (windows * 10)
  1538. saturation.ZIndex = saturation.ZIndex + (windows * 10)
  1539.  
  1540. do -- Color Picker Math
  1541. local h = 0
  1542. local s = 1
  1543. local v = 1
  1544.  
  1545. local function update()
  1546. local color = Color3.fromHSV(h, s, v)
  1547. sample.ImageColor3 = color
  1548. saturation.ImageColor3 = Color3.fromHSV(h, 1, 1)
  1549. pcall(callback, color)
  1550. end
  1551.  
  1552. do
  1553. local color = Color3.fromHSV(h, s, v)
  1554. sample.ImageColor3 = color
  1555. saturation.ImageColor3 = Color3.fromHSV(h, 1, 1)
  1556. end
  1557.  
  1558. local Entered1, Entered2 = false, false
  1559. palette.MouseEnter:Connect(function()
  1560. Window.Draggable = false
  1561. Entered1 = true
  1562. end)
  1563. palette.MouseLeave:Connect(function()
  1564. Window.Draggable = true
  1565. Entered1 = false
  1566. end)
  1567. saturation.MouseEnter:Connect(function()
  1568. Window.Draggable = false
  1569. Entered2 = true
  1570. end)
  1571. saturation.MouseLeave:Connect(function()
  1572. Window.Draggable = true
  1573. Entered2 = false
  1574. end)
  1575.  
  1576. local palette_indicator = palette:FindFirstChild("Indicator")
  1577. local saturation_indicator = saturation:FindFirstChild("Indicator")
  1578. palette_indicator.ZIndex = palette_indicator.ZIndex + (windows * 10)
  1579. saturation_indicator.ZIndex = saturation_indicator.ZIndex + (windows * 10)
  1580.  
  1581. local Held = false
  1582. UIS.InputBegan:Connect(function(inputObject)
  1583. if inputObject.UserInputType == Enum.UserInputType.MouseButton1 then
  1584. Held = true
  1585.  
  1586. spawn(function() -- Loop check
  1587. while Held and Entered1 and (not dropdown_open) do -- Palette
  1588. local mouse_location = gMouse()
  1589.  
  1590. local x = ((palette.AbsoluteSize.X - (mouse_location.X - palette.AbsolutePosition.X)) + 1)
  1591. local y = ((palette.AbsoluteSize.Y - (mouse_location.Y - palette.AbsolutePosition.Y)) + 1.5)
  1592.  
  1593. local color = Color3.fromHSV(x / 100, y / 100, 0)
  1594. h = x / 100
  1595. s = y / 100
  1596.  
  1597. Resize(palette_indicator, {Position = UDim2.new(0, math.abs(x - 100) - (palette_indicator.AbsoluteSize.X / 2), 0, math.abs(y - 100) - (palette_indicator.AbsoluteSize.Y / 2))}, options.tween_time)
  1598.  
  1599. update()
  1600. RS.Heartbeat:Wait()
  1601. end
  1602.  
  1603. while Held and Entered2 and (not dropdown_open) do -- Saturation
  1604. local mouse_location = gMouse()
  1605. local y = ((palette.AbsoluteSize.Y - (mouse_location.Y - palette.AbsolutePosition.Y)) + 1.5)
  1606. v = y / 100
  1607.  
  1608. Resize(saturation_indicator, {Position = UDim2.new(0, 0, 0, math.abs(y - 100))}, options.tween_time)
  1609.  
  1610. update()
  1611. RS.Heartbeat:Wait()
  1612. end
  1613. end)
  1614. end
  1615. end)
  1616. UIS.InputEnded:Connect(function(inputObject)
  1617. if inputObject.UserInputType == Enum.UserInputType.MouseButton1 then
  1618. Held = false
  1619. end
  1620. end)
  1621.  
  1622. function color_picker_data:Set(color)
  1623. color = typeof(color) == "Color3" and color or Color3.new(1, 1, 1)
  1624. local h2, s2, v2 = rgbtohsv(color.r * 255, color.g * 255, color.b * 255)
  1625. sample.ImageColor3 = color
  1626. saturation.ImageColor3 = Color3.fromHSV(h2, 1, 1)
  1627. pcall(callback, color)
  1628. end
  1629. end
  1630.  
  1631. return color_picker_data, color_picker
  1632. end
  1633.  
  1634. function tab_data:AddConsole(console_options)
  1635. local console_data = {}
  1636.  
  1637. console_options = typeof(console_options) == "table" and console_options or {["readonly"] = true,["full"] = false,}
  1638. console_options = {
  1639. ["y"] = tonumber(console_options.y) or 200,
  1640. ["source"] = console_options.source or "Logs",
  1641. ["readonly"] = ((console_options.readonly) == true),
  1642. ["full"] = ((console_options.full) == true),
  1643. }
  1644.  
  1645. local console = Prefabs:FindFirstChild("Console"):Clone()
  1646.  
  1647. console.Parent = new_tab
  1648. console.ZIndex = console.ZIndex + (windows * 10)
  1649. console.Size = UDim2.new(1, 0, console_options.full and 1 or 0, console_options.y)
  1650.  
  1651. local sf = console:GetChildren()[1]
  1652. local Source = sf:FindFirstChild("Source")
  1653. local Lines = sf:FindFirstChild("Lines")
  1654. Source.ZIndex = Source.ZIndex + (windows * 10)
  1655. Lines.ZIndex = Lines.ZIndex + (windows * 10)
  1656.  
  1657. Source.TextEditable = not console_options.readonly
  1658.  
  1659. do -- Syntax Zindex
  1660. for i,v in next, Source:GetChildren() do
  1661. v.ZIndex = v.ZIndex + (windows * 10) + 1
  1662. end
  1663. end
  1664. Source.Comments.ZIndex = Source.Comments.ZIndex + 1
  1665.  
  1666. do -- Highlighting (thanks to whoever made this)
  1667. local lua_keywords = {"and", "break", "do", "else", "elseif", "end", "false", "for", "function", "goto", "if", "in", "local", "nil", "not", "or", "repeat", "return", "then", "true", "until", "while"}
  1668. local global_env = {"getrawmetatable", "newcclosure", "islclosure", "setclipboard", "game", "workspace", "script", "math", "string", "table", "print", "wait", "BrickColor", "Color3", "next", "pairs", "ipairs", "select", "unpack", "Instance", "Vector2", "Vector3", "CFrame", "Ray", "UDim2", "Enum", "assert", "error", "warn", "tick", "loadstring", "_G", "shared", "getfenv", "setfenv", "newproxy", "setmetatable", "getmetatable", "os", "debug", "pcall", "ypcall", "xpcall", "rawequal", "rawset", "rawget", "tonumber", "tostring", "type", "typeof", "_VERSION", "coroutine", "delay", "require", "spawn", "LoadLibrary", "settings", "stats", "time", "UserSettings", "version", "Axes", "ColorSequence", "Faces", "ColorSequenceKeypoint", "NumberRange", "NumberSequence", "NumberSequenceKeypoint", "gcinfo", "elapsedTime", "collectgarbage", "PhysicalProperties", "Rect", "Region3", "Region3int16", "UDim", "Vector2int16", "Vector3int16", "load", "fire", "Fire"}
  1669.  
  1670. local Highlight = function(string, keywords)
  1671. local K = {}
  1672. local S = string
  1673. local Token =
  1674. {
  1675. ["="] = true,
  1676. ["."] = true,
  1677. [","] = true,
  1678. ["("] = true,
  1679. [")"] = true,
  1680. ["["] = true,
  1681. ["]"] = true,
  1682. ["{"] = true,
  1683. ["}"] = true,
  1684. [":"] = true,
  1685. ["*"] = true,
  1686. ["/"] = true,
  1687. ["+"] = true,
  1688. ["-"] = true,
  1689. ["%"] = true,
  1690. [";"] = true,
  1691. ["~"] = true
  1692. }
  1693. for i, v in pairs(keywords) do
  1694. K[v] = true
  1695. end
  1696. S = S:gsub(".", function(c)
  1697. if Token[c] ~= nil then
  1698. return "\32"
  1699. else
  1700. return c
  1701. end
  1702. end)
  1703. S = S:gsub("%S+", function(c)
  1704. if K[c] ~= nil then
  1705. return c
  1706. else
  1707. return (" "):rep(#c)
  1708. end
  1709. end)
  1710.  
  1711. return S
  1712. end
  1713.  
  1714. local hTokens = function(string)
  1715. local Token =
  1716. {
  1717. ["="] = true,
  1718. ["."] = true,
  1719. [","] = true,
  1720. ["("] = true,
  1721. [")"] = true,
  1722. ["["] = true,
  1723. ["]"] = true,
  1724. ["{"] = true,
  1725. ["}"] = true,
  1726. [":"] = true,
  1727. ["*"] = true,
  1728. ["/"] = true,
  1729. ["+"] = true,
  1730. ["-"] = true,
  1731. ["%"] = true,
  1732. [";"] = true,
  1733. ["~"] = true
  1734. }
  1735. local A = ""
  1736. string:gsub(".", function(c)
  1737. if Token[c] ~= nil then
  1738. A = A .. c
  1739. elseif c == "\n" then
  1740. A = A .. "\n"
  1741. elseif c == "\t" then
  1742. A = A .. "\t"
  1743. else
  1744. A = A .. "\32"
  1745. end
  1746. end)
  1747.  
  1748. return A
  1749. end
  1750.  
  1751. local strings = function(string)
  1752. local highlight = ""
  1753. local quote = false
  1754. string:gsub(".", function(c)
  1755. if quote == false and c == "\34" then
  1756. quote = true
  1757. elseif quote == true and c == "\34" then
  1758. quote = false
  1759. end
  1760. if quote == false and c == "\34" then
  1761. highlight = highlight .. "\34"
  1762. elseif c == "\n" then
  1763. highlight = highlight .. "\n"
  1764. elseif c == "\t" then
  1765. highlight = highlight .. "\t"
  1766. elseif quote == true then
  1767. highlight = highlight .. c
  1768. elseif quote == false then
  1769. highlight = highlight .. "\32"
  1770. end
  1771. end)
  1772.  
  1773. return highlight
  1774. end
  1775.  
  1776. local info = function(string)
  1777. local highlight = ""
  1778. local quote = false
  1779. string:gsub(".", function(c)
  1780. if quote == false and c == "[" then
  1781. quote = true
  1782. elseif quote == true and c == "]" then
  1783. quote = false
  1784. end
  1785. if quote == false and c == "\]" then
  1786. highlight = highlight .. "\]"
  1787. elseif c == "\n" then
  1788. highlight = highlight .. "\n"
  1789. elseif c == "\t" then
  1790. highlight = highlight .. "\t"
  1791. elseif quote == true then
  1792. highlight = highlight .. c
  1793. elseif quote == false then
  1794. highlight = highlight .. "\32"
  1795. end
  1796. end)
  1797.  
  1798. return highlight
  1799. end
  1800.  
  1801. local comments = function(string)
  1802. local ret = ""
  1803. string:gsub("[^\r\n]+", function(c)
  1804. local comm = false
  1805. local i = 0
  1806. c:gsub(".", function(n)
  1807. i = i + 1
  1808. if c:sub(i, i + 1) == "--" then
  1809. comm = true
  1810. end
  1811. if comm == true then
  1812. ret = ret .. n
  1813. else
  1814. ret = ret .. "\32"
  1815. end
  1816. end)
  1817. ret = ret
  1818. end)
  1819.  
  1820. return ret
  1821. end
  1822.  
  1823. local numbers = function(string)
  1824. local A = ""
  1825. string:gsub(".", function(c)
  1826. if tonumber(c) ~= nil then
  1827. A = A .. c
  1828. elseif c == "\n" then
  1829. A = A .. "\n"
  1830. elseif c == "\t" then
  1831. A = A .. "\t"
  1832. else
  1833. A = A .. "\32"
  1834. end
  1835. end)
  1836.  
  1837. return A
  1838. end
  1839.  
  1840. local highlight_lua = function(type)
  1841. if type == "Text" then
  1842. Source.Text = Source.Text:gsub("\13", "")
  1843. Source.Text = Source.Text:gsub("\t", " ")
  1844. local s = Source.Text
  1845.  
  1846. Source.Keywords.Text = Highlight(s, lua_keywords)
  1847. Source.Globals.Text = Highlight(s, global_env)
  1848. Source.RemoteHighlight.Text = Highlight(s, {"FireServer", "fireServer", "InvokeServer", "invokeServer"})
  1849. Source.Tokens.Text = hTokens(s)
  1850. Source.Numbers.Text = numbers(s)
  1851. Source.Strings.Text = strings(s)
  1852. Source.Comments.Text = comments(s)
  1853.  
  1854. local lin = 1
  1855. s:gsub("\n", function()
  1856. lin = lin + 1
  1857. end)
  1858.  
  1859. Lines.Text = ""
  1860. for i = 1, lin do
  1861. Lines.Text = Lines.Text .. i .. "\n"
  1862. end
  1863.  
  1864. sf.CanvasSize = UDim2.new(0, 0, lin * 0.153846154, 0)
  1865. end
  1866.  
  1867. local highlight_logs = function(type)
  1868. end
  1869. if type == "Text" then
  1870. Source.Text = Source.Text:gsub("\13", "")
  1871. Source.Text = Source.Text:gsub("\t", " ")
  1872. local s = Source.Text
  1873.  
  1874. Source.Info.Text = info(s)
  1875.  
  1876. local lin = 1
  1877. s:gsub("\n", function()
  1878. lin = lin + 1
  1879. end)
  1880.  
  1881. sf.CanvasSize = UDim2.new(0, 0, lin * 0.153846154, 0)
  1882. end
  1883. end
  1884.  
  1885. if console_options.source == "Lua" then
  1886. highlight_lua("Text")
  1887. Source.Changed:Connect(highlight_lua)
  1888. elseif console_options.source == "Logs" then
  1889. Lines.Visible = false
  1890.  
  1891. highlight_logs("Text")
  1892. Source.Changed:Connect(highlight_logs)
  1893. end
  1894.  
  1895. function console_data:Set(code)
  1896. Source.Text = tostring(code)
  1897. end
  1898.  
  1899. function console_data:Get()
  1900. return Source.Text
  1901. end
  1902.  
  1903. function console_data:Log(msg)
  1904. Source.Text = Source.Text .. "[*] " .. tostring(msg) .. "\n"
  1905. end
  1906.  
  1907. end
  1908.  
  1909. return console_data, console
  1910. end
  1911.  
  1912. function tab_data:AddHorizontalAlignment()
  1913. local ha_data = {}
  1914.  
  1915. local ha = Prefabs:FindFirstChild("HorizontalAlignment"):Clone()
  1916. ha.Parent = new_tab
  1917.  
  1918. function ha_data:AddButton(...)
  1919. local data, object
  1920. local ret = {tab_data:AddButton(...)}
  1921. if typeof(ret[1]) == "table" then
  1922. data = ret[1]
  1923. object = ret[2]
  1924. object.Parent = ha
  1925. return data, object
  1926. else
  1927. object = ret[1]
  1928. object.Parent = ha
  1929. return object
  1930. end
  1931. end
  1932.  
  1933. return ha_data, ha
  1934. end
  1935.  
  1936. function tab_data:AddFolder(folder_name) -- [Folder]
  1937. local folder_data = {}
  1938.  
  1939. folder_name = tostring(folder_name or "New Folder")
  1940.  
  1941. local folder = Prefabs:FindFirstChild("Folder"):Clone()
  1942. local button = folder:FindFirstChild("Button")
  1943. local objects = folder:FindFirstChild("Objects")
  1944. local toggle = button:FindFirstChild("Toggle")
  1945. folder.ZIndex = folder.ZIndex + (windows * 10)
  1946. button.ZIndex = button.ZIndex + (windows * 10)
  1947. objects.ZIndex = objects.ZIndex + (windows * 10)
  1948. toggle.ZIndex = toggle.ZIndex + (windows * 10)
  1949. button:GetChildren()[1].ZIndex = button:GetChildren()[1].ZIndex + (windows * 10)
  1950.  
  1951. folder.Parent = new_tab
  1952. button.Text = " " .. folder_name
  1953.  
  1954. spawn(function()
  1955. while true do
  1956. if button and button:GetChildren()[1] then
  1957. button:GetChildren()[1].ImageColor3 = options.main_color
  1958. end
  1959. RS.Heartbeat:Wait()
  1960. end
  1961. end)
  1962.  
  1963. local function gFolderLen()
  1964. local n = 25
  1965. for i,v in next, objects:GetChildren() do
  1966. if not (v:IsA("UIListLayout")) then
  1967. n = n + v.AbsoluteSize.Y + 5
  1968. end
  1969. end
  1970. return n
  1971. end
  1972.  
  1973. local open = false
  1974. button.MouseButton1Click:Connect(function()
  1975. if open then -- Close
  1976. Resize(toggle, {Rotation = 0}, options.tween_time)
  1977. objects.Visible = false
  1978. else -- Open
  1979. Resize(toggle, {Rotation = 90}, options.tween_time)
  1980. objects.Visible = true
  1981. end
  1982.  
  1983. open = not open
  1984. end)
  1985.  
  1986. spawn(function()
  1987. while true do
  1988. Resize(folder, {Size = UDim2.new(1, 0, 0, (open and gFolderLen() or 20))}, options.tween_time)
  1989. wait()
  1990. end
  1991. end)
  1992.  
  1993. for i,v in next, tab_data do
  1994. folder_data[i] = function(...)
  1995. local data, object
  1996. local ret = {v(...)}
  1997. if typeof(ret[1]) == "table" then
  1998. data = ret[1]
  1999. object = ret[2]
  2000. object.Parent = objects
  2001. return data, object
  2002. else
  2003. object = ret[1]
  2004. object.Parent = objects
  2005. return object
  2006. end
  2007. end
  2008. end
  2009.  
  2010. return folder_data, folder
  2011. end
  2012.  
  2013. end
  2014.  
  2015. return tab_data, new_tab
  2016. end
  2017. end
  2018. end
  2019.  
  2020. do
  2021. for i, v in next, Window:GetDescendants() do
  2022. if hasprop(v, "ZIndex") then
  2023. v.ZIndex = v.ZIndex + (windows * 10)
  2024. end
  2025. end
  2026. end
  2027.  
  2028. return window_data, Window
  2029. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement