BjeffeHund

lmao

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