FunnyyJunior

Mining Sim 2

Jun 7th, 2022
314
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 67.62 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(50, 20, 10),
  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. local library = {}
  927.  
  928. local function format_windows()
  929. local ull = Prefabs:FindFirstChild("UIListLayout"):Clone()
  930. ull.Parent = Windows
  931. local data = {}
  932.  
  933. for i,v in next, Windows:GetChildren() do
  934. if not (v:IsA("UIListLayout")) then
  935. data[v] = v.AbsolutePosition
  936. end
  937. end
  938.  
  939. ull:Destroy()
  940.  
  941. for i,v in next, data do
  942. i.Position = UDim2.new(0, v.X, 0, v.Y)
  943. end
  944. end
  945.  
  946. function library:FormatWindows()
  947. format_windows()
  948. end
  949.  
  950. function library:AddWindow(title, options)
  951. windows = windows + 1
  952. local dropdown_open = false
  953. title = tostring(title or "New Window")
  954. options = (typeof(options) == "table") and options or ui_options
  955. options.tween_time = 0.1
  956.  
  957. local Window = Prefabs:FindFirstChild("Window"):Clone()
  958. Window.Parent = Windows
  959. Window:FindFirstChild("Title").Text = title
  960. Window.Size = UDim2.new(0, options.min_size.X, 0, options.min_size.Y)
  961. Window.ZIndex = Window.ZIndex + (windows * 10)
  962.  
  963. do -- Altering Window Color
  964. local Title = Window:FindFirstChild("Title")
  965. local Bar = Window:FindFirstChild("Bar")
  966. local Base = Bar:FindFirstChild("Base")
  967. local Top = Bar:FindFirstChild("Top")
  968. local SplitFrame = Window:FindFirstChild("TabSelection"):FindFirstChild("Frame")
  969. local Toggle = Bar:FindFirstChild("Toggle")
  970.  
  971. spawn(function()
  972. while true do
  973. Bar.BackgroundColor3 = options.main_color
  974. Base.BackgroundColor3 = options.main_color
  975. Base.ImageColor3 = options.main_color
  976. Top.ImageColor3 = options.main_color
  977. SplitFrame.BackgroundColor3 = options.main_color
  978.  
  979. RS.Heartbeat:Wait()
  980. end
  981. end)
  982.  
  983. end
  984.  
  985. local Resizer = Window:WaitForChild("Resizer")
  986.  
  987. local window_data = {}
  988. Window.Draggable = true
  989.  
  990. do -- Resize Window
  991. local oldIcon = mouse.Icon
  992. local Entered = false
  993. Resizer.MouseEnter:Connect(function()
  994. Window.Draggable = false
  995. if options.can_resize then
  996. oldIcon = mouse.Icon
  997. -- mouse.Icon = "http://www.roblox.com/asset?id=4745131330"
  998. end
  999. Entered = true
  1000. end)
  1001.  
  1002. Resizer.MouseLeave:Connect(function()
  1003. Entered = false
  1004. if options.can_resize then
  1005. mouse.Icon = oldIcon
  1006. end
  1007. Window.Draggable = true
  1008. end)
  1009.  
  1010. local Held = false
  1011. UIS.InputBegan:Connect(function(inputObject)
  1012. if inputObject.UserInputType == Enum.UserInputType.MouseButton1 then
  1013. Held = true
  1014.  
  1015. spawn(function() -- Loop check
  1016. if Entered and Resizer.Active and options.can_resize then
  1017. while Held and Resizer.Active do
  1018.  
  1019. local mouse_location = gMouse()
  1020. local x = mouse_location.X - Window.AbsolutePosition.X
  1021. local y = mouse_location.Y - Window.AbsolutePosition.Y
  1022.  
  1023. --
  1024. if x >= options.min_size.X and y >= options.min_size.Y then
  1025. Resize(Window, {Size = UDim2.new(0, x, 0, y)}, options.tween_time)
  1026. elseif x >= options.min_size.X then
  1027. Resize(Window, {Size = UDim2.new(0, x, 0, options.min_size.Y)}, options.tween_time)
  1028. elseif y >= options.min_size.Y then
  1029. Resize(Window, {Size = UDim2.new(0, options.min_size.X, 0, y)}, options.tween_time)
  1030. else
  1031. Resize(Window, {Size = UDim2.new(0, options.min_size.X, 0, options.min_size.Y)}, options.tween_time)
  1032. end
  1033.  
  1034. RS.Heartbeat:Wait()
  1035. end
  1036. end
  1037. end)
  1038. end
  1039. end)
  1040. UIS.InputEnded:Connect(function(inputObject)
  1041. if inputObject.UserInputType == Enum.UserInputType.MouseButton1 then
  1042. Held = false
  1043. end
  1044. end)
  1045. end
  1046.  
  1047. do -- [Open / Close] Window
  1048. local open_close = Window:FindFirstChild("Bar"):FindFirstChild("Toggle")
  1049. local open = true
  1050. local canopen = true
  1051.  
  1052. local oldwindowdata = {}
  1053. local oldy = Window.AbsoluteSize.Y
  1054. open_close.MouseButton1Click:Connect(function()
  1055. if canopen then
  1056. canopen = false
  1057.  
  1058. if open then
  1059. -- Close
  1060.  
  1061. oldwindowdata = {}
  1062. for i,v in next, Window:FindFirstChild("Tabs"):GetChildren() do
  1063. oldwindowdata[v] = v.Visible
  1064. v.Visible = false
  1065. end
  1066.  
  1067. Resizer.Active = false
  1068.  
  1069. oldy = Window.AbsoluteSize.Y
  1070. Resize(open_close, {Rotation = 0}, options.tween_time)
  1071. Resize(Window, {Size = UDim2.new(0, Window.AbsoluteSize.X, 0, 26)}, options.tween_time)
  1072. open_close.Parent:FindFirstChild("Base").Transparency = 1
  1073.  
  1074. else
  1075. -- Open
  1076.  
  1077. for i,v in next, oldwindowdata do
  1078. i.Visible = v
  1079. end
  1080.  
  1081. Resizer.Active = true
  1082.  
  1083. Resize(open_close, {Rotation = 90}, options.tween_time)
  1084. Resize(Window, {Size = UDim2.new(0, Window.AbsoluteSize.X, 0, oldy)}, options.tween_time)
  1085. open_close.Parent:FindFirstChild("Base").Transparency = 0
  1086.  
  1087. end
  1088.  
  1089. open = not open
  1090. wait(options.tween_time)
  1091. canopen = true
  1092.  
  1093. end
  1094. end)
  1095. end
  1096.  
  1097. do -- UI Elements
  1098. local tabs = Window:FindFirstChild("Tabs")
  1099. local tab_selection = Window:FindFirstChild("TabSelection")
  1100. local tab_buttons = tab_selection:FindFirstChild("TabButtons")
  1101.  
  1102. do -- Add Tab
  1103. function window_data:AddTab(tab_name)
  1104. local tab_data = {}
  1105. tab_name = tostring(tab_name or "New Tab")
  1106. tab_selection.Visible = true
  1107.  
  1108. local new_button = Prefabs:FindFirstChild("TabButton"):Clone()
  1109. new_button.Parent = tab_buttons
  1110. new_button.Text = tab_name
  1111. new_button.Size = UDim2.new(0, gNameLen(new_button), 0, 20)
  1112. new_button.ZIndex = new_button.ZIndex + (windows * 10)
  1113. new_button:GetChildren()[1].ZIndex = new_button:GetChildren()[1].ZIndex + (windows * 10)
  1114.  
  1115. local new_tab = Prefabs:FindFirstChild("Tab"):Clone()
  1116. new_tab.Parent = tabs
  1117. new_tab.ZIndex = new_tab.ZIndex + (windows * 10)
  1118.  
  1119. local function show()
  1120. if dropdown_open then return end
  1121. for i, v in next, tab_buttons:GetChildren() do
  1122. if not (v:IsA("UIListLayout")) then
  1123. v:GetChildren()[1].ImageColor3 = Color3.fromRGB(52, 53, 56)
  1124. Resize(v, {Size = UDim2.new(0, v.AbsoluteSize.X, 0, 20)}, options.tween_time)
  1125. end
  1126. end
  1127. for i, v in next, tabs:GetChildren() do
  1128. v.Visible = false
  1129. end
  1130.  
  1131. Resize(new_button, {Size = UDim2.new(0, new_button.AbsoluteSize.X, 0, 25)}, options.tween_time)
  1132. new_button:GetChildren()[1].ImageColor3 = Color3.fromRGB(73, 75, 79)
  1133. new_tab.Visible = true
  1134. end
  1135.  
  1136. new_button.MouseButton1Click:Connect(function()
  1137. show()
  1138. end)
  1139.  
  1140. function tab_data:Show()
  1141. show()
  1142. end
  1143.  
  1144. do -- Tab Elements
  1145.  
  1146. function tab_data:AddLabel(label_text) -- [Label]
  1147. label_text = tostring(label_text or "New Label")
  1148.  
  1149. local label = Prefabs:FindFirstChild("Label"):Clone()
  1150.  
  1151. label.Parent = new_tab
  1152. label.Text = label_text
  1153. label.Size = UDim2.new(0, gNameLen(label), 0, 20)
  1154. label.ZIndex = label.ZIndex + (windows * 10)
  1155.  
  1156. return label
  1157. end
  1158.  
  1159. function tab_data:AddButton(button_text, callback) -- [Button]
  1160. button_text = tostring(button_text or "New Button")
  1161. callback = typeof(callback) == "function" and callback or function()end
  1162.  
  1163. local button = Prefabs:FindFirstChild("Button"):Clone()
  1164.  
  1165. button.Parent = new_tab
  1166. button.Text = button_text
  1167. button.Size = UDim2.new(0, gNameLen(button), 0, 20)
  1168. button.ZIndex = button.ZIndex + (windows * 10)
  1169. button:GetChildren()[1].ZIndex = button:GetChildren()[1].ZIndex + (windows * 10)
  1170.  
  1171. spawn(function()
  1172. while true do
  1173. if button and button:GetChildren()[1] then
  1174. button:GetChildren()[1].ImageColor3 = options.main_color
  1175. end
  1176. RS.Heartbeat:Wait()
  1177. end
  1178. end)
  1179.  
  1180. button.MouseButton1Click:Connect(function()
  1181. ripple(button, mouse.X, mouse.Y)
  1182. pcall(callback)
  1183. end)
  1184.  
  1185. return button
  1186. end
  1187.  
  1188. function tab_data:AddSwitch(switch_text, callback) -- [Switch]
  1189. local switch_data = {}
  1190.  
  1191. switch_text = tostring(switch_text or "New Switch")
  1192. callback = typeof(callback) == "function" and callback or function()end
  1193.  
  1194. local switch = Prefabs:FindFirstChild("Switch"):Clone()
  1195.  
  1196. switch.Parent = new_tab
  1197. switch:FindFirstChild("Title").Text = switch_text
  1198.  
  1199. switch:FindFirstChild("Title").ZIndex = switch:FindFirstChild("Title").ZIndex + (windows * 10)
  1200. switch.ZIndex = switch.ZIndex + (windows * 10)
  1201. switch:GetChildren()[1].ZIndex = switch:GetChildren()[1].ZIndex + (windows * 10)
  1202.  
  1203. spawn(function()
  1204. while true do
  1205. if switch and switch:GetChildren()[1] then
  1206. switch:GetChildren()[1].ImageColor3 = options.main_color
  1207. end
  1208. RS.Heartbeat:Wait()
  1209. end
  1210. end)
  1211.  
  1212. local toggled = false
  1213. switch.MouseButton1Click:Connect(function()
  1214. toggled = not toggled
  1215. switch.Text = toggled and utf8.char(10003) or ""
  1216. pcall(callback, toggled)
  1217. end)
  1218.  
  1219. function switch_data:Set(bool)
  1220. toggled = (typeof(bool) == "boolean") and bool or false
  1221. switch.Text = toggled and utf8.char(10003) or ""
  1222. pcall(callback,toggled)
  1223. end
  1224.  
  1225. return switch_data, switch
  1226. end
  1227.  
  1228. function tab_data:AddTextBox(textbox_text, callback, textbox_options)
  1229. textbox_text = tostring(textbox_text or "New TextBox")
  1230. callback = typeof(callback) == "function" and callback or function()end
  1231. textbox_options = typeof(textbox_options) == "table" and textbox_options or {["clear"] = true}
  1232. textbox_options = {
  1233. ["clear"] = ((textbox_options.clear) == true)
  1234. }
  1235.  
  1236. local textbox = Prefabs:FindFirstChild("TextBox"):Clone()
  1237.  
  1238. textbox.Parent = new_tab
  1239. textbox.PlaceholderText = textbox_text
  1240. textbox.ZIndex = textbox.ZIndex + (windows * 10)
  1241. textbox:GetChildren()[1].ZIndex = textbox:GetChildren()[1].ZIndex + (windows * 10)
  1242.  
  1243. textbox.FocusLost:Connect(function(ep)
  1244. if ep then
  1245. if #textbox.Text > 0 then
  1246. pcall(callback, textbox.Text)
  1247. if textbox_options.clear then
  1248. textbox.Text = ""
  1249. end
  1250. end
  1251. end
  1252. end)
  1253.  
  1254. return textbox
  1255. end
  1256.  
  1257. function tab_data:AddSlider(slider_text, callback, slider_options)
  1258. local slider_data = {}
  1259.  
  1260. slider_text = tostring(slider_text or "New Slider")
  1261. callback = typeof(callback) == "function" and callback or function()end
  1262. slider_options = typeof(slider_options) == "table" and slider_options or {}
  1263. slider_options = {
  1264. ["min"] = slider_options.min or 0,
  1265. ["max"] = slider_options.max or 100,
  1266. ["readonly"] = slider_options.readonly or false,
  1267. }
  1268.  
  1269. local slider = Prefabs:FindFirstChild("Slider"):Clone()
  1270.  
  1271. slider.Parent = new_tab
  1272. slider.ZIndex = slider.ZIndex + (windows * 10)
  1273.  
  1274. local title = slider:FindFirstChild("Title")
  1275. local indicator = slider:FindFirstChild("Indicator")
  1276. local value = slider:FindFirstChild("Value")
  1277. title.ZIndex = title.ZIndex + (windows * 10)
  1278. indicator.ZIndex = indicator.ZIndex + (windows * 10)
  1279. value.ZIndex = value.ZIndex + (windows * 10)
  1280.  
  1281. title.Text = slider_text
  1282.  
  1283. do -- Slider Math
  1284. local Entered = false
  1285. slider.MouseEnter:Connect(function()
  1286. Entered = true
  1287. Window.Draggable = false
  1288. end)
  1289. slider.MouseLeave:Connect(function()
  1290. Entered = false
  1291. Window.Draggable = true
  1292. end)
  1293.  
  1294. local Held = false
  1295. UIS.InputBegan:Connect(function(inputObject)
  1296. if inputObject.UserInputType == Enum.UserInputType.MouseButton1 then
  1297. Held = true
  1298.  
  1299. spawn(function() -- Loop check
  1300. if Entered and not slider_options.readonly then
  1301. while Held and (not dropdown_open) do
  1302. local mouse_location = gMouse()
  1303. local x = (slider.AbsoluteSize.X - (slider.AbsoluteSize.X - ((mouse_location.X - slider.AbsolutePosition.X)) + 1)) / slider.AbsoluteSize.X
  1304.  
  1305. local min = 0
  1306. local max = 1
  1307.  
  1308. local size = min
  1309. if x >= min and x <= max then
  1310. size = x
  1311. elseif x < min then
  1312. size = min
  1313. elseif x > max then
  1314. size = max
  1315. end
  1316.  
  1317. Resize(indicator, {Size = UDim2.new(size or min, 0, 0, 20)}, options.tween_time)
  1318. local p = math.floor((size or min) * 100)
  1319.  
  1320. local maxv = slider_options.max
  1321. local minv = slider_options.min
  1322. local diff = maxv - minv
  1323.  
  1324. local sel_value = math.floor(((diff / 100) * p) + minv)
  1325.  
  1326. value.Text = tostring(sel_value)
  1327. pcall(callback, sel_value)
  1328.  
  1329. RS.Heartbeat:Wait()
  1330. end
  1331. end
  1332. end)
  1333. end
  1334. end)
  1335. UIS.InputEnded:Connect(function(inputObject)
  1336. if inputObject.UserInputType == Enum.UserInputType.MouseButton1 then
  1337. Held = false
  1338. end
  1339. end)
  1340.  
  1341. function slider_data:Set(new_value)
  1342. new_value = tonumber(new_value) or 0
  1343. new_value = (((new_value >= 0 and new_value <= 100) and new_value) / 100)
  1344.  
  1345. Resize(indicator, {Size = UDim2.new(new_value or 0, 0, 0, 20)}, options.tween_time)
  1346. local p = math.floor((new_value or 0) * 100)
  1347.  
  1348. local maxv = slider_options.max
  1349. local minv = slider_options.min
  1350. local diff = maxv - minv
  1351.  
  1352. local sel_value = math.floor(((diff / 100) * p) + minv)
  1353.  
  1354. value.Text = tostring(sel_value)
  1355. pcall(callback, sel_value)
  1356. end
  1357.  
  1358. slider_data:Set(slider_options["min"])
  1359. end
  1360.  
  1361. return slider_data, slider
  1362. end
  1363.  
  1364. function tab_data:AddKeybind(keybind_name, callback, keybind_options)
  1365. local keybind_data = {}
  1366.  
  1367. keybind_name = tostring(keybind_name or "New Keybind")
  1368. callback = typeof(callback) == "function" and callback or function()end
  1369. keybind_options = typeof(keybind_options) == "table" and keybind_options or {}
  1370. keybind_options = {
  1371. ["standard"] = keybind_options.standard or Enum.KeyCode.RightShift,
  1372. }
  1373.  
  1374. local keybind = Prefabs:FindFirstChild("Keybind"):Clone()
  1375. local input = keybind:FindFirstChild("Input")
  1376. local title = keybind:FindFirstChild("Title")
  1377. keybind.ZIndex = keybind.ZIndex + (windows * 10)
  1378. input.ZIndex = input.ZIndex + (windows * 10)
  1379. input:GetChildren()[1].ZIndex = input:GetChildren()[1].ZIndex + (windows * 10)
  1380. title.ZIndex = title.ZIndex + (windows * 10)
  1381.  
  1382. keybind.Parent = new_tab
  1383. title.Text = " " .. keybind_name
  1384. keybind.Size = UDim2.new(0, gNameLen(title) + 80, 0, 20)
  1385.  
  1386. local shortkeys = { -- thanks to stroketon for helping me out with this
  1387. RightControl = 'RightCtrl',
  1388. LeftControl = 'LeftCtrl',
  1389. LeftShift = 'LShift',
  1390. RightShift = 'RShift',
  1391. MouseButton1 = "Mouse1",
  1392. MouseButton2 = "Mouse2"
  1393. }
  1394.  
  1395. local keybind = keybind_options.standard
  1396.  
  1397. function keybind_data:SetKeybind(Keybind)
  1398. local key = shortkeys[Keybind.Name] or Keybind.Name
  1399. input.Text = key
  1400. keybind = Keybind
  1401. end
  1402.  
  1403. UIS.InputBegan:Connect(function(a, b)
  1404. if checks.binding then
  1405. spawn(function()
  1406. wait()
  1407. checks.binding = false
  1408. end)
  1409. return
  1410. end
  1411. if a.KeyCode == keybind and not b then
  1412. pcall(callback, keybind)
  1413. end
  1414. end)
  1415.  
  1416. keybind_data:SetKeybind(keybind_options.standard)
  1417.  
  1418. input.MouseButton1Click:Connect(function()
  1419. if checks.binding then return end
  1420. input.Text = "..."
  1421. checks.binding = true
  1422. local a, b = UIS.InputBegan:Wait()
  1423. keybind_data:SetKeybind(a.KeyCode)
  1424. end)
  1425.  
  1426. return keybind_data, keybind
  1427. end
  1428.  
  1429. function tab_data:AddDropdown(dropdown_name, callback)
  1430. local dropdown_data = {}
  1431. dropdown_name = tostring(dropdown_name or "New Dropdown")
  1432. callback = typeof(callback) == "function" and callback or function()end
  1433.  
  1434. local dropdown = Prefabs:FindFirstChild("Dropdown"):Clone()
  1435. local box = dropdown:FindFirstChild("Box")
  1436. local objects = box:FindFirstChild("Objects")
  1437. local indicator = dropdown:FindFirstChild("Indicator")
  1438. dropdown.ZIndex = dropdown.ZIndex + (windows * 10)
  1439. box.ZIndex = box.ZIndex + (windows * 10)
  1440. objects.ZIndex = objects.ZIndex + (windows * 10)
  1441. indicator.ZIndex = indicator.ZIndex + (windows * 10)
  1442. dropdown:GetChildren()[3].ZIndex = dropdown:GetChildren()[3].ZIndex + (windows * 10)
  1443.  
  1444. dropdown.Parent = new_tab
  1445. dropdown.Text = " " .. dropdown_name
  1446. box.Size = UDim2.new(1, 0, 0, 0)
  1447.  
  1448. local open = false
  1449. dropdown.MouseButton1Click:Connect(function()
  1450. open = not open
  1451.  
  1452. local len = (#objects:GetChildren() - 1) * 20
  1453. if #objects:GetChildren() - 1 >= 10 then
  1454. len = 10 * 20
  1455. objects.CanvasSize = UDim2.new(0, 0, (#objects:GetChildren() - 1) * 0.1, 0)
  1456. end
  1457.  
  1458. if open then -- Open
  1459. if dropdown_open then return end
  1460. dropdown_open = true
  1461. Resize(box, {Size = UDim2.new(1, 0, 0, len)}, options.tween_time)
  1462. Resize(indicator, {Rotation = 90}, options.tween_time)
  1463. else -- Close
  1464. dropdown_open = false
  1465. Resize(box, {Size = UDim2.new(1, 0, 0, 0)}, options.tween_time)
  1466. Resize(indicator, {Rotation = -90}, options.tween_time)
  1467. end
  1468.  
  1469. end)
  1470.  
  1471. function dropdown_data:Add(n)
  1472. local object_data = {}
  1473. n = tostring(n or "New Object")
  1474.  
  1475. local object = Prefabs:FindFirstChild("DropdownButton"):Clone()
  1476.  
  1477. object.Parent = objects
  1478. object.Text = n
  1479. object.ZIndex = object.ZIndex + (windows * 10)
  1480.  
  1481. object.MouseEnter:Connect(function()
  1482. object.BackgroundColor3 = options.main_color
  1483. end)
  1484. object.MouseLeave:Connect(function()
  1485. object.BackgroundColor3 = Color3.fromRGB(33, 34, 36)
  1486. end)
  1487.  
  1488. if open then
  1489. local len = (#objects:GetChildren() - 1) * 20
  1490. if #objects:GetChildren() - 1 >= 10 then
  1491. len = 10 * 20
  1492. objects.CanvasSize = UDim2.new(0, 0, (#objects:GetChildren() - 1) * 0.1, 0)
  1493. end
  1494. Resize(box, {Size = UDim2.new(1, 0, 0, len)}, options.tween_time)
  1495. end
  1496.  
  1497. object.MouseButton1Click:Connect(function()
  1498. if dropdown_open then
  1499. dropdown.Text = " [ " .. n .. " ]"
  1500. dropdown_open = false
  1501. open = false
  1502. Resize(box, {Size = UDim2.new(1, 0, 0, 0)}, options.tween_time)
  1503. Resize(indicator, {Rotation = -90}, options.tween_time)
  1504. pcall(callback, n)
  1505. end
  1506. end)
  1507.  
  1508. function object_data:Remove()
  1509. object:Destroy()
  1510. end
  1511.  
  1512. return object, object_data
  1513. end
  1514.  
  1515. return dropdown_data, dropdown
  1516. end
  1517.  
  1518. function tab_data:AddColorPicker(callback)
  1519. local color_picker_data = {}
  1520. callback = typeof(callback) == "function" and callback or function()end
  1521.  
  1522. local color_picker = Prefabs:FindFirstChild("ColorPicker"):Clone()
  1523.  
  1524. color_picker.Parent = new_tab
  1525. color_picker.ZIndex = color_picker.ZIndex + (windows * 10)
  1526.  
  1527. local palette = color_picker:FindFirstChild("Palette")
  1528. local sample = color_picker:FindFirstChild("Sample")
  1529. local saturation = color_picker:FindFirstChild("Saturation")
  1530. palette.ZIndex = palette.ZIndex + (windows * 10)
  1531. sample.ZIndex = sample.ZIndex + (windows * 10)
  1532. saturation.ZIndex = saturation.ZIndex + (windows * 10)
  1533.  
  1534. do -- Color Picker Math
  1535. local h = 0
  1536. local s = 1
  1537. local v = 1
  1538.  
  1539. local function update()
  1540. local color = Color3.fromHSV(h, s, v)
  1541. sample.ImageColor3 = color
  1542. saturation.ImageColor3 = Color3.fromHSV(h, 1, 1)
  1543. pcall(callback, color)
  1544. end
  1545.  
  1546. do
  1547. local color = Color3.fromHSV(h, s, v)
  1548. sample.ImageColor3 = color
  1549. saturation.ImageColor3 = Color3.fromHSV(h, 1, 1)
  1550. end
  1551.  
  1552. local Entered1, Entered2 = false, false
  1553. palette.MouseEnter:Connect(function()
  1554. Window.Draggable = false
  1555. Entered1 = true
  1556. end)
  1557. palette.MouseLeave:Connect(function()
  1558. Window.Draggable = true
  1559. Entered1 = false
  1560. end)
  1561. saturation.MouseEnter:Connect(function()
  1562. Window.Draggable = false
  1563. Entered2 = true
  1564. end)
  1565. saturation.MouseLeave:Connect(function()
  1566. Window.Draggable = true
  1567. Entered2 = false
  1568. end)
  1569.  
  1570. local palette_indicator = palette:FindFirstChild("Indicator")
  1571. local saturation_indicator = saturation:FindFirstChild("Indicator")
  1572. palette_indicator.ZIndex = palette_indicator.ZIndex + (windows * 10)
  1573. saturation_indicator.ZIndex = saturation_indicator.ZIndex + (windows * 10)
  1574.  
  1575. local Held = false
  1576. UIS.InputBegan:Connect(function(inputObject)
  1577. if inputObject.UserInputType == Enum.UserInputType.MouseButton1 then
  1578. Held = true
  1579.  
  1580. spawn(function() -- Loop check
  1581. while Held and Entered1 and (not dropdown_open) do -- Palette
  1582. local mouse_location = gMouse()
  1583.  
  1584. local x = ((palette.AbsoluteSize.X - (mouse_location.X - palette.AbsolutePosition.X)) + 1)
  1585. local y = ((palette.AbsoluteSize.Y - (mouse_location.Y - palette.AbsolutePosition.Y)) + 1.5)
  1586.  
  1587. local color = Color3.fromHSV(x / 100, y / 100, 0)
  1588. h = x / 100
  1589. s = y / 100
  1590.  
  1591. 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)
  1592.  
  1593. update()
  1594. RS.Heartbeat:Wait()
  1595. end
  1596.  
  1597. while Held and Entered2 and (not dropdown_open) do -- Saturation
  1598. local mouse_location = gMouse()
  1599. local y = ((palette.AbsoluteSize.Y - (mouse_location.Y - palette.AbsolutePosition.Y)) + 1.5)
  1600. v = y / 100
  1601.  
  1602. Resize(saturation_indicator, {Position = UDim2.new(0, 0, 0, math.abs(y - 100))}, options.tween_time)
  1603.  
  1604. update()
  1605. RS.Heartbeat:Wait()
  1606. end
  1607. end)
  1608. end
  1609. end)
  1610. UIS.InputEnded:Connect(function(inputObject)
  1611. if inputObject.UserInputType == Enum.UserInputType.MouseButton1 then
  1612. Held = false
  1613. end
  1614. end)
  1615.  
  1616. function color_picker_data:Set(color)
  1617. color = typeof(color) == "Color3" and color or Color3.new(1, 1, 1)
  1618. local h2, s2, v2 = rgbtohsv(color.r * 255, color.g * 255, color.b * 255)
  1619. sample.ImageColor3 = color
  1620. saturation.ImageColor3 = Color3.fromHSV(h2, 1, 1)
  1621. pcall(callback, color)
  1622. end
  1623. end
  1624.  
  1625. return color_picker_data, color_picker
  1626. end
  1627.  
  1628. function tab_data:AddConsole(console_options)
  1629. local console_data = {}
  1630.  
  1631. console_options = typeof(console_options) == "table" and console_options or {["readonly"] = true,["full"] = false,}
  1632. console_options = {
  1633. ["y"] = tonumber(console_options.y) or 200,
  1634. ["source"] = console_options.source or "Logs",
  1635. ["readonly"] = ((console_options.readonly) == true),
  1636. ["full"] = ((console_options.full) == true),
  1637. }
  1638.  
  1639. local console = Prefabs:FindFirstChild("Console"):Clone()
  1640.  
  1641. console.Parent = new_tab
  1642. console.ZIndex = console.ZIndex + (windows * 10)
  1643. console.Size = UDim2.new(1, 0, console_options.full and 1 or 0, console_options.y)
  1644.  
  1645. local sf = console:GetChildren()[1]
  1646. local Source = sf:FindFirstChild("Source")
  1647. local Lines = sf:FindFirstChild("Lines")
  1648. Source.ZIndex = Source.ZIndex + (windows * 10)
  1649. Lines.ZIndex = Lines.ZIndex + (windows * 10)
  1650.  
  1651. Source.TextEditable = not console_options.readonly
  1652.  
  1653. do -- Syntax Zindex
  1654. for i,v in next, Source:GetChildren() do
  1655. v.ZIndex = v.ZIndex + (windows * 10) + 1
  1656. end
  1657. end
  1658. Source.Comments.ZIndex = Source.Comments.ZIndex + 1
  1659.  
  1660. do -- Highlighting (thanks to whoever made this)
  1661. 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"}
  1662. 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"}
  1663.  
  1664. local Highlight = function(string, keywords)
  1665. local K = {}
  1666. local S = string
  1667. local Token =
  1668. {
  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. ["~"] = true
  1686. }
  1687. for i, v in pairs(keywords) do
  1688. K[v] = true
  1689. end
  1690. S = S:gsub(".", function(c)
  1691. if Token[c] ~= nil then
  1692. return "\32"
  1693. else
  1694. return c
  1695. end
  1696. end)
  1697. S = S:gsub("%S+", function(c)
  1698. if K[c] ~= nil then
  1699. return c
  1700. else
  1701. return (" "):rep(#c)
  1702. end
  1703. end)
  1704.  
  1705. return S
  1706. end
  1707.  
  1708. local hTokens = function(string)
  1709. local Token =
  1710. {
  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. ["~"] = true
  1728. }
  1729. local A = ""
  1730. string:gsub(".", function(c)
  1731. if Token[c] ~= nil then
  1732. A = A .. c
  1733. elseif c == "\n" then
  1734. A = A .. "\n"
  1735. elseif c == "\t" then
  1736. A = A .. "\t"
  1737. else
  1738. A = A .. "\32"
  1739. end
  1740. end)
  1741.  
  1742. return A
  1743. end
  1744.  
  1745. local strings = function(string)
  1746. local highlight = ""
  1747. local quote = false
  1748. string:gsub(".", function(c)
  1749. if quote == false and c == "\34" then
  1750. quote = true
  1751. elseif quote == true and c == "\34" then
  1752. quote = false
  1753. end
  1754. if quote == false and c == "\34" then
  1755. highlight = highlight .. "\34"
  1756. elseif c == "\n" then
  1757. highlight = highlight .. "\n"
  1758. elseif c == "\t" then
  1759. highlight = highlight .. "\t"
  1760. elseif quote == true then
  1761. highlight = highlight .. c
  1762. elseif quote == false then
  1763. highlight = highlight .. "\32"
  1764. end
  1765. end)
  1766.  
  1767. return highlight
  1768. end
  1769.  
  1770. local info = function(string)
  1771. local highlight = ""
  1772. local quote = false
  1773. string:gsub(".", function(c)
  1774. if quote == false and c == "[" then
  1775. quote = true
  1776. elseif quote == true and c == "]" then
  1777. quote = false
  1778. end
  1779. if quote == false and c == "\]" then
  1780. highlight = highlight .. "\]"
  1781. elseif c == "\n" then
  1782. highlight = highlight .. "\n"
  1783. elseif c == "\t" then
  1784. highlight = highlight .. "\t"
  1785. elseif quote == true then
  1786. highlight = highlight .. c
  1787. elseif quote == false then
  1788. highlight = highlight .. "\32"
  1789. end
  1790. end)
  1791.  
  1792. return highlight
  1793. end
  1794.  
  1795. local comments = function(string)
  1796. local ret = ""
  1797. string:gsub("[^\r\n]+", function(c)
  1798. local comm = false
  1799. local i = 0
  1800. c:gsub(".", function(n)
  1801. i = i + 1
  1802. if c:sub(i, i + 1) == "--" then
  1803. comm = true
  1804. end
  1805. if comm == true then
  1806. ret = ret .. n
  1807. else
  1808. ret = ret .. "\32"
  1809. end
  1810. end)
  1811. ret = ret
  1812. end)
  1813.  
  1814. return ret
  1815. end
  1816.  
  1817. local numbers = function(string)
  1818. local A = ""
  1819. string:gsub(".", function(c)
  1820. if tonumber(c) ~= nil then
  1821. A = A .. c
  1822. elseif c == "\n" then
  1823. A = A .. "\n"
  1824. elseif c == "\t" then
  1825. A = A .. "\t"
  1826. else
  1827. A = A .. "\32"
  1828. end
  1829. end)
  1830.  
  1831. return A
  1832. end
  1833.  
  1834. local highlight_lua = function(type)
  1835. if type == "Text" then
  1836. Source.Text = Source.Text:gsub("\13", "")
  1837. Source.Text = Source.Text:gsub("\t", " ")
  1838. local s = Source.Text
  1839.  
  1840. Source.Keywords.Text = Highlight(s, lua_keywords)
  1841. Source.Globals.Text = Highlight(s, global_env)
  1842. Source.RemoteHighlight.Text = Highlight(s, {"FireServer", "fireServer", "InvokeServer", "invokeServer"})
  1843. Source.Tokens.Text = hTokens(s)
  1844. Source.Numbers.Text = numbers(s)
  1845. Source.Strings.Text = strings(s)
  1846. Source.Comments.Text = comments(s)
  1847.  
  1848. local lin = 1
  1849. s:gsub("\n", function()
  1850. lin = lin + 1
  1851. end)
  1852.  
  1853. Lines.Text = ""
  1854. for i = 1, lin do
  1855. Lines.Text = Lines.Text .. i .. "\n"
  1856. end
  1857.  
  1858. sf.CanvasSize = UDim2.new(0, 0, lin * 0.153846154, 0)
  1859. end
  1860.  
  1861. local highlight_logs = function(type)
  1862. end
  1863. if type == "Text" then
  1864. Source.Text = Source.Text:gsub("\13", "")
  1865. Source.Text = Source.Text:gsub("\t", " ")
  1866. local s = Source.Text
  1867.  
  1868. Source.Info.Text = info(s)
  1869.  
  1870. local lin = 1
  1871. s:gsub("\n", function()
  1872. lin = lin + 1
  1873. end)
  1874.  
  1875. sf.CanvasSize = UDim2.new(0, 0, lin * 0.153846154, 0)
  1876. end
  1877. end
  1878.  
  1879. if console_options.source == "Lua" then
  1880. highlight_lua("Text")
  1881. Source.Changed:Connect(highlight_lua)
  1882. elseif console_options.source == "Logs" then
  1883. Lines.Visible = false
  1884.  
  1885. highlight_logs("Text")
  1886. Source.Changed:Connect(highlight_logs)
  1887. end
  1888.  
  1889. function console_data:Set(code)
  1890. Source.Text = tostring(code)
  1891. end
  1892.  
  1893. function console_data:Get()
  1894. return Source.Text
  1895. end
  1896.  
  1897. function console_data:Log(msg)
  1898. Source.Text = Source.Text .. "[*] " .. tostring(msg) .. "\n"
  1899. end
  1900.  
  1901. end
  1902.  
  1903. return console_data, console
  1904. end
  1905.  
  1906. function tab_data:AddHorizontalAlignment()
  1907. local ha_data = {}
  1908.  
  1909. local ha = Prefabs:FindFirstChild("HorizontalAlignment"):Clone()
  1910. ha.Parent = new_tab
  1911.  
  1912. function ha_data:AddButton(...)
  1913. local data, object
  1914. local ret = {tab_data:AddButton(...)}
  1915. if typeof(ret[1]) == "table" then
  1916. data = ret[1]
  1917. object = ret[2]
  1918. object.Parent = ha
  1919. return data, object
  1920. else
  1921. object = ret[1]
  1922. object.Parent = ha
  1923. return object
  1924. end
  1925. end
  1926.  
  1927. return ha_data, ha
  1928. end
  1929.  
  1930. function tab_data:AddFolder(folder_name) -- [Folder]
  1931. local folder_data = {}
  1932.  
  1933. folder_name = tostring(folder_name or "New Folder")
  1934.  
  1935. local folder = Prefabs:FindFirstChild("Folder"):Clone()
  1936. local button = folder:FindFirstChild("Button")
  1937. local objects = folder:FindFirstChild("Objects")
  1938. local toggle = button:FindFirstChild("Toggle")
  1939. folder.ZIndex = folder.ZIndex + (windows * 10)
  1940. button.ZIndex = button.ZIndex + (windows * 10)
  1941. objects.ZIndex = objects.ZIndex + (windows * 10)
  1942. toggle.ZIndex = toggle.ZIndex + (windows * 10)
  1943. button:GetChildren()[1].ZIndex = button:GetChildren()[1].ZIndex + (windows * 10)
  1944.  
  1945. folder.Parent = new_tab
  1946. button.Text = " " .. folder_name
  1947.  
  1948. spawn(function()
  1949. while true do
  1950. if button and button:GetChildren()[1] then
  1951. button:GetChildren()[1].ImageColor3 = options.main_color
  1952. end
  1953. RS.Heartbeat:Wait()
  1954. end
  1955. end)
  1956.  
  1957. local function gFolderLen()
  1958. local n = 25
  1959. for i,v in next, objects:GetChildren() do
  1960. if not (v:IsA("UIListLayout")) then
  1961. n = n + v.AbsoluteSize.Y + 5
  1962. end
  1963. end
  1964. return n
  1965. end
  1966.  
  1967. local open = false
  1968. button.MouseButton1Click:Connect(function()
  1969. if open then -- Close
  1970. Resize(toggle, {Rotation = 0}, options.tween_time)
  1971. objects.Visible = false
  1972. else -- Open
  1973. Resize(toggle, {Rotation = 90}, options.tween_time)
  1974. objects.Visible = true
  1975. end
  1976.  
  1977. open = not open
  1978. end)
  1979.  
  1980. spawn(function()
  1981. while true do
  1982. Resize(folder, {Size = UDim2.new(1, 0, 0, (open and gFolderLen() or 20))}, options.tween_time)
  1983. wait()
  1984. end
  1985. end)
  1986.  
  1987. for i,v in next, tab_data do
  1988. folder_data[i] = function(...)
  1989. local data, object
  1990. local ret = {v(...)}
  1991. if typeof(ret[1]) == "table" then
  1992. data = ret[1]
  1993. object = ret[2]
  1994. object.Parent = objects
  1995. return data, object
  1996. else
  1997. object = ret[1]
  1998. object.Parent = objects
  1999. return object
  2000. end
  2001. end
  2002. end
  2003.  
  2004. return folder_data, folder
  2005. end
  2006.  
  2007. end
  2008.  
  2009. return tab_data, new_tab
  2010. end
  2011. end
  2012. end
  2013.  
  2014. do
  2015. for i, v in next, Window:GetDescendants() do
  2016. if hasprop(v, "ZIndex") then
  2017. v.ZIndex = v.ZIndex + (windows * 10)
  2018. end
  2019. end
  2020. end
  2021.  
  2022. return window_data, Window
  2023. end
  2024.  
  2025. do -- Example UI
  2026. local Window = library:AddWindow("Furk - Mining Simulator 2", {
  2027. main_color = Color3.fromRGB(0, 0, 0),
  2028. min_size = Vector2.new(270, 180),
  2029. toggle_key = Enum.KeyCode.RightShift,
  2030. can_resize = true,
  2031. })
  2032. local Tab = Window:AddTab("Main")
  2033.  
  2034. do -- Elements
  2035. Tab:AddLabel("Thanks For Using Furk Ultra!")
  2036. Tab:AddLabel("~ Press Right Shift To Hide GUI ~")
  2037.  
  2038.  
  2039. Tab:AddButton("SyntaHub", function()
  2040. local supported_games = {
  2041. ['BubbleGumSimulator'] = 2512643572,
  2042. ['MiningSimulator2'] = 9551640993,
  2043. }
  2044.  
  2045. local request = 'https://raw.githubusercontent.com/DareQPlaysRBX/SYNTAHUB/Games/%s.lua'
  2046.  
  2047. for i,v in pairs(supported_games) do
  2048. if game.PlaceId == v then
  2049. warn(i .. ' detected!')
  2050. loadstring(game:HttpGet(request:format(i)))()
  2051. end
  2052. end
  2053. end)
  2054. Tab:AddButton("Zeerox GUI", function()
  2055. loadstring(game:HttpGet'https://github.com/RunDTM/miningsim2/raw/main/script.lua')()
  2056. end)
  2057.  
  2058.  
  2059.  
  2060. end
  2061.  
  2062. Tab:Show()
  2063. library:FormatWindows()
  2064. end
Add Comment
Please, Sign In to add comment