scriptss

UwUhub

Jul 27th, 2020
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 78.51 KB | None | 0 0
  1. local library = {
  2. Color = Color3.fromRGB(26, 255, 160),
  3. Key = Enum.KeyCode.L,
  4. LogColor = Color3.new(1, 1, 1)
  5. }
  6.  
  7. local Main = Instance.new("ScreenGui", game.CoreGui)
  8. Main.Name = "WATERMARK"
  9. local WaterMark = Instance.new("TextLabel", Main)
  10. WaterMark .Size = UDim2.new(0, 180, 0, 20)
  11. WaterMark .BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  12. WaterMark .TextColor3 = Color3.fromRGB(200, 200, 200)
  13. WaterMark .MouseEnter:Connect(function()
  14. game:GetService("TweenService"):Create(b, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255, 255, 255)}):Play()
  15. end)
  16.  
  17. WaterMark.MouseLeave:Connect(function()
  18. game:GetService("TweenService"):Create(b, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(200, 200, 200)}):Play()
  19. end)
  20.  
  21. game.RunService.RenderStepped:Connect(function()
  22. WaterMark .BorderColor3 = library.Color
  23. WaterMark.Text = "uwuhub v1.0.0 rewrite | FPS: "..math.floor(1/game.RunService.RenderStepped:Wait())
  24. end)
  25.  
  26. function library:CreateWindow(title)
  27. local window = {}
  28. title = title or "Window"
  29. local ColorCounterRainbow = 0
  30. local ColorPickerHuePosition = 0
  31.  
  32. spawn(function()
  33. while wait() do
  34. ColorCounterRainbow = ColorCounterRainbow + 1/255
  35. if ColorCounterRainbow >= 1 then
  36. ColorCounterRainbow = 0
  37. end
  38. ColorPickerHuePosition = ColorPickerHuePosition + 1
  39. if ColorPickerHuePosition == 102 then
  40. ColorPickerHuePosition = 0
  41. end
  42. end
  43. end)
  44.  
  45. local LIB = Instance.new("ScreenGui")
  46. local MainGUIHolder = Instance.new("Frame")
  47. local TopBar = Instance.new("Frame")
  48. local TabsHolder = Instance.new("Frame")
  49. local UIListLayout = Instance.new("UIListLayout")
  50. local Title = Instance.new("TextLabel")
  51. local CloseButton = Instance.new("ImageButton")
  52.  
  53. LIB.Name = "LIB"
  54. LIB.Parent = game.CoreGui
  55. LIB.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  56.  
  57. MainGUIHolder.Name = "MainGUIHolder"
  58. MainGUIHolder.Parent = LIB
  59. MainGUIHolder.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  60. game:GetService("RunService").RenderStepped:Connect(function()
  61. MainGUIHolder.BorderColor3 = library.Color
  62. end)
  63. MainGUIHolder.ClipsDescendants = true
  64. MainGUIHolder.Position = UDim2.new(0.324491054, 0, 0.246928751, 0)
  65. MainGUIHolder.Size = UDim2.new(0, 568, 0, 412)
  66.  
  67. TopBar.Name = "TopBar"
  68. TopBar.Parent = MainGUIHolder
  69. TopBar.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  70. TopBar.BorderColor3 = Color3.fromRGB(13, 13, 13)
  71. TopBar.Size = UDim2.new(0, 568, 0, 51)
  72.  
  73. TabsHolder.Name = "TabsHolder"
  74. TabsHolder.Parent = TopBar
  75. TabsHolder.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  76. TabsHolder.BorderColor3 = Color3.fromRGB(13, 13, 13)
  77. TabsHolder.Position = UDim2.new(0.267605633, 0, 0, 0)
  78. TabsHolder.Size = UDim2.new(0, 416, 0, 51)
  79.  
  80. UIListLayout.Parent = TabsHolder
  81. UIListLayout.FillDirection = Enum.FillDirection.Horizontal
  82. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  83.  
  84. Title.Name = "Title"
  85. Title.Parent = TopBar
  86. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  87. Title.BackgroundTransparency = 1.000
  88. Title.BorderSizePixel = 0
  89. Title.Size = UDim2.new(0, 152, 0, 50)
  90. Title.Font = Enum.Font.SourceSans
  91. Title.Text = title
  92. game:GetService("RunService").RenderStepped:Connect(function()
  93. Title.TextColor3 = library.Color
  94. end)
  95. Title.TextSize = 16.000
  96. Title.TextStrokeTransparency = 0.000
  97.  
  98. CloseButton.Name = "CloseButton"
  99. CloseButton.Parent = MainGUIHolder
  100. CloseButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  101. CloseButton.BackgroundTransparency = 1.000
  102. CloseButton.Position = UDim2.new(0.970070422, 0, 0.956310689, 0)
  103. CloseButton.Rotation = 50.000
  104. CloseButton.Size = UDim2.new(0, 17, 0, 17)
  105. CloseButton.AutoButtonColor = false
  106. CloseButton.Image = "rbxassetid://5238501683"
  107. game:GetService("RunService").RenderStepped:Connect(function()
  108. CloseButton.ImageColor3 = library.Color
  109. end)
  110.  
  111. function dragify(Frame)
  112. dragToggle = nil
  113. dragSpeed = .25
  114. dragInput = nil
  115. dragStart = nil
  116. dragPos = nil
  117.  
  118. function updateInput(input)
  119. Delta = input.Position - dragStart
  120. Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + Delta.X, startPos.Y.Scale, startPos.Y.Offset + Delta.Y)
  121. game:GetService("TweenService"):Create(Frame, TweenInfo.new(.25), {Position = Position}):Play()
  122. end
  123.  
  124. Frame.InputBegan:Connect(function(input)
  125. if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) then
  126. dragToggle = true
  127. dragStart = input.Position
  128. startPos = Frame.Position
  129. input.Changed:Connect(function()
  130. if (input.UserInputState == Enum.UserInputState.End) then
  131. dragToggle = false
  132. end
  133. end)
  134. end
  135. end)
  136.  
  137. Frame.InputChanged:Connect(function(input)
  138. if (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then
  139. dragInput = input
  140. end
  141. end)
  142.  
  143. game:GetService("UserInputService").InputChanged:Connect(function(input)
  144. if (input == dragInput and dragToggle) then
  145. updateInput(input)
  146. end
  147. end)
  148. end
  149.  
  150. dragify(MainGUIHolder)
  151.  
  152. local Tabs = 0
  153.  
  154. function window:CreateTab(title)
  155. Tabs = Tabs + 1
  156. local tab = {}
  157. title = title or "Tab"
  158.  
  159. local Tab = Instance.new("TextButton")
  160. local SectionStuffHolder = Instance.new("Frame")
  161. local UIPadding = Instance.new("UIPadding")
  162. local UIListLayout_2 = Instance.new("UIListLayout")
  163.  
  164. Tab.Name = "Tab"
  165. Tab.Parent = TabsHolder
  166. Tab.BackgroundColor3 = Color3.fromRGB(32, 32, 32)
  167. Tab.BorderColor3 = Color3.fromRGB(13, 13, 13)
  168.  
  169. game["Run Service"].RenderStepped:Connect(function()
  170. Tab.Size = UDim2.new(0, TabsHolder.Size.X.Offset/Tabs, 0, 51)
  171. end)
  172.  
  173. Tab.AutoButtonColor = false
  174. Tab.Font = Enum.Font.SourceSans
  175. Tab.Text = title
  176. Tab.TextColor3 = Color3.fromRGB(200, 200, 200)
  177. Tab.TextSize = 14.000
  178. Tab.TextStrokeTransparency = 0.000
  179.  
  180. SectionStuffHolder.Name = "SectionStuffHolder"
  181. SectionStuffHolder.Parent = MainGUIHolder
  182. SectionStuffHolder.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  183. SectionStuffHolder.BackgroundTransparency = 1.000
  184. SectionStuffHolder.BorderSizePixel = 0
  185. SectionStuffHolder.Position = UDim2.new(0, 0, 0.123786405, 0)
  186. SectionStuffHolder.Size = UDim2.new(0, 568, 0, 361)
  187. SectionStuffHolder.Visible = false
  188.  
  189. UIPadding.Parent = SectionStuffHolder
  190. UIPadding.PaddingBottom = UDim.new(0, 18)
  191. UIPadding.PaddingLeft = UDim.new(0, 18)
  192. UIPadding.PaddingTop = UDim.new(0, 18)
  193.  
  194. UIListLayout_2.Parent = SectionStuffHolder
  195. UIListLayout_2.FillDirection = Enum.FillDirection.Horizontal
  196. UIListLayout_2.SortOrder = Enum.SortOrder.LayoutOrder
  197. UIListLayout_2.Padding = UDim.new(0, 24)
  198.  
  199. function tab:CreateSection(title)
  200. local section = {}
  201. title = title or "Section"
  202.  
  203. local Sec = Instance.new("Frame")
  204. local Section2 = Instance.new("ScrollingFrame")
  205. local UIListLayout_3 = Instance.new("UIListLayout")
  206. local UIPadding_2 = Instance.new("UIPadding")
  207. local SecT = Instance.new("TextLabel")
  208.  
  209. Sec.Name = "Sec"
  210. Sec.Parent = SectionStuffHolder
  211. Sec.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  212. Sec.BackgroundTransparency = 1.000
  213. Sec.BorderSizePixel = 0
  214. Sec.Size = UDim2.new(0, 255, 0, 325)
  215.  
  216. Section2.Name = "Section2"
  217. Section2.Parent = Sec
  218. Section2.Active = true
  219. Section2.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  220. Section2.BorderColor3 = Color3.fromRGB(13, 13, 13)
  221. Section2.Size = UDim2.new(0, 255, 0, 325)
  222. Section2.ScrollBarThickness = 0
  223. Section2.CanvasSize = UDim2.new(0, 0, 4, 0)
  224.  
  225. UIListLayout_3.Parent = Section2
  226. UIListLayout_3.SortOrder = Enum.SortOrder.LayoutOrder
  227. UIListLayout_3.Padding = UDim.new(0, 4)
  228.  
  229. UIPadding_2.Parent = Section2
  230. UIPadding_2.PaddingBottom = UDim.new(0, 8)
  231. UIPadding_2.PaddingLeft = UDim.new(0, 8)
  232. UIPadding_2.PaddingRight = UDim.new(0, 8)
  233. UIPadding_2.PaddingTop = UDim.new(0, 8)
  234.  
  235. SecT.Name = "SecT"
  236. SecT.Parent = Sec
  237. SecT.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  238. SecT.BorderSizePixel = 0
  239. SecT.Position = UDim2.new(0.337040871, 0, -0.0316661447, 0)
  240. SecT.Size = UDim2.new(0, 76, 0, 17)
  241. SecT.Font = Enum.Font.SourceSans
  242. SecT.Text = title
  243. SecT.TextColor3 = Color3.fromRGB(200, 200, 200)
  244. SecT.TextSize = 14.000
  245. SecT.TextStrokeTransparency = 0.000
  246. local Change = false
  247. Tab.MouseEnter:Connect(function()
  248. if Tab.TextColor3 ~= Color3.new(255, 255, 255) then
  249. Change = true
  250. game:GetService("TweenService"):Create(Tab, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255, 255, 255)}):Play()
  251. else
  252. Change = false
  253. end
  254. end)
  255.  
  256. Tab.MouseLeave:Connect(function()
  257. if Change then
  258. game:GetService("TweenService"):Create(Tab, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(200, 200, 200)}):Play()
  259. end
  260. end)
  261.  
  262. Section2.MouseEnter:Connect(function()
  263. game:GetService("TweenService"):Create(SecT, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255, 255, 255)}):Play()
  264. end)
  265.  
  266. Section2.MouseLeave:Connect(function()
  267. game:GetService("TweenService"):Create(SecT, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(200, 200, 200)}):Play()
  268. end)
  269.  
  270. Tab.MouseButton1Down:Connect(function()
  271. if SectionStuffHolder.Visible == false then
  272. game:GetService("TweenService"):Create(Tab, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255, 255, 255)}):Play()
  273. SectionStuffHolder.Visible = true
  274. for i, v in pairs(MainGUIHolder:GetChildren()) do
  275. if v.Name:find("StuffHolder") and v ~= SectionStuffHolder then
  276. v.Visible = false
  277. end
  278. end
  279.  
  280. for i, v in pairs(TabsHolder:GetChildren()) do
  281. if v:IsA("TextButton") and v ~= Tab then
  282. game:GetService("TweenService"):Create(v, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(200, 200, 200)}):Play()
  283. end
  284. end
  285. end
  286. end)
  287.  
  288. function section:CreateButton(title, func)
  289. local button = {}
  290. title = title or "Button"
  291. func = func or function() end
  292.  
  293. local Button = Instance.new("TextButton")
  294.  
  295. Button.Name = "Button"
  296. Button.Parent = Section2
  297. Button.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  298. Button.BorderColor3 = Color3.fromRGB(13, 13, 13)
  299. Button.Position = UDim2.new(0.0313725509, 0, 0.0286738351, 0)
  300. Button.Size = UDim2.new(0, 239, 0, 25)
  301. Button.AutoButtonColor = false
  302. Button.Font = Enum.Font.SourceSans
  303. Button.TextColor3 = Color3.fromRGB(200, 200, 200)
  304. Button.TextSize = 14.000
  305. Button.Text = title
  306. Button.TextStrokeTransparency = 0.000
  307.  
  308. Button.MouseEnter:Connect(function()
  309. game:GetService("TweenService"):Create(Button, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255, 255, 255)}):Play()
  310. end)
  311.  
  312. Button.MouseLeave:Connect(function()
  313. game:GetService("TweenService"):Create(Button, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(200, 200, 200)}):Play()
  314. end)
  315.  
  316. Button.MouseButton1Down:Connect(func)
  317.  
  318. function button:Press()
  319. func()
  320. end
  321.  
  322. return button
  323. end
  324.  
  325. function section:CreateToggle(title, default, func)
  326. local toggle = {}
  327. title = title or "Toggle"
  328. if type(default) == "function" and not func then
  329. func = default
  330. default = false
  331. end
  332.  
  333. default = default or false
  334. func = func or function() end
  335.  
  336. toggle.Toggled = default
  337.  
  338. local ToggleButton = Instance.new("TextButton")
  339. local ToggleTitle = Instance.new("TextLabel")
  340. local ToggleToggle = Instance.new("TextButton")
  341.  
  342. ToggleButton.Name = "ToggleButton"
  343. ToggleButton.Parent = Section2
  344. ToggleButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  345. ToggleButton.BorderColor3 = Color3.fromRGB(13, 13, 13)
  346. ToggleButton.Position = UDim2.new(0.0313725509, 0, 0.0286738351, 0)
  347. ToggleButton.Size = UDim2.new(0, 239, 0, 25)
  348. ToggleButton.AutoButtonColor = false
  349. ToggleButton.Font = Enum.Font.SourceSans
  350. ToggleButton.Text = ""
  351. ToggleButton.TextColor3 = Color3.fromRGB(200, 200, 200)
  352. ToggleButton.TextSize = 14.000
  353. ToggleButton.TextStrokeTransparency = 0.000
  354.  
  355. ToggleTitle.Name = "ToggleTitle"
  356. ToggleTitle.Parent = ToggleButton
  357. ToggleTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  358. ToggleTitle.BackgroundTransparency = 1.000
  359. ToggleTitle.BorderSizePixel = 0
  360. ToggleTitle.Position = UDim2.new(0.0251046028, 0, 0, 0)
  361. ToggleTitle.Size = UDim2.new(0, 233, 0, 25)
  362. ToggleTitle.Font = Enum.Font.SourceSans
  363. ToggleTitle.Text = title
  364. ToggleTitle.TextColor3 = Color3.fromRGB(200, 200, 200)
  365. ToggleTitle.TextSize = 14.000
  366. ToggleTitle.TextStrokeTransparency = 0.000
  367. ToggleTitle.TextXAlignment = Enum.TextXAlignment.Left
  368.  
  369. ToggleToggle.Name = "ToggleToggle"
  370. ToggleToggle.Parent = ToggleButton
  371. ToggleToggle.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  372. ToggleToggle.BorderColor3 = Color3.fromRGB(13, 13, 13)
  373. ToggleToggle.Position = UDim2.new(0.907949805, 0, 0.159999996, 0)
  374. ToggleToggle.Size = UDim2.new(0, 16, 0, 16)
  375. ToggleToggle.AutoButtonColor = false
  376. ToggleToggle.Font = Enum.Font.SourceSans
  377. ToggleToggle.Text = utf8.char(10003)
  378. ToggleToggle.TextTransparency = default and 0 or 1
  379. ToggleToggle.TextColor3 = Color3.fromRGB(255, 255, 255)
  380. ToggleToggle.TextSize = 14.000
  381. ToggleToggle.TextYAlignment = Enum.TextYAlignment.Top
  382.  
  383. if default then
  384. func(default)
  385. end
  386.  
  387. ToggleButton.MouseEnter:Connect(function()
  388. game:GetService("TweenService"):Create(ToggleTitle, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255, 255, 255)}):Play()
  389. end)
  390.  
  391. ToggleButton.MouseLeave:Connect(function()
  392. game:GetService("TweenService"):Create(ToggleTitle, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(200, 200, 200)}):Play()
  393. end)
  394.  
  395. ToggleButton.MouseButton1Down:Connect(function()
  396. if toggle.Toggled then
  397. toggle.Toggled = false
  398. func(toggle.Toggled)
  399. game:GetService("TweenService"):Create(ToggleToggle, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextTransparency = 1}):Play()
  400. else
  401. toggle.Toggled = true
  402. func(toggle.Toggled)
  403. game:GetService("TweenService"):Create(ToggleToggle, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextTransparency = 0}):Play()
  404. end
  405. end)
  406.  
  407. ToggleToggle.MouseEnter:Connect(function()
  408. game:GetService("TweenService"):Create(ToggleTitle, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255, 255, 255)}):Play()
  409. end)
  410.  
  411. ToggleToggle.MouseLeave:Connect(function()
  412. game:GetService("TweenService"):Create(ToggleTitle, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(200, 200, 200)}):Play()
  413. end)
  414.  
  415. ToggleToggle.MouseButton1Down:Connect(function()
  416. if toggle.Toggled then
  417. toggle.Toggled = false
  418. func(toggle.Toggled)
  419. game:GetService("TweenService"):Create(ToggleToggle, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextTransparency = 1}):Play()
  420. else
  421. toggle.Toggled = true
  422. func(toggle.Toggled)
  423. game:GetService("TweenService"):Create(ToggleToggle, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextTransparency = 0}):Play()
  424. end
  425. end)
  426.  
  427. function toggle:SetToggled(toggled)
  428. if toggled then
  429. toggle.Toggled = true
  430. func(toggle.Toggled)
  431. game:GetService("TweenService"):Create(ToggleToggle, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextTransparency = 1}):Play()
  432. else
  433. toggle.Toggled = false
  434. func(toggle.Toggled)
  435. game:GetService("TweenService"):Create(ToggleToggle, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextTransparency = 0}):Play()
  436. end
  437. end
  438.  
  439. return toggle
  440. end
  441.  
  442. function section:CreateTextbox(title, placeholder, default, func)
  443. local textbox = {}
  444. if type(placeholder) == "function" and not default and not func then
  445. func = placeholder
  446. placeholder = ""
  447. default = ""
  448. end
  449.  
  450. title = title or "TextBox"
  451. placeholder = placeholder or ""
  452. default = default or ""
  453. func = func or function() end
  454.  
  455.  
  456. local TextBoxBack = Instance.new("Frame")
  457. local TextBoxTitle = Instance.new("TextLabel")
  458. local TextBoxText = Instance.new("TextBox")
  459.  
  460. TextBoxBack.Name = "TextBoxBack"
  461. TextBoxBack.Parent = Section2
  462. TextBoxBack.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  463. TextBoxBack.BorderColor3 = Color3.fromRGB(13, 13, 13)
  464. TextBoxBack.Size = UDim2.new(0, 239, 0, 25)
  465.  
  466. TextBoxTitle.Name = "TextBoxTitle"
  467. TextBoxTitle.Parent = TextBoxBack
  468. TextBoxTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  469. TextBoxTitle.BackgroundTransparency = 1.000
  470. TextBoxTitle.BorderSizePixel = 0
  471. TextBoxTitle.Position = UDim2.new(0.0251046028, 0, 0, 0)
  472. TextBoxTitle.Size = UDim2.new(0, 233, 0, 25)
  473. TextBoxTitle.Font = Enum.Font.SourceSans
  474. TextBoxTitle.Text = title
  475. TextBoxTitle.TextColor3 = Color3.fromRGB(200, 200, 200)
  476. TextBoxTitle.TextSize = 14.000
  477. TextBoxTitle.TextStrokeTransparency = 0.000
  478. TextBoxTitle.TextXAlignment = Enum.TextXAlignment.Left
  479.  
  480. TextBoxText.Name = "TextBoxText"
  481. TextBoxText.Parent = TextBoxBack
  482. TextBoxText.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  483. TextBoxText.BorderColor3 = Color3.fromRGB(13, 13, 13)
  484. TextBoxText.Position = UDim2.new(0.424048871, 0, 0.161632076, 0)
  485. TextBoxText.Size = UDim2.new(0, 132, 0, 16)
  486. TextBoxText.ClearTextOnFocus = false
  487. TextBoxText.Font = Enum.Font.SourceSans
  488. TextBoxText.PlaceholderText = placeholder
  489. TextBoxText.Text = default
  490. TextBoxText.TextColor3 = Color3.fromRGB(200, 200, 200)
  491. TextBoxText.TextSize = 14.000
  492.  
  493. TextBoxBack.MouseEnter:Connect(function()
  494. game:GetService("TweenService"):Create(TextBoxTitle, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255, 255, 255)}):Play()
  495. end)
  496.  
  497. TextBoxBack.MouseLeave:Connect(function()
  498. game:GetService("TweenService"):Create(TextBoxTitle, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(200, 200, 200)}):Play()
  499. end)
  500.  
  501. TextBoxText.FocusLost:Connect(function()
  502. func(TextBoxText.Text)
  503. end)
  504.  
  505. function textbox:SetText(text)
  506. TextBoxText.Text = text
  507. func(text)
  508. end
  509.  
  510. return textbox
  511. end
  512.  
  513. function section:CreateKeybind(title, default, func)
  514. local keybind = {}
  515. title = title or "Keybind"
  516. default = default or ". . ."
  517. func = func or function() end
  518.  
  519. local KeybindBack = Instance.new("Frame")
  520. local KeybindTitle = Instance.new("TextLabel")
  521. local KeybindButton = Instance.new("TextButton")
  522.  
  523. KeybindBack.Name = "KeybindBack"
  524. KeybindBack.Parent = Section2
  525. KeybindBack.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  526. KeybindBack.BorderColor3 = Color3.fromRGB(13, 13, 13)
  527. KeybindBack.Size = UDim2.new(0, 239, 0, 25)
  528.  
  529. KeybindTitle.Name = "KeybindTitle"
  530. KeybindTitle.Parent = KeybindBack
  531. KeybindTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  532. KeybindTitle.BackgroundTransparency = 1.000
  533. KeybindTitle.BorderSizePixel = 0
  534. KeybindTitle.Position = UDim2.new(0.0251046028, 0, 0, 0)
  535. KeybindTitle.Size = UDim2.new(0, 233, 0, 25)
  536. KeybindTitle.Font = Enum.Font.SourceSans
  537. KeybindTitle.Text = title
  538. KeybindTitle.TextColor3 = Color3.fromRGB(200, 200, 200)
  539. KeybindTitle.TextSize = 14.000
  540. KeybindTitle.TextStrokeTransparency = 0.000
  541. KeybindTitle.TextXAlignment = Enum.TextXAlignment.Left
  542.  
  543. KeybindButton.Name = "KeybindButton"
  544. KeybindButton.Parent = KeybindBack
  545. KeybindButton.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  546. KeybindButton.BorderColor3 = Color3.fromRGB(13, 13, 13)
  547. KeybindButton.Position = UDim2.new(0.42259413, 0, 0.200000003, 0)
  548. KeybindButton.Size = UDim2.new(0, 132, 0, 16)
  549. KeybindButton.AutoButtonColor = false
  550. KeybindButton.Font = Enum.Font.SourceSans
  551. KeybindButton.Text = tostring(default):gsub("Enum.KeyCode.", "")
  552. KeybindButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  553. KeybindButton.TextSize = 14.000
  554.  
  555. function parse(keycode)
  556. return tostring(keycode):gsub("Enum.KeyCode.", "")
  557. end
  558.  
  559. local LastBindText = parse(default)
  560. local BindedKey = default
  561. local JustBinded = false
  562.  
  563. KeybindBack.MouseEnter:Connect(function()
  564. game:GetService("TweenService"):Create(KeybindTitle, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255, 255, 255)}):Play()
  565. end)
  566.  
  567. KeybindBack.MouseLeave:Connect(function()
  568. game:GetService("TweenService"):Create(KeybindTitle, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(200, 200, 200)}):Play()
  569. end)
  570.  
  571. KeybindButton.MouseButton1Click:Connect(function()
  572. KeybindButton.Text = ". . ."
  573. IsKeyBinding = true
  574.  
  575. UISConnection = game:GetService("UserInputService").InputBegan:Connect(function(input)
  576. BindedKey = input.KeyCode
  577. KeybindButton.Text = parse(BindedKey)
  578. LastBindText = KeybindButton.Text
  579.  
  580. JustBinded = true
  581. IsKeyBinding = false
  582. UISConnection:Disconnect()
  583. end)
  584. end)
  585.  
  586. game:GetService("UserInputService").InputBegan:Connect(function()
  587. if not JustBinded then
  588. func(BindedKey)
  589. end
  590.  
  591. if JustBinded then
  592. JustBinded = false
  593. end
  594. end)
  595.  
  596. KeybindButton.MouseLeave:Connect(function()
  597. KeybindButton.Text = LastBindText
  598. IsKeyBinding = false
  599. end)
  600.  
  601. function keybind:SetKey(key)
  602. func(key)
  603. KeybindButton.Text = parse(key)
  604. end
  605.  
  606. return keybind
  607. end
  608.  
  609. function section:CreateSlider(title, min, max, default, round, func)
  610. local slider = {}
  611. min = min or 0
  612. max = max or 1
  613. default = default or 0
  614. round = round or false
  615. func = func or function() end
  616.  
  617. local SliderBackFrame = Instance.new("Frame")
  618. local SliderTitle = Instance.new("TextLabel")
  619. local SliderValue = Instance.new("TextBox")
  620. local SliderBackButton = Instance.new("TextButton")
  621. local SliderHandle = Instance.new("TextButton")
  622.  
  623. SliderBackFrame.Name = "SliderBackFrame"
  624. SliderBackFrame.Parent = Section2
  625. SliderBackFrame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  626. SliderBackFrame.BorderColor3 = Color3.fromRGB(13, 13, 13)
  627. SliderBackFrame.Position = UDim2.new(0.0313725509, 0, 0.0286738351, 0)
  628. SliderBackFrame.Size = UDim2.new(0, 239, 0, 49)
  629.  
  630. SliderTitle.Name = "SliderTitle"
  631. SliderTitle.Parent = SliderBackFrame
  632. SliderTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  633. SliderTitle.BackgroundTransparency = 1.000
  634. SliderTitle.BorderSizePixel = 0
  635. SliderTitle.Position = UDim2.new(0.0251046028, 0, 0, 0)
  636. SliderTitle.Size = UDim2.new(0, 233, 0, 25)
  637. SliderTitle.Font = Enum.Font.SourceSans
  638. SliderTitle.Text = title
  639. SliderTitle.TextColor3 = Color3.fromRGB(200, 200, 200)
  640. SliderTitle.TextSize = 14.000
  641. SliderTitle.TextStrokeTransparency = 0.000
  642. SliderTitle.TextXAlignment = Enum.TextXAlignment.Left
  643.  
  644. SliderValue.Name = "SliderValue"
  645. SliderValue.Parent = SliderBackFrame
  646. SliderValue.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  647. SliderValue.BorderColor3 = Color3.fromRGB(13, 13, 13)
  648. SliderValue.Position = UDim2.new(0.849372447, 0, 0.0816326439, 0)
  649. SliderValue.Size = UDim2.new(0, 30, 0, 16)
  650. SliderValue.ClearTextOnFocus = false
  651. SliderValue.Font = Enum.Font.SourceSans
  652. SliderValue.Text = default
  653. SliderValue.TextColor3 = Color3.fromRGB(200, 200, 200)
  654. SliderValue.TextSize = 14.000
  655.  
  656. SliderBackButton.Name = "SliderBackButton"
  657. SliderBackButton.Parent = SliderBackFrame
  658. SliderBackButton.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  659. SliderBackButton.BorderColor3 = Color3.fromRGB(13, 13, 13)
  660. SliderBackButton.Position = UDim2.new(0.0251046028, 0, 0.755102038, 0)
  661. SliderBackButton.Size = UDim2.new(0, 227, 0, 7)
  662. SliderBackButton.AutoButtonColor = false
  663. SliderBackButton.Font = Enum.Font.SourceSans
  664. SliderBackButton.Text = ""
  665. SliderBackButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  666. SliderBackButton.TextSize = 14.000
  667. SliderBackButton.ClipsDescendants = true
  668.  
  669. SliderHandle.Name = "SliderHandle"
  670. SliderHandle.Parent = SliderBackButton
  671. game:GetService("RunService").RenderStepped:Connect(function()
  672. SliderHandle.BackgroundColor3 = library.Color
  673. end)
  674. SliderHandle.BorderColor3 = Color3.fromRGB(13, 13, 13)
  675. SliderHandle.Size = UDim2.new(((default) - min) / (max - min), 0, 0, 7)
  676. SliderHandle.AutoButtonColor = false
  677. SliderHandle.Font = Enum.Font.SourceSans
  678. SliderHandle.Text = ""
  679. SliderHandle.TextColor3 = Color3.fromRGB(0, 0, 0)
  680. SliderHandle.TextSize = 14.000
  681.  
  682. SliderBackFrame.MouseEnter:Connect(function()
  683. game:GetService("TweenService"):Create(SliderTitle, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255, 255, 255)}):Play()
  684. end)
  685.  
  686. SliderBackFrame.MouseLeave:Connect(function()
  687. game:GetService("TweenService"):Create(SliderTitle, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(200, 200, 200)}):Play()
  688. end)
  689.  
  690. func(default)
  691.  
  692. local MouseDown = false
  693. local value = default
  694.  
  695. function map(x, in_min, in_max, out_min, out_max)
  696. return out_min + (x - in_min)*(out_max - out_min)/(in_max - in_min)
  697. end
  698.  
  699. SliderHandle.MouseButton1Down:Connect(function()
  700. MouseDown = true
  701. end)
  702.  
  703. SliderBackButton.MouseButton1Down:Connect(function()
  704. MouseDown = true
  705. end)
  706.  
  707. game:GetService("UserInputService").InputEnded:Connect(function(input)
  708. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  709. MouseDown = false
  710. end
  711. end)
  712.  
  713. game:GetService("RunService").RenderStepped:Connect(function()
  714. local UIStart = SliderBackButton.AbsolutePosition.X
  715. local UIEnd = SliderBackButton.AbsolutePosition.X + SliderBackButton.AbsoluteSize.X
  716. if MouseDown then
  717. local range = map(game:GetService("Players").LocalPlayer:GetMouse().X, UIStart, UIEnd, 0, 1)
  718. range = math.clamp(range, 0, 1)
  719. if not round then
  720. value = math.floor(map(range, 0, 1, min, max) * 100) / 100
  721. else
  722. value = math.floor(map(range, 0, 1, min, max))
  723. end
  724. SliderHandle:TweenSize(UDim2.new(range,0,0,7), Enum.EasingDirection.Out, Enum.EasingStyle.Sine, .2, true)
  725. SliderValue.Text = value
  726. func(value)
  727. end
  728. end)
  729.  
  730. function slider:SetValue(val)
  731. if val > max then
  732. SliderHandle.Size = UDim2.new(((max) - min) / (max - min), 0, 0, 7)
  733. value = max
  734. func(max)
  735. SliderValue.Text = max
  736. elseif val < max and val > min then
  737. SliderHandle.Size = UDim2.new(((val) - min) / (max - min), 0, 0, 7)
  738. value = val
  739. func(val)
  740. elseif val < min then
  741. SliderHandle.Size = UDim2.new(((min) - min) / (max - min), 0, 0, 7)
  742. value = min
  743. func(min)
  744. SliderValue.Text = min
  745. end
  746. end
  747.  
  748. local Change = false
  749. SliderValue.Focused:Connect(function()
  750. Change = true
  751. end)
  752.  
  753. SliderValue.FocusLost:Connect(function()
  754. Change = false
  755. end)
  756.  
  757. game:GetService("RunService").RenderStepped:Connect(function()
  758. if Change then
  759. slider:SetValue(tonumber(SliderValue.Text))
  760. end
  761. end)
  762.  
  763. return slider
  764. end
  765.  
  766. function section:CreateDropdown(title, options, default, func)
  767. local dropdown = {}
  768. title = title or "Dropdown"
  769. options = options or {}
  770. default = default or 1
  771. func = func or function() end
  772.  
  773. local Dropdown = Instance.new("TextButton")
  774. local DropdownTitle = Instance.new("TextLabel")
  775. local DropdownOptions = Instance.new("Frame")
  776. local UIListLayout_6 = Instance.new("UIListLayout")
  777. local UIPadding_5 = Instance.new("UIPadding")
  778. local DropdownToggle = Instance.new("ImageButton")
  779.  
  780. Dropdown.Name = "Dropdown"
  781. Dropdown.Parent = Section2
  782. Dropdown.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  783. Dropdown.BorderColor3 = Color3.fromRGB(13, 13, 13)
  784. Dropdown.Position = UDim2.new(0.0313725509, 0, 0.0286738351, 0)
  785. Dropdown.Size = UDim2.new(0, 239, 0, 25)
  786. Dropdown.AutoButtonColor = false
  787. Dropdown.Font = Enum.Font.SourceSans
  788. Dropdown.Text = ""
  789. Dropdown.TextColor3 = Color3.fromRGB(200, 200, 200)
  790. Dropdown.TextSize = 14.000
  791. Dropdown.TextStrokeTransparency = 0.000
  792.  
  793. DropdownTitle.Name = "DropdownTitle"
  794. DropdownTitle.Parent = Dropdown
  795. DropdownTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  796. DropdownTitle.BackgroundTransparency = 1.000
  797. DropdownTitle.BorderSizePixel = 0
  798. DropdownTitle.Position = UDim2.new(0.0251046028, 0, 0, 0)
  799. DropdownTitle.Size = UDim2.new(0, 233, 0, 25)
  800. DropdownTitle.Font = Enum.Font.SourceSans
  801. DropdownTitle.Text = title
  802. DropdownTitle.TextColor3 = Color3.fromRGB(200, 200, 200)
  803. DropdownTitle.TextSize = 14.000
  804. DropdownTitle.TextStrokeTransparency = 0.000
  805. DropdownTitle.TextXAlignment = Enum.TextXAlignment.Left
  806. DropdownTitle.ZIndex = 9
  807.  
  808. DropdownOptions.Name = "DropdownOptions"
  809. DropdownOptions.Parent = Dropdown
  810. DropdownOptions.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  811. DropdownOptions.BackgroundTransparency = 1.000
  812. DropdownOptions.BorderSizePixel = 0
  813. DropdownOptions.Position = UDim2.new(0, 0, 1, 0)
  814. DropdownOptions.Size = UDim2.new(0, 239, 0, 188)
  815. DropdownOptions.Visible = false
  816. DropdownOptions.ZIndex = 9
  817.  
  818. UIListLayout_6.Parent = DropdownOptions
  819. UIListLayout_6.SortOrder = Enum.SortOrder.LayoutOrder
  820.  
  821. UIPadding_5.Parent = DropdownOptions
  822. UIPadding_5.PaddingTop = UDim.new(0, 4)
  823.  
  824. DropdownToggle.Name = "DropdownToggle"
  825. DropdownToggle.Parent = Dropdown
  826. DropdownToggle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  827. DropdownToggle.BackgroundTransparency = 1.000
  828. DropdownToggle.Position = UDim2.new(0.907308936, 0, 0.156310678, 0)
  829. DropdownToggle.Rotation = 90.000
  830. DropdownToggle.Size = UDim2.new(0, 17, 0, 17)
  831. DropdownToggle.AutoButtonColor = false
  832. DropdownToggle.Image = "rbxassetid://5238501683"
  833. game:GetService("RunService").RenderStepped:Connect(function()
  834. DropdownToggle.ImageColor3 = library.Color
  835. end)
  836. DropdownToggle.ZIndex = 9
  837.  
  838. DropdownToggle.MouseButton1Down:Connect(function()
  839. if DropdownOptions.Visible then
  840. DropdownOptions.Visible = false
  841. Dropdown.ZIndex = 9
  842. game:GetService("TweenService"):Create(DropdownToggle, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Rotation = 0}):Play()
  843. else
  844. Dropdown.ZIndex = 2
  845. DropdownOptions.Visible = true
  846. game:GetService("TweenService"):Create(DropdownToggle, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Rotation = 90}):Play()
  847. end
  848. end)
  849.  
  850. Dropdown.MouseButton1Down:Connect(function()
  851. if DropdownOptions.Visible then
  852. DropdownOptions.Visible = false
  853. game:GetService("TweenService"):Create(DropdownToggle, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Rotation = 0}):Play()
  854. Dropdown.ZIndex = 9
  855. else Dropdown.ZIndex = 2
  856. DropdownOptions.Visible = true
  857. game:GetService("TweenService"):Create(DropdownToggle, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Rotation = 90}):Play()
  858. end
  859. end)
  860.  
  861. Dropdown.MouseEnter:Connect(function()
  862. game:GetService("TweenService"):Create(DropdownTitle, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255, 255, 255)}):Play()
  863. end)
  864.  
  865. Dropdown.MouseLeave:Connect(function()
  866. game:GetService("TweenService"):Create(DropdownTitle, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(200, 200, 200)}):Play()
  867. end)
  868.  
  869. local selected
  870.  
  871. for i, v in pairs(options) do
  872. local Option = Instance.new("TextButton")
  873. local OptionTitle = Instance.new("TextLabel")
  874. local OptionToggle = Instance.new("TextButton")
  875.  
  876. Option.Name = "Option"
  877. Option.Parent = DropdownOptions
  878. Option.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  879. Option.BorderColor3 = Color3.fromRGB(13, 13, 13)
  880. Option.Position = UDim2.new(0.0313725509, 0, 0.0286738351, 0)
  881. Option.Size = UDim2.new(0, 239, 0, 25)
  882. Option.AutoButtonColor = false
  883. Option.Font = Enum.Font.SourceSans
  884. Option.Text = ""
  885. Option.TextColor3 = Color3.fromRGB(200, 200, 200)
  886. Option.TextSize = 14.000
  887. Option.TextStrokeTransparency = 0.000
  888. Option.ZIndex = 9
  889.  
  890. OptionTitle.Name = "OptionTitle"
  891. OptionTitle.Parent = Option
  892. OptionTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  893. OptionTitle.BackgroundTransparency = 1.000
  894. OptionTitle.BorderSizePixel = 0
  895. OptionTitle.Position = UDim2.new(0.0251046028, 0, 0, 0)
  896. OptionTitle.Size = UDim2.new(0, 233, 0, 25)
  897. OptionTitle.Font = Enum.Font.SourceSans
  898. OptionTitle.Text = v
  899. OptionTitle.TextColor3 = Color3.fromRGB(200, 200, 200)
  900. OptionTitle.TextSize = 14.000
  901. OptionTitle.TextStrokeTransparency = 0.000
  902. OptionTitle.TextXAlignment = Enum.TextXAlignment.Left
  903. OptionTitle.ZIndex = 9
  904.  
  905. OptionToggle.Name = "OptionToggle"
  906. OptionToggle.Parent = Option
  907. OptionToggle.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  908. OptionToggle.BorderColor3 = Color3.fromRGB(13, 13, 13)
  909. OptionToggle.Position = UDim2.new(0.907949805, 0, 0.159999996, 0)
  910. OptionToggle.Size = UDim2.new(0, 16, 0, 16)
  911. OptionToggle.AutoButtonColor = false
  912. OptionToggle.Font = Enum.Font.SourceSans
  913. OptionToggle.ZIndex = 9
  914. if default == i then
  915. selected = v
  916. OptionToggle.TextTransparency = 0
  917. else
  918. OptionToggle.TextTransparency = 1
  919. end
  920. OptionToggle.Text = utf8.char(10003)
  921. OptionToggle.TextColor3 = Color3.fromRGB(255, 255, 255)
  922. OptionToggle.TextSize = 14.000
  923. OptionToggle.TextYAlignment = Enum.TextYAlignment.Top
  924.  
  925. Option.MouseEnter:Connect(function()
  926. game:GetService("TweenService"):Create(OptionTitle, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255, 255, 255)}):Play()
  927. end)
  928.  
  929. Option.MouseLeave:Connect(function()
  930. game:GetService("TweenService"):Create(OptionTitle, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(200, 200, 200)}):Play()
  931. end)
  932.  
  933. Option.MouseButton1Down:Connect(function()
  934. if selected ~= v then
  935. selected = v
  936. game:GetService("TweenService"):Create(OptionToggle, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextTransparency = 0}):Play()
  937. for i, v in pairs(DropdownOptions:GetChildren()) do
  938. if v ~= Option and v:IsA("TextButton") then
  939. game:GetService("TweenService"):Create(v.OptionToggle, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextTransparency = 1}):Play()
  940. end
  941. end
  942. func(v)
  943. end
  944. end)
  945.  
  946. OptionToggle.MouseButton1Down:Connect(function()
  947. if selected ~= v then
  948. selected = v
  949. game:GetService("TweenService"):Create(OptionToggle, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextTransparency = 0}):Play()
  950. for i, v in pairs(DropdownOptions:GetChildren()) do
  951. if v ~= Option and v:IsA("TextButton") then
  952. game:GetService("TweenService"):Create(v.OptionToggle, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextTransparency = 1}):Play()
  953. end
  954. end
  955. func(v)
  956. end
  957. end)
  958. end
  959.  
  960. function dropdown:Refresh(options)
  961. for i, v in pairs(DropdownOptions:GetChildren()) do
  962. if v:IsA("TextButton") then
  963. v:Destroy()
  964. end
  965. end
  966.  
  967. for i, v in pairs(options) do
  968. local Option = Instance.new("TextButton")
  969. local OptionTitle = Instance.new("TextLabel")
  970. local OptionToggle = Instance.new("TextButton")
  971.  
  972. Option.Name = "Option"
  973. Option.Parent = DropdownOptions
  974. Option.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  975. Option.BorderColor3 = Color3.fromRGB(13, 13, 13)
  976. Option.Position = UDim2.new(0.0313725509, 0, 0.0286738351, 0)
  977. Option.Size = UDim2.new(0, 239, 0, 25)
  978. Option.AutoButtonColor = false
  979. Option.Font = Enum.Font.SourceSans
  980. Option.Text = ""
  981. Option.TextColor3 = Color3.fromRGB(200, 200, 200)
  982. Option.TextSize = 14.000
  983. Option.TextStrokeTransparency = 0.000
  984. Option.ZIndex = 9
  985.  
  986. OptionTitle.Name = "OptionTitle"
  987. OptionTitle.Parent = Option
  988. OptionTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  989. OptionTitle.BackgroundTransparency = 1.000
  990. OptionTitle.BorderSizePixel = 0
  991. OptionTitle.Position = UDim2.new(0.0251046028, 0, 0, 0)
  992. OptionTitle.Size = UDim2.new(0, 233, 0, 25)
  993. OptionTitle.Font = Enum.Font.SourceSans
  994. OptionTitle.Text = v
  995. OptionTitle.TextColor3 = Color3.fromRGB(200, 200, 200)
  996. OptionTitle.TextSize = 14.000
  997. OptionTitle.TextStrokeTransparency = 0.000
  998. OptionTitle.TextXAlignment = Enum.TextXAlignment.Left
  999. OptionTitle.ZIndex = 9
  1000.  
  1001. OptionToggle.Name = "OptionToggle"
  1002. OptionToggle.Parent = Option
  1003. OptionToggle.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  1004. OptionToggle.BorderColor3 = Color3.fromRGB(13, 13, 13)
  1005. OptionToggle.Position = UDim2.new(0.907949805, 0, 0.159999996, 0)
  1006. OptionToggle.Size = UDim2.new(0, 16, 0, 16)
  1007. OptionToggle.AutoButtonColor = false
  1008. OptionToggle.Font = Enum.Font.SourceSans
  1009. OptionToggle.ZIndex = 9
  1010. if default == i then
  1011. selected = v
  1012. OptionToggle.TextTransparency = 0
  1013. else
  1014. OptionToggle.TextTransparency = 1
  1015. end
  1016. OptionToggle.Text = utf8.char(10003)
  1017. OptionToggle.TextColor3 = Color3.fromRGB(255, 255, 255)
  1018. OptionToggle.TextSize = 14.000
  1019. OptionToggle.TextYAlignment = Enum.TextYAlignment.Top
  1020.  
  1021. Option.MouseEnter:Connect(function()
  1022. game:GetService("TweenService"):Create(OptionTitle, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255, 255, 255)}):Play()
  1023. end)
  1024.  
  1025. Option.MouseLeave:Connect(function()
  1026. game:GetService("TweenService"):Create(OptionTitle, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(200, 200, 200)}):Play()
  1027. end)
  1028.  
  1029. Option.MouseButton1Down:Connect(function()
  1030. if selected ~= v then
  1031. selected = v
  1032. game:GetService("TweenService"):Create(OptionToggle, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextTransparency = 0}):Play()
  1033. for i, v in pairs(DropdownOptions:GetChildren()) do
  1034. if v ~= Option and v:IsA("TextButton") then
  1035. game:GetService("TweenService"):Create(v.OptionToggle, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextTransparency = 1}):Play()
  1036. end
  1037. end
  1038. func(v)
  1039. end
  1040. end)
  1041.  
  1042. OptionToggle.MouseButton1Down:Connect(function()
  1043. if selected ~= v then
  1044. selected = v
  1045. game:GetService("TweenService"):Create(OptionToggle, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextTransparency = 0}):Play()
  1046. for i, v in pairs(DropdownOptions:GetChildren()) do
  1047. if v ~= Option and v:IsA("TextButton") then
  1048. game:GetService("TweenService"):Create(v.OptionToggle, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextTransparency = 1}):Play()
  1049. end
  1050. end
  1051. func(v)
  1052. end
  1053. end)
  1054. end
  1055. end
  1056.  
  1057. return dropdown
  1058. end
  1059.  
  1060. function section:CreateColorPicker(title, default, func)
  1061. local colorpicker = {}
  1062. title = title or "Color Picker"
  1063. default = default or Color3.new(1, 0, 0)
  1064. func = func or function()end
  1065.  
  1066. local ColorPickerButton = Instance.new("TextButton")
  1067. local ColorPickerTitle = Instance.new("TextLabel")
  1068. local ColorPickerFrame = Instance.new("Frame")
  1069. local UIListLayout_4 = Instance.new("UIListLayout")
  1070. local UIPadding_3 = Instance.new("UIPadding")
  1071. local COlorPickerInside = Instance.new("Frame")
  1072. local Colora = Instance.new("Frame")
  1073. local ColorPick = Instance.new("ImageButton")
  1074. local ColorHandle = Instance.new("ImageButton")
  1075. local Hue = Instance.new("ImageButton")
  1076. local HuehNadle = Instance.new("ImageButton")
  1077. local R = Instance.new("TextBox")
  1078. local G = Instance.new("TextBox")
  1079. local Ba = Instance.new("TextBox")
  1080. local Rainbow = Instance.new("TextButton")
  1081. local Full = Instance.new("TextBox")
  1082. local ColorPickerToggle = Instance.new("ImageButton")
  1083.  
  1084. ColorPickerButton.Name = "ColorPickerButton"
  1085. ColorPickerButton.Parent = Section2
  1086. ColorPickerButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  1087. ColorPickerButton.BorderColor3 = Color3.fromRGB(13, 13, 13)
  1088. ColorPickerButton.Position = UDim2.new(0.0313725509, 0, 0.0286738351, 0)
  1089. ColorPickerButton.Size = UDim2.new(0, 239, 0, 25)
  1090. ColorPickerButton.AutoButtonColor = false
  1091. ColorPickerButton.Font = Enum.Font.SourceSans
  1092. ColorPickerButton.Text = ""
  1093. ColorPickerButton.TextColor3 = Color3.fromRGB(200, 200, 200)
  1094. ColorPickerButton.TextSize = 14.000
  1095. ColorPickerButton.TextStrokeTransparency = 0.000
  1096. ColorPickerButton.ZIndex = 2
  1097.  
  1098. ColorPickerTitle.Name = "ColorPickerTitle"
  1099. ColorPickerTitle.Parent = ColorPickerButton
  1100. ColorPickerTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1101. ColorPickerTitle.BackgroundTransparency = 1.000
  1102. ColorPickerTitle.BorderSizePixel = 0
  1103. ColorPickerTitle.Position = UDim2.new(0.0251046028, 0, 0, 0)
  1104. ColorPickerTitle.Size = UDim2.new(0, 233, 0, 25)
  1105. ColorPickerTitle.Font = Enum.Font.SourceSans
  1106. ColorPickerTitle.Text = title
  1107. ColorPickerTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  1108. ColorPickerTitle.TextSize = 14.000
  1109. ColorPickerTitle.TextStrokeTransparency = 0.000
  1110. ColorPickerTitle.TextXAlignment = Enum.TextXAlignment.Left
  1111. ColorPickerTitle.ZIndex = 9
  1112.  
  1113. ColorPickerFrame.Name = "ColorPickerFrame"
  1114. ColorPickerFrame.Parent = ColorPickerButton
  1115. ColorPickerFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1116. ColorPickerFrame.BackgroundTransparency = 1.000
  1117. ColorPickerFrame.BorderSizePixel = 0
  1118. ColorPickerFrame.Position = UDim2.new(0, 0, 1, 0)
  1119. ColorPickerFrame.Size = UDim2.new(0, 239, 0, 130)
  1120. ColorPickerFrame.Visible = false
  1121. ColorPickerFrame.ZIndex = 9
  1122.  
  1123. UIListLayout_4.Parent = ColorPickerFrame
  1124. UIListLayout_4.SortOrder = Enum.SortOrder.LayoutOrder
  1125.  
  1126. UIPadding_3.Parent = ColorPickerFrame
  1127. UIPadding_3.PaddingTop = UDim.new(0, 4)
  1128.  
  1129. COlorPickerInside.Name = "COlorPickerInside"
  1130. COlorPickerInside.Parent = ColorPickerFrame
  1131. COlorPickerInside.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  1132. COlorPickerInside.BorderColor3 = Color3.fromRGB(13, 13, 13)
  1133. COlorPickerInside.Position = UDim2.new(0, 0, -0.0159574468, 0)
  1134. COlorPickerInside.Size = UDim2.new(0, 239, 0, 125)
  1135. COlorPickerInside.ZIndex = 9
  1136.  
  1137. Colora.Name = "Color"
  1138. Colora.Parent = COlorPickerInside
  1139. Colora.BackgroundColor3 = default
  1140. Colora.BorderSizePixel = 0
  1141. Colora.Position = UDim2.new(0.0251046028, 0, 0.0320000015, 0)
  1142. Colora.Size = UDim2.new(0, 117, 0, 117)
  1143. Colora.ZIndex = 9
  1144.  
  1145. ColorPick.Name = "ColorPick"
  1146. ColorPick.Parent = Colora
  1147. ColorPick.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1148. ColorPick.BackgroundTransparency = 1.000
  1149. ColorPick.Size = UDim2.new(0, 117, 0, 117)
  1150. ColorPick.AutoButtonColor = false
  1151. ColorPick.Image = "rbxassetid://4805274903"
  1152. ColorPick.ZIndex = 9
  1153.  
  1154. ColorHandle.Name = "ColorHandle"
  1155. ColorHandle.Parent = ColorPick
  1156. ColorHandle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1157. ColorHandle.BackgroundTransparency = 1.000
  1158. ColorHandle.Position = UDim2.new(0.888888896, 0, -0.00854700897, 0)
  1159. ColorHandle.Size = UDim2.new(0, 13, 0, 13)
  1160. ColorHandle.AutoButtonColor = false
  1161. ColorHandle.Image = "http://www.roblox.com/asset/?id=4953646208"
  1162. ColorHandle.ZIndex = 9
  1163.  
  1164. Hue.Name = "Hue"
  1165. Hue.Parent = COlorPickerInside
  1166. Hue.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1167. Hue.BackgroundTransparency = 1.000
  1168. Hue.BorderSizePixel = 0
  1169. Hue.Position = UDim2.new(0.552301228, 0, 0.0320000015, 0)
  1170. Hue.Size = UDim2.new(0, 12, 0, 117)
  1171. Hue.AutoButtonColor = false
  1172. Hue.Image = "rbxassetid://4650897105"
  1173.  
  1174. HuehNadle.Name = "HuehNadle"
  1175. HuehNadle.Parent = Hue
  1176. HuehNadle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1177. HuehNadle.BackgroundTransparency = 1.000
  1178. HuehNadle.Position = UDim2.new(0, 0, 0.504273534, 0)
  1179. HuehNadle.Size = UDim2.new(0, 12, 0, 12)
  1180. HuehNadle.AutoButtonColor = false
  1181. HuehNadle.Image = "http://www.roblox.com/asset/?id=4953646208"
  1182.  
  1183. R.Name = "R"
  1184. R.Parent = COlorPickerInside
  1185. R.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  1186. R.BorderColor3 = Color3.fromRGB(13, 13, 13)
  1187. R.Position = UDim2.new(0.627615035, 0, 0.0416325703, 0)
  1188. R.Size = UDim2.new(0, 82, 0, 16)
  1189. R.ClearTextOnFocus = false
  1190. R.Font = Enum.Font.SourceSans
  1191. R.Text = default.R
  1192. R.TextColor3 = Color3.fromRGB(255, 0, 0)
  1193. R.TextSize = 14.000
  1194.  
  1195. G.Name = "G"
  1196. G.Parent = COlorPickerInside
  1197. G.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  1198. G.BorderColor3 = Color3.fromRGB(13, 13, 13)
  1199. G.Position = UDim2.new(0.627615035, 0, 0.233632565, 0)
  1200. G.Size = UDim2.new(0, 82, 0, 16)
  1201. G.ClearTextOnFocus = false
  1202. G.Font = Enum.Font.SourceSans
  1203. G.Text = default.G
  1204. G.TextColor3 = Color3.fromRGB(0, 255, 0)
  1205. G.TextSize = 14.000
  1206.  
  1207. Ba.Name = "B"
  1208. Ba.Parent = COlorPickerInside
  1209. Ba.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  1210. Ba.BorderColor3 = Color3.fromRGB(13, 13, 13)
  1211. Ba.Position = UDim2.new(0.627615035, 0, 0.433632553, 0)
  1212. Ba.Size = UDim2.new(0, 82, 0, 16)
  1213. Ba.ClearTextOnFocus = false
  1214. Ba.Font = Enum.Font.SourceSans
  1215. Ba.Text = default.B
  1216. Ba.TextColor3 = Color3.fromRGB(0, 0, 255)
  1217. Ba.TextSize = 14.000
  1218.  
  1219. Rainbow.Name = "Rainbow"
  1220. Rainbow.Parent = COlorPickerInside
  1221. Rainbow.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  1222. Rainbow.BorderColor3 = Color3.fromRGB(13, 13, 13)
  1223. Rainbow.Position = UDim2.new(0.627615035, 0, 0.808000028, 0)
  1224. Rainbow.Size = UDim2.new(0, 82, 0, 20)
  1225. Rainbow.AutoButtonColor = false
  1226. Rainbow.Font = Enum.Font.SourceSans
  1227. Rainbow.Text = "Rainbow"
  1228. Rainbow.TextColor3 = Color3.fromRGB(200, 200, 200)
  1229. Rainbow.TextSize = 14.000
  1230.  
  1231. Full.Name = "Full"
  1232. Full.Parent = COlorPickerInside
  1233. Full.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  1234. Full.BorderColor3 = Color3.fromRGB(13, 13, 13)
  1235. Full.Position = UDim2.new(0.627615035, 0, 0.634000003, 0)
  1236. Full.Size = UDim2.new(0, 82, 0, 16)
  1237. Full.ClearTextOnFocus = false
  1238. Full.Font = Enum.Font.SourceSans
  1239. Full.Text = tostring(default)
  1240. Full.TextColor3 = Color3.fromRGB(200, 200, 200)
  1241. Full.TextSize = 14.000
  1242.  
  1243. ColorPickerToggle.Name = "ColorPickerToggle"
  1244. ColorPickerToggle.Parent = ColorPickerButton
  1245. ColorPickerToggle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1246. ColorPickerToggle.BackgroundTransparency = 1.000
  1247. ColorPickerToggle.Position = UDim2.new(0.907308936, 0, 0.156310678, 0)
  1248. ColorPickerToggle.Rotation = 90.000
  1249. ColorPickerToggle.Size = UDim2.new(0, 17, 0, 17)
  1250. ColorPickerToggle.AutoButtonColor = false
  1251. ColorPickerToggle.Image = "rbxassetid://5238501683"
  1252. game:GetService("RunService").RenderStepped:Connect(function()
  1253. ColorPickerToggle.ImageColor3 = library.Color
  1254. end)
  1255.  
  1256. local RAINBOWING = false
  1257.  
  1258. ColorPickerButton.MouseButton1Down:Connect(function()
  1259. if ColorPickerFrame.Visible then
  1260. ColorPickerButton.ZIndex = 2
  1261. ColorPickerFrame.Visible = false
  1262. game:GetService("TweenService"):Create(ColorPickerToggle, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Rotation = 0}):Play()
  1263. else
  1264. ColorPickerButton.ZIndex = 9
  1265. ColorPickerFrame.Visible = true
  1266. for i, v in pairs(Section2:GetChildren()) do
  1267. if v.Name == "ColorPickerButton" and v ~= ColorPickerButton then
  1268. v.ColorPickerFrame.Visible = false
  1269. v.ZIndex = 2
  1270. game:GetService("TweenService"):Create(v.ColorPickerToggle, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Rotation = 0}):Play()
  1271. end
  1272. end
  1273. game:GetService("TweenService"):Create(ColorPickerToggle, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Rotation = 90}):Play()
  1274. end
  1275. end)
  1276.  
  1277. Rainbow.MouseEnter:Connect(function()
  1278. game:GetService("TweenService"):Create(Rainbow, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255, 255, 255)}):Play()
  1279. end)
  1280.  
  1281. Rainbow.MouseLeave:Connect(function()
  1282. game:GetService("TweenService"):Create(Rainbow, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(200, 200, 200)}):Play()
  1283. end)
  1284.  
  1285. Rainbow.MouseButton1Down:Connect(function()
  1286. RAINBOWING = true
  1287. spawn(function()
  1288. while RAINBOWING do
  1289. Colora.BackgroundColor3 = Color3.fromHSV(ColorCounterRainbow, 1, 1)
  1290.  
  1291. HuehNadle.Position = UDim2.new(0, 0, 0, ColorPickerHuePosition)
  1292. ColorHandle.Position = UDim2.new(0, 102, 0, 0)
  1293.  
  1294. func(Colora.BackgroundColor3)
  1295. wait()
  1296. end
  1297. end)
  1298. end)
  1299.  
  1300. ColorPickerButton.MouseEnter:Connect(function()
  1301. game:GetService("TweenService"):Create(ColorPickerTitle, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255, 255, 255)}):Play()
  1302. end)
  1303.  
  1304. ColorPickerButton.MouseLeave:Connect(function()
  1305. game:GetService("TweenService"):Create(ColorPickerTitle, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(200, 200, 200)}):Play()
  1306. end)
  1307.  
  1308. local MouseDown = false
  1309.  
  1310. local function map(x, in_min, in_max, out_min, out_max)
  1311. return out_min + (x - in_min)*(out_max - out_min)/(in_max - in_min)
  1312. end
  1313.  
  1314. local H, S, B = Color3.toHSV(default)
  1315.  
  1316. local function updateColor()
  1317. local Color = Color3.fromHSV(H,S,B)
  1318. Full.Text = tostring(math.floor(Color.r * 255))..", "..tostring(math.floor(Color.g * 255))..", "..tostring(math.floor(Color.b * 255))
  1319. R.Text = tostring(math.floor(Color.r * 255))
  1320. G.Text = tostring(math.floor(Color.g * 255))
  1321. Ba.Text = tostring(math.floor(Color.b * 255))
  1322. Colora.BackgroundColor3 = Color3.fromHSV(H, 1, 1)
  1323. func(Color)
  1324. end
  1325.  
  1326. local UserInputService = game:GetService("UserInputService")
  1327. local Mouse = game:GetService("Players").LocalPlayer:GetMouse()
  1328. local RunService = game:GetService("RunService")
  1329. ColorPick.MouseEnter:connect(function()
  1330. local input = ColorPick.InputBegan:connect(function(key)
  1331. if key.UserInputType == Enum.UserInputType.MouseButton1 then
  1332. while wait() and UserInputService:IsMouseButtonPressed(Enum.UserInputType.MouseButton1) do
  1333. RAINBOWING = false
  1334. local objectPosition = Vector2.new(Mouse.X - ColorPick.AbsolutePosition.X, Mouse.Y - ColorPick.AbsolutePosition.Y);
  1335. local XRange = math.clamp(map(objectPosition.X, 0, 102, 0, 1), 0, 1)
  1336. local YRange = math.clamp(map(objectPosition.Y, 0, 102, 0, 1), 0, 1)
  1337. S = XRange
  1338. B = 1-YRange
  1339. ColorHandle:TweenPosition(UDim2.new(0, XRange*102, 0, YRange*102), Enum.EasingDirection.Out, Enum.EasingStyle.Sine, 0.1, true);
  1340. updateColor()
  1341. end
  1342. end
  1343. end)
  1344.  
  1345. local leave;
  1346. leave = ColorPick.MouseLeave:connect(function()
  1347. input:disconnect();
  1348. leave:disconnect();
  1349. end)
  1350. end)
  1351.  
  1352. Hue.InputBegan:connect(function(input)
  1353. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1354. RAINBOWING = false
  1355. MouseDown = true
  1356. end
  1357. end)
  1358.  
  1359. UserInputService.InputEnded:Connect(function(input)
  1360. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1361. MouseDown = false
  1362. end
  1363. end)
  1364.  
  1365. Mouse.Move:connect(function()
  1366. if MouseDown then
  1367. local range = math.clamp(map(Mouse.Y, Hue.AbsolutePosition.Y, Hue.AbsolutePosition.Y + Hue.AbsoluteSize.Y, 0, 1), 0, 1)
  1368. HuehNadle:TweenPosition(UDim2.new(0, 0, 0, range*102), Enum.EasingDirection.Out, Enum.EasingStyle.Sine, 0.1, true);
  1369. H = range
  1370. updateColor()
  1371. end
  1372. end)
  1373.  
  1374. RunService.RenderStepped:Connect(function()
  1375. if MouseDown then
  1376. local range = math.clamp(map(Mouse.Y, Hue.AbsolutePosition.Y, Hue.AbsolutePosition.Y + Hue.AbsoluteSize.Y, 0, 1), 0, 1)
  1377. HuehNadle:TweenPosition(UDim2.new(0, 0, 0, range*102), Enum.EasingDirection.Out, Enum.EasingStyle.Sine, 0.1, true);
  1378. H = range
  1379. updateColor()
  1380. end
  1381. end)
  1382.  
  1383. local Change = false
  1384. Full.Focused:Connect(function()
  1385. RAINBOWING = false
  1386. Change = true
  1387. end)
  1388.  
  1389. Full.FocusLost:Connect(function()
  1390. Change = false
  1391. end)
  1392.  
  1393. game:GetService("RunService").RenderStepped:Connect(function()
  1394. if Change then
  1395. local Ra = math.floor(tonumber(Full.Text:split(",")[1]))
  1396. local Ga = math.floor(tonumber(Full.Text:split(",")[2]))
  1397. local Bb = math.floor(tonumber(Full.Text:split(",")[3]))
  1398. R.Text = Ra
  1399. G.Text = Ga
  1400. Ba.Text = Bb
  1401. Colora.BackgroundColor3 = Color3.new(Ra, Ga, Bb)
  1402. end
  1403. end)
  1404.  
  1405. local Change2 = false
  1406. R.Focused:Connect(function()
  1407. RAINBOWING = false
  1408. Change2 = true
  1409. end)
  1410.  
  1411. R.FocusLost:Connect(function()
  1412. Change2 = false
  1413. end)
  1414.  
  1415. game:GetService("RunService").RenderStepped:Connect(function()
  1416. if Change2 then
  1417. local Ra = tonumber(R.Text)
  1418. Colora.BackgroundColor3 = Color3.new(Ra, Colora.BackgroundColor3.G, Colora.BackgroundColor3.B)
  1419. end
  1420. end)
  1421.  
  1422. local Change3 = false
  1423. G.Focused:Connect(function()
  1424. RAINBOWING = false
  1425. Change3 = true
  1426. end)
  1427.  
  1428. G.FocusLost:Connect(function()
  1429. Change3 = false
  1430. end)
  1431.  
  1432. game:GetService("RunService").RenderStepped:Connect(function()
  1433. if Change3 then
  1434. local Ga = tonumber(G.Text)
  1435. Colora.BackgroundColor3 = Color3.new(Colora.BackgroundColor3.R, Ga, Colora.BackgroundColor3.B)
  1436. end
  1437. end)
  1438.  
  1439. local Change4 = false
  1440. Ba.Focused:Connect(function()
  1441. RAINBOWING = false
  1442. Change4 = true
  1443. end)
  1444.  
  1445. Ba.FocusLost:Connect(function()
  1446. Change4 = false
  1447. end)
  1448.  
  1449. game:GetService("RunService").RenderStepped:Connect(function()
  1450. if Change4 then
  1451. local BB = tonumber(Ba.Text)
  1452. Colora.BackgroundColor3 = Color3.new(Colora.BackgroundColor3.R, Colora.BackgroundColor3.B, BB)
  1453. end
  1454. end)
  1455.  
  1456. return colorpicker
  1457. end
  1458.  
  1459. return section
  1460. end
  1461.  
  1462. return tab
  1463. end
  1464.  
  1465. --MainGUIHolder.ClipsDescendants = false
  1466.  
  1467. CloseButton.MouseButton1Down:Connect(function()
  1468. if MainGUIHolder.Size ~= UDim2.new(0, TabsHolder.Size.X.Offset + Title.Size.X.Offset, 0, TabsHolder.Size.Y.Offset) then
  1469. for i, v in pairs(MainGUIHolder:GetChildren()) do
  1470. if v.Name == "SectionStuffHolder" then
  1471. for k, x in pairs(v:GetChildren()) do
  1472. if x.Name == "Sec" then
  1473. for o, w in pairs(x:GetDescendants()) do
  1474. if w:IsA("Frame") and w.Name ~= "ColorPickerFrame" and w.Name ~= "DropdownOptions" then
  1475. game:GetService("TweenService"):Create(w, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {BackgroundTransparency = 1}):Play()
  1476. elseif w:IsA("TextLabel") and w.Name ~= "SecT" then
  1477. game:GetService("TweenService"):Create(w, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextTransparency = 1}):Play()
  1478. elseif (w:IsA("TextButton") or w:IsA("TextBox")) and (w.Name ~= "ToggleToggle" and w.Name ~= "OptionToggle") then
  1479. game:GetService("TweenService"):Create(w, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextTransparency = 1}):Play()
  1480. game:GetService("TweenService"):Create(w, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextStrokeTransparency = 1}):Play()
  1481. game:GetService("TweenService"):Create(w, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {BackgroundTransparency = 1}):Play()
  1482. elseif w:IsA("ImageButton") then
  1483. game:GetService("TweenService"):Create(w, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {ImageTransparency = 1}):Play()
  1484. elseif w.Name == "SecT" then
  1485. game:GetService("TweenService"):Create(w, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextTransparency = 1}):Play()
  1486. game:GetService("TweenService"):Create(w, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {BackgroundTransparency = 1}):Play()
  1487. elseif w.Name == "ToggleToggle" or w.Name == "OptionToggle" then
  1488. game:GetService("TweenService"):Create(w, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {BackgroundTransparency = 1}):Play()
  1489. end
  1490. game:GetService("TweenService"):Create(x.Section2, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {BackgroundTransparency = 1}):Play()
  1491. end
  1492. end
  1493. end
  1494. end
  1495. end
  1496. wait(0.3)
  1497. game:GetService("TweenService"):Create(CloseButton, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Position = CloseButton.Position - UDim2.new(0, 0, 0, 15)}):Play()
  1498. game:GetService("TweenService"):Create(MainGUIHolder, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Size = UDim2.new(0, TabsHolder.Size.X.Offset + Title.Size.X.Offset, 0, TabsHolder.Size.Y.Offset)}):Play()
  1499. else
  1500. game:GetService("TweenService"):Create(CloseButton, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Position = CloseButton.Position + UDim2.new(0, 0, 0, 15)}):Play()
  1501. game:GetService("TweenService"):Create(MainGUIHolder, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Size = UDim2.new(0, 568, 0, 412)}):Play()
  1502. wait(0.4)
  1503. for i, v in pairs(MainGUIHolder:GetChildren()) do
  1504. if v.Name == "SectionStuffHolder" then
  1505. for k, x in pairs(v:GetChildren()) do
  1506. if x.Name == "Sec" then
  1507. for o, w in pairs(x:GetDescendants()) do
  1508. if w:IsA("Frame") and w.Name ~= "ColorPickerFrame" and w.Name ~= "DropdownOptions" then
  1509. game:GetService("TweenService"):Create(w, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {BackgroundTransparency = 0}):Play()
  1510. elseif w:IsA("TextLabel") and w.Name ~= "SecT" then
  1511. game:GetService("TweenService"):Create(w, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextTransparency = 0}):Play()
  1512. elseif (w:IsA("TextButton") or w:IsA("TextBox")) and (w.Name ~= "ToggleToggle" and w.Name ~= "OptionToggle") then
  1513. game:GetService("TweenService"):Create(w, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextTransparency = 0}):Play()
  1514. game:GetService("TweenService"):Create(w, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {BackgroundTransparency = 0}):Play()
  1515. game:GetService("TweenService"):Create(w, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextStrokeTransparency = 0}):Play()
  1516. elseif w:IsA("ImageButton") then
  1517. game:GetService("TweenService"):Create(w, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {ImageTransparency = 0}):Play()
  1518. elseif w.Name == "SecT" then
  1519. game:GetService("TweenService"):Create(w, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextTransparency = 0}):Play()
  1520. game:GetService("TweenService"):Create(w, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {BackgroundTransparency = 0}):Play()
  1521. elseif w.Name == "ToggleToggle" or w.Name == "OptionToggle" then
  1522. game:GetService("TweenService"):Create(w, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {BackgroundTransparency = 0}):Play()
  1523. end
  1524. game:GetService("TweenService"):Create(x.Section2, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {BackgroundTransparency = 0}):Play()
  1525. end
  1526. end
  1527. end
  1528. end
  1529. end
  1530. end
  1531. end)
  1532. --[==[
  1533. --[[local Min = 45
  1534. local Max = 345
  1535.  
  1536. CloseButton.Changed:connect(function()
  1537. if CloseButton.Position.X.Offset < Min and CloseButton.Position.Y.Offset < Min then
  1538. CloseButton.Position = UDim2.new(0, Min, 0, Min)
  1539. elseif CloseButton.Position.X.Offset < Min then
  1540. CloseButton.Position = UDim2.new(0, Min, 0, CloseButton.Position.Y.Offset)
  1541. elseif CloseButton.Position.Y.Offset < Min then
  1542. CloseButton.Position = UDim2.new(0, CloseButton.Position.X.Offset, 0, Min)
  1543. end
  1544. if CloseButton.Position.X.Offset > Max and CloseButton.Position.Y.Offset > Max then
  1545. CloseButton.Position = UDim2.new(0, Max, 0, Max)
  1546. elseif CloseButton.Position.X.Offset > Max then
  1547. CloseButton.Position = UDim2.new(0, Max, 0, CloseButton.Position.Y.Offset)
  1548. elseif CloseButton.Position.Y.Offset > Max then
  1549. CloseButton.Position = UDim2.new(0, CloseButton.Position.X.Offset, 0, Max)
  1550. end
  1551. end)]]
  1552.  
  1553. local mouse = game.Players.LocalPlayer:GetMouse()
  1554. local Pressing = false
  1555.  
  1556. local RecordedLastX = nil
  1557. local RecordedLastY = nil
  1558.  
  1559. local NowPositionX = nil
  1560. local NowPositionY = nil
  1561.  
  1562. CloseButton.InputBegan:connect(function(key)
  1563. if key.UserInputType == Enum.UserInputType.MouseButton1 then
  1564. Pressing = true
  1565. RecordedLastX = mouse.X
  1566. RecordedLastY = mouse.Y
  1567. CloseButton.InputEnded:connect(function(key2)
  1568. if key == key2 then
  1569. Pressing = false
  1570. end
  1571. end)
  1572. end
  1573. end)
  1574.  
  1575. mouse.Move:connect(function()
  1576. if Pressing == true then
  1577. NowPositionX = mouse.x
  1578. NowPositionY = mouse.y
  1579.  
  1580. local ChangeX = NowPositionX - RecordedLastX
  1581. local ChangeY = NowPositionY - RecordedLastY
  1582.  
  1583. RecordedLastX = mouse.X
  1584. RecordedLastY = mouse.Y
  1585.  
  1586. --[[for i, v in pairs(MainGUIHolder:GetChildren()) do
  1587. if v.Name == "SectionStuffHolder" then
  1588. for k, x in pairs(v:GetChildren()) do
  1589. if x.Name == "Sec" then
  1590. x.Section2.Size = UDim2.new(0, x.Section2.Size.X.Offset + ChangeX, 0, math.clamp(x.Section2.Size.Y.Offset + ChangeY, TabsHolder.Size.Y.Offset, 325))
  1591. end
  1592. end
  1593. end
  1594. end]]
  1595. CloseButton.Position = UDim2.new(0, math.clamp(CloseButton.Position.X.Offset + ChangeX, 416, 568), 0, math.clamp(CloseButton.Position.Y.Offset + ChangeY, TabsHolder.Size.Y.Offset, 412))
  1596. MainGUIHolder.Size = UDim2.new(0, math.clamp(MainGUIHolder.Size.X.Offset + ChangeX, 416, 568), 0, math.clamp(MainGUIHolder.Size.Y.Offset + ChangeY, TabsHolder.Size.Y.Offset, 412))
  1597. end
  1598. end)]==]
  1599.  
  1600. game:GetService("UserInputService").InputBegan:Connect(function(input)
  1601. if input.KeyCode == library.Key then
  1602. MainGUIHolder.Visible = not MainGUIHolder.Visible
  1603. end
  1604. end)
  1605.  
  1606. return window
  1607. end
  1608.  
  1609. return library
Advertisement
Add Comment
Please, Sign In to add comment