Advertisement
Guest User

ssss

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