matekaOSF2

Untitled

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