batman5555515

Untitled

Jul 14th, 2020
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 131.30 KB | None | 0 0
  1. --[[
  2.  
  3. _____ _
  4. |__ / _ _ _ __ | |__ ___ _ __
  5. / / | | | | | '_ \ | '_ \ / _ \ | '__|
  6. / /_ | |_| | | |_) | | | | | | __/ | |
  7. /____| \__, | | .__/ |_| |_| \___| |_|
  8. |___/ |_|
  9.  
  10. Made by: xTheAlex14#3200
  11. Design: Inspiration from Luzu#7969
  12.  
  13. ]]
  14.  
  15. local lib = {}
  16.  
  17. function lib:Create(what, propri)
  18. local instance = Instance.new(what)
  19.  
  20. for i, v in next, propri do
  21. if instance[i] and propri ~= "Parent" then
  22. instance[i] = v
  23. end
  24. end
  25.  
  26. return instance
  27. end
  28.  
  29. local mouse = game.Players.LocalPlayer:GetMouse()
  30. local UIS = game:GetService("UserInputService")
  31. local TS = game:GetService("TweenService")
  32.  
  33. function lib:CreateMain(projName)
  34. if game:GetService("CoreGui"):FindFirstChild(projName) then
  35. return
  36. end
  37.  
  38. local objects = {}
  39. local firstCategory = true
  40.  
  41. objects.Screengui = lib:Create("ScreenGui", {
  42. Name = projName,
  43. ZIndexBehavior = Enum.ZIndexBehavior.Global,
  44. ResetOnSpawn = false,
  45. })
  46.  
  47. objects.Motherframe = lib:Create("Frame", {
  48. Name = "Motherframe",
  49. BackgroundColor3 = Color3.fromRGB(46, 46, 54),
  50. BorderSizePixel = 0,
  51. Position = UDim2.new(0.5, -400, 0.5, -225),
  52. Size = UDim2.new(0, 700, 0, 460),
  53. })
  54.  
  55. local dragInput
  56. local dragStart
  57. local startPos
  58.  
  59. local function update(input)
  60. local delta = input.Position - dragStart
  61. objects.Motherframe:TweenPosition(UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y),'Out','Linear',0.01,true)
  62. end
  63.  
  64. objects.Motherframe.InputBegan:Connect(function(input)
  65. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  66. dragging = true
  67. dragStart = input.Position
  68. startPos = objects.Motherframe.Position
  69. repeat wait() until input.UserInputState == Enum.UserInputState.End
  70. dragging = false
  71. end
  72. end)
  73.  
  74. objects.Motherframe.InputChanged:Connect(function(input)
  75. if input.UserInputType == Enum.UserInputType.MouseMovement then
  76. dragInput = input
  77. end
  78. end)
  79.  
  80. game:GetService("UserInputService").InputChanged:Connect(function(input)
  81. if input == dragInput and dragging then
  82. update(input)
  83. end
  84. end)
  85.  
  86. objects.Upline = lib:Create("Frame", {
  87. Name = "Upline",
  88. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  89. BorderSizePixel = 0,
  90. Size = UDim2.new(0, 700, 0, 4),
  91. ZIndex = 10,
  92. })
  93.  
  94. objects.Uplinegradient = lib:Create("UIGradient", {
  95. Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(0, 183, 183)), ColorSequenceKeypoint.new(0.00, Color3.fromRGB(0, 248, 248)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(125, 92, 164))}
  96. })
  97.  
  98. objects.Sidebar = lib:Create("Frame", {
  99. Name = "Sidebar",
  100. BackgroundColor3 = Color3.fromRGB(39, 38, 46),
  101. BorderSizePixel = 0,
  102. Position = UDim2.new(0, 0, 0, 4),
  103. Size = UDim2.new(0, 150, 0, 456),
  104. })
  105.  
  106. if projName == "Zypher" then
  107. objects.Logoframe = lib:Create("ImageLabel", {
  108. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  109. BackgroundTransparency = 1.000,
  110. BorderColor3 = Color3.fromRGB(27, 42, 53),
  111. Position = UDim2.new(0.233333349, 0, 0.0295454524, 0),
  112. Size = UDim2.new(0, 80, 0, 80),
  113. Image = "rbxassetid://3570695787",
  114. })
  115.  
  116. objects.Logoframegradient = lib:Create("UIGradient", {
  117. Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(0, 183, 183)), ColorSequenceKeypoint.new(0.00, Color3.fromRGB(0, 248, 248)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(125, 92, 164))},
  118. Rotation = 90,
  119. })
  120.  
  121. objects.Logo = lib:Create("ImageLabel", {
  122. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  123. BackgroundTransparency = 1.000,
  124. BorderColor3 = Color3.fromRGB(27, 42, 53),
  125. Position = UDim2.new(0.12023773, 0, 0.121428683, 0),
  126. Size = UDim2.new(0, 60, 0, 60),
  127. Image = "rbxassetid://5082829436",
  128. })
  129.  
  130. objects.Logogradient = lib:Create("UIGradient", {
  131. Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(247, 251, 255)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(103, 103, 103))},
  132. })
  133.  
  134. objects.Sidecategories = lib:Create("Frame", {
  135. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  136. BackgroundTransparency = 1.000,
  137. BorderColor3 = Color3.fromRGB(27, 42, 53),
  138. BorderSizePixel = 0,
  139. Position = UDim2.new(0, 0, 0, 115),
  140. Size = UDim2.new(0, 150, 0, 320),
  141. })
  142.  
  143. objects.Categorieshandler = lib:Create("Frame", {
  144. Name = "Categories",
  145. BackgroundColor3 = Color3.fromRGB(46, 46, 54),
  146. BackgroundTransparency = 1.000,
  147. BorderColor3 = Color3.fromRGB(27, 42, 53),
  148. BorderSizePixel = 0,
  149. Position = UDim2.new(0, 150, 0, 4),
  150. Size = UDim2.new(0, 550, 0, 456),
  151. })
  152. objects.Categorieshandler.ClipsDescendants = true
  153.  
  154. local Categorieshandlerpagelayout = lib:Create("UIPageLayout", {
  155. FillDirection = Enum.FillDirection.Vertical,
  156. SortOrder = Enum.SortOrder.LayoutOrder,
  157. EasingDirection = Enum.EasingDirection.InOut,
  158. EasingStyle = Enum.EasingStyle.Quad,
  159. ScrollWheelInputEnabled = false,
  160. TweenTime = 0.700,
  161. })
  162.  
  163. Categorieshandlerpagelayout.Parent = objects.Categorieshandler
  164. Categorieshandlerpagelayout = nil
  165.  
  166. objects.Categoriesselector = lib:Create("ImageLabel", {
  167. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  168. BackgroundTransparency = 1.000,
  169. Position = UDim2.new(0, 7, 0, 115),
  170. Size = UDim2.new(0, 136, 0, 32),
  171. Image = "rbxassetid://3570695787",
  172. ImageColor3 = Color3.fromRGB(49, 49, 59),
  173. ScaleType = Enum.ScaleType.Slice,
  174. SliceCenter = Rect.new(100, 100, 100, 100),
  175. SliceScale = 0.060,
  176. })
  177.  
  178. objects.Logoframe.Parent = objects.Sidebar
  179. objects.Logoframegradient.Parent = objects.Logoframe
  180. objects.Logo.Parent = objects.Logoframe
  181. objects.Logogradient.Parent = objects.Logo
  182.  
  183. else
  184. objects.Sidecategories = lib:Create("Frame", {
  185. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  186. BackgroundTransparency = 1.000,
  187. BorderColor3 = Color3.fromRGB(27, 42, 53),
  188. BorderSizePixel = 0,
  189. Position = UDim2.new(0, 0, 0, 15),
  190. Size = UDim2.new(0, 150, 0, 320),
  191. })
  192.  
  193. objects.Categorieshandler = lib:Create("Frame", {
  194. Name = "Categories",
  195. BackgroundColor3 = Color3.fromRGB(46, 46, 54),
  196. BackgroundTransparency = 1.000,
  197. BorderColor3 = Color3.fromRGB(27, 42, 53),
  198. BorderSizePixel = 0,
  199. Position = UDim2.new(0, 150, 0, 4),
  200. Size = UDim2.new(0, 550, 0, 456),
  201. })
  202. objects.Categorieshandler.ClipsDescendants = true
  203.  
  204. local Categorieshandlerpagelayout = lib:Create("UIPageLayout", {
  205. FillDirection = Enum.FillDirection.Vertical,
  206. SortOrder = Enum.SortOrder.LayoutOrder,
  207. EasingDirection = Enum.EasingDirection.InOut,
  208. EasingStyle = Enum.EasingStyle.Quad,
  209. ScrollWheelInputEnabled = false,
  210. TweenTime = 0.700,
  211. })
  212.  
  213. Categorieshandlerpagelayout.Parent = objects.Categorieshandler
  214. Categorieshandlerpagelayout = nil
  215.  
  216. objects.Categoriesselector = lib:Create("ImageLabel", {
  217. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  218. BackgroundTransparency = 1.000,
  219. Position = UDim2.new(0, 7, 0, 15),
  220. Size = UDim2.new(0, 136, 0, 32),
  221. Image = "rbxassetid://3570695787",
  222. ImageColor3 = Color3.fromRGB(49, 49, 59),
  223. ScaleType = Enum.ScaleType.Slice,
  224. SliceCenter = Rect.new(100, 100, 100, 100),
  225. SliceScale = 0.060,
  226. })
  227. end
  228.  
  229. categoriesdistance = 35
  230. categoriescounter = 0
  231.  
  232. function objects:CreateCategory(Name, Image)
  233. local categories = {}
  234.  
  235. if Image then
  236. categories.imagebutton = lib:Create("ImageButton", {
  237. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  238. BackgroundTransparency = 1.000,
  239. BorderSizePixel = 0,
  240. Position = UDim2.new(0, 6, 0, categoriescounter),
  241. Size = UDim2.new(0, 30, 0, 30),
  242. ZIndex = 4,
  243. AutoButtonColor = false,
  244. Image = "http://www.roblox.com/asset/?id="..Image,
  245. })
  246. elseif not Image then
  247. categories.imagebutton = lib:Create("ImageButton", {
  248. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  249. BackgroundTransparency = 1.000,
  250. BorderSizePixel = 0,
  251. Position = UDim2.new(0, -20, 0, categoriescounter),
  252. ImageTransparency = 1,
  253. Size = UDim2.new(0, 30, 0, 30),
  254. ZIndex = 4,
  255. AutoButtonColor = false,
  256. })
  257. end
  258.  
  259. categoriescounter = categoriescounter+categoriesdistance
  260.  
  261. categories.button = lib:Create("TextButton", {
  262. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  263. BackgroundTransparency = 1.000,
  264. BorderSizePixel = 0,
  265. Position = UDim2.new(0, 35, 0, 0),
  266. Size = UDim2.new(0, 70, 0, 30),
  267. ZIndex = 4,
  268. Font = Enum.Font.GothamBold,
  269. Text = Name,
  270. TextColor3 = Color3.fromRGB(255, 255, 255),
  271. TextSize = 18.000,
  272. TextWrapped = true,
  273. TextXAlignment = Enum.TextXAlignment.Left,
  274. })
  275.  
  276. categories.container = lib:Create("Frame", {
  277. BackgroundColor3 = Color3.fromRGB(46, 46, 54),
  278. BorderSizePixel = 0,
  279. Size = UDim2.new(0, 550, 0, 456),
  280. BackgroundTransparency = 1,
  281. })
  282.  
  283. categories.scrollingframe = lib:Create("ScrollingFrame", {
  284. Active = true,
  285. BackgroundColor3 = Color3.fromRGB(46, 46, 54),
  286. BorderSizePixel = 0,
  287. Position = UDim2.new(0, 0, 1.33849028e-07, 0),
  288. Size = UDim2.new(1, 0, -0.008772064, 460),
  289. CanvasSize = UDim2.new(0, 0, 0, 0),
  290. ScrollBarThickness = 6,
  291. ScrollBarImageColor3 = Color3.fromRGB(0,0,0),
  292. BackgroundTransparency = 1,
  293. })
  294.  
  295. categories.containerhider = lib:Create("Frame", {
  296. Name = "Hider",
  297. BackgroundColor3 = Color3.fromRGB(46, 46, 54),
  298. BorderSizePixel = 0,
  299. Size = UDim2.new(0, 550, 0, 456),
  300. BackgroundTransparency = 0,
  301. ZIndex = 2,
  302. })
  303.  
  304. local SectionsUIListLayout = lib:Create("UIListLayout", {
  305. SortOrder = Enum.SortOrder.LayoutOrder,
  306. Padding = UDim.new(0, 20),
  307. })
  308.  
  309. SectionsUIListLayout.Parent = categories.scrollingframe
  310. SectionsUIListLayout = nil
  311.  
  312. local SectionsUIPadding = lib:Create("UIPadding", {
  313. PaddingLeft = UDim.new(0, 15),
  314. PaddingTop = UDim.new(0, 20),
  315. })
  316.  
  317. SectionsUIPadding.Parent = categories.scrollingframe
  318. SectionsUIPadding = nil
  319.  
  320. if firstCategory then
  321. categories.containerhider.BackgroundTransparency = 1
  322. categories.container.BackgroundTransparency = 0
  323. end
  324.  
  325. if Image then
  326. if projName == "Zypher" then
  327. categories.imagebutton.MouseButton1Click:connect(function()
  328. objects.Categoriesselector:TweenPosition(categories.imagebutton.Position + UDim2.new(0,1,0,115), "Out", "Linear", 0.08)
  329. for i,v in pairs(objects.Categorieshandler:GetChildren()) do
  330. if v:IsA("Frame") then
  331. game:GetService("TweenService"):Create(v.Hider, TweenInfo.new(0.3), {BackgroundTransparency = 0}):Play()
  332. game:GetService("TweenService"):Create(v, TweenInfo.new(0.3), {BackgroundTransparency = 1}):Play()
  333. game:GetService("TweenService"):Create(v.ScrollingFrame, TweenInfo.new(0.3), {BackgroundTransparency = 1}):Play()
  334. end
  335. end
  336. game:GetService("TweenService"):Create(categories.containerhider, TweenInfo.new(0.3), {BackgroundTransparency = 1}):Play()
  337. game:GetService("TweenService"):Create(categories.container, TweenInfo.new(0.3), {BackgroundTransparency = 0}):Play()
  338. game:GetService("TweenService"):Create(categories.scrollingframe, TweenInfo.new(0.3), {BackgroundTransparency = 0}):Play()
  339.  
  340. objects.Categorieshandler["UIPageLayout"]:JumpTo(categories.container)
  341. end)
  342.  
  343. categories.button.MouseButton1Click:connect(function()
  344. objects.Categoriesselector:TweenPosition(categories.imagebutton.Position + UDim2.new(0,1,0,115), "Out", "Linear", 0.08)
  345. for i,v in pairs(objects.Categorieshandler:GetChildren()) do
  346. if v:IsA("Frame") then
  347. game:GetService("TweenService"):Create(v.Hider, TweenInfo.new(0.3), {BackgroundTransparency = 0}):Play()
  348. game:GetService("TweenService"):Create(v, TweenInfo.new(0.3), {BackgroundTransparency = 1}):Play()
  349. game:GetService("TweenService"):Create(v.ScrollingFrame, TweenInfo.new(0.3), {BackgroundTransparency = 1}):Play()
  350. end
  351. end
  352. game:GetService("TweenService"):Create(categories.containerhider, TweenInfo.new(0.3), {BackgroundTransparency = 1}):Play()
  353. game:GetService("TweenService"):Create(categories.container, TweenInfo.new(0.3), {BackgroundTransparency = 0}):Play()
  354. game:GetService("TweenService"):Create(categories.scrollingframe, TweenInfo.new(0.3), {BackgroundTransparency = 0}):Play()
  355.  
  356. objects.Categorieshandler["UIPageLayout"]:JumpTo(categories.container)
  357. end)
  358. else
  359. categories.imagebutton.MouseButton1Click:connect(function()
  360. objects.Categoriesselector:TweenPosition(categories.imagebutton.Position + UDim2.new(0,1,0,15), "Out", "Linear", 0.08)
  361. for i,v in pairs(objects.Categorieshandler:GetChildren()) do
  362. if v:IsA("Frame") then
  363. game:GetService("TweenService"):Create(v.Hider, TweenInfo.new(0.3), {BackgroundTransparency = 0}):Play()
  364. game:GetService("TweenService"):Create(v, TweenInfo.new(0.3), {BackgroundTransparency = 1}):Play()
  365. game:GetService("TweenService"):Create(v.ScrollingFrame, TweenInfo.new(0.3), {BackgroundTransparency = 1}):Play()
  366. end
  367. end
  368. game:GetService("TweenService"):Create(categories.containerhider, TweenInfo.new(0.3), {BackgroundTransparency = 1}):Play()
  369. game:GetService("TweenService"):Create(categories.container, TweenInfo.new(0.3), {BackgroundTransparency = 0}):Play()
  370. game:GetService("TweenService"):Create(categories.scrollingframe, TweenInfo.new(0.3), {BackgroundTransparency = 0}):Play()
  371.  
  372. objects.Categorieshandler["UIPageLayout"]:JumpTo(categories.container)
  373. end)
  374.  
  375. categories.button.MouseButton1Click:connect(function()
  376. objects.Categoriesselector:TweenPosition(categories.imagebutton.Position + UDim2.new(0,1,0,15), "Out", "Linear", 0.08)
  377. for i,v in pairs(objects.Categorieshandler:GetChildren()) do
  378. if v:IsA("Frame") then
  379. game:GetService("TweenService"):Create(v.Hider, TweenInfo.new(0.3), {BackgroundTransparency = 0}):Play()
  380. game:GetService("TweenService"):Create(v, TweenInfo.new(0.3), {BackgroundTransparency = 1}):Play()
  381. game:GetService("TweenService"):Create(v.ScrollingFrame, TweenInfo.new(0.3), {BackgroundTransparency = 1}):Play()
  382. end
  383. end
  384. game:GetService("TweenService"):Create(categories.containerhider, TweenInfo.new(0.3), {BackgroundTransparency = 1}):Play()
  385. game:GetService("TweenService"):Create(categories.container, TweenInfo.new(0.3), {BackgroundTransparency = 0}):Play()
  386. game:GetService("TweenService"):Create(categories.scrollingframe, TweenInfo.new(0.3), {BackgroundTransparency = 0}):Play()
  387.  
  388. objects.Categorieshandler["UIPageLayout"]:JumpTo(categories.container)
  389. end)
  390. end
  391. else
  392. if projName == "Zypher" then
  393. categories.imagebutton.MouseButton1Click:connect(function()
  394. objects.Categoriesselector:TweenPosition(categories.imagebutton.Position + UDim2.new(0,27,0,115), "Out", "Linear", 0.08)
  395. for i,v in pairs(objects.Categorieshandler:GetChildren()) do
  396. if v:IsA("Frame") then
  397. game:GetService("TweenService"):Create(v.Hider, TweenInfo.new(0.3), {BackgroundTransparency = 0}):Play()
  398. game:GetService("TweenService"):Create(v, TweenInfo.new(0.3), {BackgroundTransparency = 1}):Play()
  399. game:GetService("TweenService"):Create(v.ScrollingFrame, TweenInfo.new(0.3), {BackgroundTransparency = 1}):Play()
  400. end
  401. end
  402. game:GetService("TweenService"):Create(categories.containerhider, TweenInfo.new(0.3), {BackgroundTransparency = 1}):Play()
  403. game:GetService("TweenService"):Create(categories.container, TweenInfo.new(0.3), {BackgroundTransparency = 0}):Play()
  404. game:GetService("TweenService"):Create(categories.scrollingframe, TweenInfo.new(0.3), {BackgroundTransparency = 0}):Play()
  405.  
  406. objects.Categorieshandler["UIPageLayout"]:JumpTo(categories.container)
  407. end)
  408.  
  409. categories.button.MouseButton1Click:connect(function()
  410. objects.Categoriesselector:TweenPosition(categories.imagebutton.Position + UDim2.new(0,27,0,115), "Out", "Linear", 0.08)
  411. for i,v in pairs(objects.Categorieshandler:GetChildren()) do
  412. if v:IsA("Frame") then
  413. game:GetService("TweenService"):Create(v.Hider, TweenInfo.new(0.3), {BackgroundTransparency = 0}):Play()
  414. game:GetService("TweenService"):Create(v, TweenInfo.new(0.3), {BackgroundTransparency = 1}):Play()
  415. game:GetService("TweenService"):Create(v.ScrollingFrame, TweenInfo.new(0.3), {BackgroundTransparency = 1}):Play()
  416. end
  417. end
  418. game:GetService("TweenService"):Create(categories.containerhider, TweenInfo.new(0.3), {BackgroundTransparency = 1}):Play()
  419. game:GetService("TweenService"):Create(categories.container, TweenInfo.new(0.3), {BackgroundTransparency = 0}):Play()
  420. game:GetService("TweenService"):Create(categories.scrollingframe, TweenInfo.new(0.3), {BackgroundTransparency = 0}):Play()
  421.  
  422. objects.Categorieshandler["UIPageLayout"]:JumpTo(categories.container)
  423. end)
  424. else
  425. categories.imagebutton.MouseButton1Click:connect(function()
  426. objects.Categoriesselector:TweenPosition(categories.imagebutton.Position + UDim2.new(0,27,0,15), "Out", "Linear", 0.08)
  427. for i,v in pairs(objects.Categorieshandler:GetChildren()) do
  428. if v:IsA("Frame") then
  429. game:GetService("TweenService"):Create(v.Hider, TweenInfo.new(0.3), {BackgroundTransparency = 0}):Play()
  430. game:GetService("TweenService"):Create(v, TweenInfo.new(0.3), {BackgroundTransparency = 1}):Play()
  431. game:GetService("TweenService"):Create(v.ScrollingFrame, TweenInfo.new(0.3), {BackgroundTransparency = 1}):Play()
  432. end
  433. end
  434. game:GetService("TweenService"):Create(categories.containerhider, TweenInfo.new(0.3), {BackgroundTransparency = 1}):Play()
  435. game:GetService("TweenService"):Create(categories.container, TweenInfo.new(0.3), {BackgroundTransparency = 0}):Play()
  436. game:GetService("TweenService"):Create(categories.scrollingframe, TweenInfo.new(0.3), {BackgroundTransparency = 0}):Play()
  437.  
  438. objects.Categorieshandler["UIPageLayout"]:JumpTo(categories.container)
  439. end)
  440.  
  441. categories.button.MouseButton1Click:connect(function()
  442. objects.Categoriesselector:TweenPosition(categories.imagebutton.Position + UDim2.new(0,27,0,15), "Out", "Linear", 0.08)
  443. for i,v in pairs(objects.Categorieshandler:GetChildren()) do
  444. if v:IsA("Frame") then
  445. game:GetService("TweenService"):Create(v.Hider, TweenInfo.new(0.3), {BackgroundTransparency = 0}):Play()
  446. game:GetService("TweenService"):Create(v, TweenInfo.new(0.3), {BackgroundTransparency = 1}):Play()
  447. game:GetService("TweenService"):Create(v.ScrollingFrame, TweenInfo.new(0.3), {BackgroundTransparency = 1}):Play()
  448. end
  449. end
  450. game:GetService("TweenService"):Create(categories.containerhider, TweenInfo.new(0.3), {BackgroundTransparency = 1}):Play()
  451. game:GetService("TweenService"):Create(categories.container, TweenInfo.new(0.3), {BackgroundTransparency = 0}):Play()
  452. game:GetService("TweenService"):Create(categories.scrollingframe, TweenInfo.new(0.3), {BackgroundTransparency = 0}):Play()
  453.  
  454. objects.Categorieshandler["UIPageLayout"]:JumpTo(categories.container)
  455. end)
  456. end
  457. end
  458.  
  459. function categories:CreateSection(Name)
  460. local sections = {}
  461.  
  462. sections.container = lib:Create("ImageLabel", {
  463. Name = Name.."Container",
  464. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  465. BackgroundTransparency = 1.000,
  466. Position = UDim2.new(0, 315, 0, 24),
  467. Size = UDim2.new(0, 520, 0, 48),
  468. Image = "rbxassetid://3570695787",
  469. ImageColor3 = Color3.fromRGB(39, 38, 46),
  470. ScaleType = Enum.ScaleType.Slice,
  471. SliceCenter = Rect.new(100, 100, 100, 100),
  472. SliceScale = 0.040,
  473. })
  474.  
  475. sections.containername = lib:Create("TextLabel", {
  476. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  477. BackgroundTransparency = 1.000,
  478. BorderSizePixel = 0,
  479. Position = UDim2.new(0, 8, 0, 4),
  480. Size = UDim2.new(0, 200, 0, 30),
  481. Font = Enum.Font.GothamBold,
  482. Text = Name,
  483. TextColor3 = Color3.fromRGB(255, 255, 255),
  484. TextSize = 18.000,
  485. TextXAlignment = Enum.TextXAlignment.Left,
  486. })
  487. categories.scrollingframe.CanvasSize = categories.scrollingframe.CanvasSize + UDim2.new(0,0,0,40)
  488. categories.scrollingframe.CanvasSize = categories.scrollingframe.CanvasSize + UDim2.new(0,0,0,40)
  489.  
  490. sections.containerthings = lib:Create("ImageLabel", {
  491. Active = true,
  492. BackgroundColor3 = Color3.fromRGB(248, 248, 248),
  493. BackgroundTransparency = 1.000,
  494. BorderColor3 = Color3.fromRGB(27, 42, 53),
  495. BorderSizePixel = 0,
  496. Selectable = true,
  497. Size = UDim2.new(0, 500, 0, 0),
  498. Image = "rbxassetid://3570695787",
  499. ImageColor3 = Color3.fromRGB(29, 29, 35),
  500. ImageTransparency = 1.000,
  501. ScaleType = Enum.ScaleType.Slice,
  502. SliceCenter = Rect.new(100, 100, 100, 100),
  503. SliceScale = 0.100,
  504. })
  505.  
  506. local ctuilist = lib:Create("UIListLayout", {
  507. SortOrder = Enum.SortOrder.LayoutOrder,
  508. Padding = UDim.new(0, 10),
  509. })
  510. ctuilist.Parent = sections.containerthings
  511. ctuilist = nil
  512.  
  513. local ctuipadd = lib:Create("UIPadding", {
  514. PaddingLeft = UDim.new(0, 10)
  515. })
  516. ctuipadd.Parent = sections.containerthings
  517. ctuipadd = nil
  518.  
  519. counter = 0
  520.  
  521. pcall(function()
  522. for i,v in pairs(sections.containerthings:GetChildren()) do
  523. if not v:IsA("UIListLayout") or not v:IsA("UIPadding") then
  524. counter = counter + 1
  525. end
  526. end
  527.  
  528. if counter ~= 1 then
  529. sections.containerthings.Size = sections.containerthings.Size - UDim2.new(0,0,0,10)
  530. sections.container.Size = sections.container.Size - UDim2.new(0,0,0,10)
  531. end
  532. end)
  533.  
  534. function sections:Create(Type, Name, CallBack, Others)
  535. local things = {}
  536. things.value = nil
  537.  
  538. if Type then
  539. if string.lower(Type) == "button" or string.lower(Type) == "btn" then
  540. things.buttonframe = lib:Create("Frame", {
  541. Name = Name.."Button",
  542. Active = true,
  543. BackgroundColor3 = Color3.fromRGB(248, 248, 248),
  544. BackgroundTransparency = 1.000,
  545. BorderColor3 = Color3.fromRGB(27, 42, 53),
  546. Position = UDim2.new(0, -44, 0, -34),
  547. Selectable = true,
  548. Size = UDim2.new(0, 500, 0, 30),
  549. })
  550. things.button = lib:Create("ImageButton", {
  551. AnchorPoint = Vector2.new(0.5, 0.5),
  552. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  553. BackgroundTransparency = 1.000,
  554. BorderColor3 = Color3.fromRGB(27, 42, 53),
  555. Position = UDim2.new(0, 250, 0, 15),
  556. Size = UDim2.new(0, 500, 0, 30),
  557. AutoButtonColor = false,
  558. Image = "rbxassetid://3570695787",
  559. ImageColor3 = Color3.fromRGB(29, 29, 35),
  560. ScaleType = Enum.ScaleType.Slice,
  561. SliceCenter = Rect.new(100, 100, 100, 100),
  562. SliceScale = 0.040,
  563. })
  564.  
  565. things.buttontext = lib:Create("TextLabel", {
  566. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  567. BackgroundTransparency = 1.000,
  568. BorderSizePixel = 0,
  569. Position = UDim2.new(0.100000001, 0, 0, 0),
  570. Size = UDim2.new(0, 400, 1, 0),
  571. Font = Enum.Font.GothamBold,
  572. Text = Name,
  573. TextColor3 = Color3.fromRGB(255, 255, 255),
  574. TextSize = 18.000,
  575. })
  576.  
  577. sections.container.Size = sections.container.Size + UDim2.new(0,0,0,40)
  578. sections.containerthings.Size = sections.containerthings.Size + UDim2.new(0,0,0,40)
  579. categories.scrollingframe.CanvasSize = categories.scrollingframe.CanvasSize + UDim2.new(0,0,0,40)
  580.  
  581. things.buttonframe.Parent = sections.containerthings
  582. things.button.Parent = things.buttonframe
  583. things.buttontext.Parent = things.button
  584.  
  585. sections.containerthings.Position = UDim2.new(0, 0, 0, sections.container.Size.Y.Offset-sections.containerthings.Size.Y.Offset-6)
  586.  
  587. things.button.MouseButton1Click:Connect(function()
  588. if Others then
  589. if Others.animated then
  590. game:GetService("TweenService"):Create(things.button, TweenInfo.new(0.06), {Size = UDim2.new(0, 490, 0, 26)}):Play()
  591. wait(.07)
  592. game:GetService("TweenService"):Create(things.button, TweenInfo.new(0.06), {Size = UDim2.new(0, 500, 0, 30)}):Play()
  593. end
  594. end
  595.  
  596. if CallBack then
  597. CallBack()
  598. end
  599. end)
  600.  
  601. elseif string.lower(Type) == "toggle" then
  602. things.toggleb = lib:Create("ImageButton", {
  603. Name = Name.."Toggle",
  604. Active = false,
  605. BackgroundColor3 = Color3.fromRGB(248, 248, 248),
  606. BackgroundTransparency = 1.000,
  607. BorderSizePixel = 0,
  608. Position = UDim2.new(0.0192307699, 0, 0.526315808, 0),
  609. Selectable = false,
  610. Size = UDim2.new(0, 500, 0, 35),
  611. Image = "rbxassetid://3570695787",
  612. ImageColor3 = Color3.fromRGB(29, 29, 35),
  613. ScaleType = Enum.ScaleType.Slice,
  614. SliceCenter = Rect.new(100, 100, 100, 100),
  615. SliceScale = 0.040,
  616. })
  617.  
  618. things.toggletext = lib:Create("TextLabel", {
  619. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  620. BackgroundTransparency = 1.000,
  621. Position = UDim2.new(0, 4, 0, 2),
  622. Size = UDim2.new(0, 200, 0, 30),
  623. Font = Enum.Font.GothamBold,
  624. Text = Name,
  625. TextColor3 = Color3.fromRGB(255, 255, 255),
  626. TextSize = 18.000,
  627. TextXAlignment = Enum.TextXAlignment.Left,
  628. })
  629.  
  630. things.toggle = lib:Create("ImageLabel", {
  631. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  632. BackgroundTransparency = 1.000,
  633. BorderSizePixel = 0,
  634. Position = UDim2.new(0, 435, 0, 2),
  635. Size = UDim2.new(0, 56, 0, 26),
  636. Image = "rbxassetid://3570695787",
  637. ImageColor3 = Color3.fromRGB(21, 21, 26),
  638. ScaleType = Enum.ScaleType.Slice,
  639. SliceCenter = Rect.new(100, 100, 100, 100),
  640. SliceScale = 0.040,
  641. })
  642.  
  643. things.toggleonoff = lib:Create("ImageLabel", {
  644. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  645. BackgroundTransparency = 1.000,
  646. BorderSizePixel = 0,
  647. Position = UDim2.new(0, 2, 0, 3),
  648. Size = UDim2.new(0, 26, 0, 20),
  649. ZIndex = 2,
  650. Image = "rbxassetid://3570695787",
  651. ScaleType = Enum.ScaleType.Slice,
  652. SliceCenter = Rect.new(100, 100, 100, 100),
  653. SliceScale = 0.040,
  654. })
  655.  
  656. sections.container.Size = sections.container.Size + UDim2.new(0,0,0,45)
  657. sections.containerthings.Size = sections.containerthings.Size + UDim2.new(0,0,0,45)
  658. categories.scrollingframe.CanvasSize = categories.scrollingframe.CanvasSize + UDim2.new(0,0,0,45)
  659.  
  660. things.toggleb.Parent = sections.containerthings
  661. things.toggletext.Parent = things.toggleb
  662. things.toggle.Parent = things.toggletext
  663. things.toggleonoff.Parent = things.toggle
  664.  
  665. sections.containerthings.Position = UDim2.new(0, 0, 0, sections.container.Size.Y.Offset-sections.containerthings.Size.Y.Offset-6)
  666.  
  667. if Others then
  668. if Others.default == true then
  669. things.value = true
  670. game:GetService("TweenService"):Create(things.toggleonoff, TweenInfo.new(0.05), {Position = UDim2.new(1, -28,0, 3)}):Play()
  671. if CallBack then
  672. CallBack(things.value)
  673. end
  674. end
  675. end
  676.  
  677.  
  678. things.toggleb.MouseButton1Click:Connect(function()
  679. things.value = not things.value
  680.  
  681. if things.value then
  682. game:GetService("TweenService"):Create(things.toggleonoff, TweenInfo.new(0.1), {Position = UDim2.new(1, -28,0, 3)}):Play()
  683. else
  684. game:GetService("TweenService"):Create(things.toggleonoff, TweenInfo.new(0.1), {Position = UDim2.new(0, 2,0, 3)}):Play()
  685. end
  686. if CallBack then
  687. CallBack(things.value)
  688. end
  689. end)
  690. elseif string.lower(Type) == "slider" then
  691. things.sliderback = lib:Create("ImageLabel", {
  692. Name = Name.."Slider",
  693. Active = true,
  694. BackgroundColor3 = Color3.fromRGB(248, 248, 248),
  695. BackgroundTransparency = 1.000,
  696. BorderColor3 = Color3.fromRGB(27, 42, 53),
  697. Position = UDim2.new(0, 15, 0, 125),
  698. Selectable = true,
  699. Size = UDim2.new(0, 500, 0, 50),
  700. Image = "rbxassetid://3570695787",
  701. ImageColor3 = Color3.fromRGB(29, 29, 35),
  702. ScaleType = Enum.ScaleType.Slice,
  703. SliceCenter = Rect.new(100, 100, 100, 100),
  704. SliceScale = 0.040,
  705. })
  706.  
  707. things.slidertext = lib:Create("TextLabel", {
  708. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  709. BackgroundTransparency = 1.000,
  710. BorderSizePixel = 0,
  711. Position = UDim2.new(0, 4, 0, 2),
  712. Size = UDim2.new(0, 200, 0, 30),
  713. Font = Enum.Font.GothamBold,
  714. Text = Name,
  715. TextColor3 = Color3.fromRGB(255, 255, 255),
  716. TextSize = 18.000,
  717. TextXAlignment = Enum.TextXAlignment.Left,
  718. })
  719.  
  720. things.slider = lib:Create("ImageButton", {
  721. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  722. BackgroundTransparency = 1.000,
  723. BorderSizePixel = 0,
  724. ClipsDescendants = true,
  725. Position = UDim2.new(0, 0, 0, 30),
  726. Size = UDim2.new(0, 490, 0, 10),
  727. AutoButtonColor = false,
  728. Image = "rbxassetid://3570695787",
  729. ImageColor3 = Color3.fromRGB(21, 21, 26),
  730. ScaleType = Enum.ScaleType.Slice,
  731. SliceCenter = Rect.new(100, 100, 100, 100),
  732. SliceScale = 0.030,
  733. })
  734.  
  735. things.sliderinner = lib:Create("ImageLabel", {
  736. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  737. BackgroundTransparency = 1.000,
  738. BorderSizePixel = 0,
  739. Position = UDim2.new(0, 0, 0.100000001, 0),
  740. Size = UDim2.new(0, 0, 1, -2),
  741. ZIndex = 2,
  742. Image = "rbxassetid://3570695787",
  743. ScaleType = Enum.ScaleType.Slice,
  744. SliceCenter = Rect.new(100, 100, 100, 100),
  745. SliceScale = 0.040,
  746. })
  747.  
  748. local min = Others.min or 0
  749. local max = Others.max or 1
  750.  
  751. if Others then
  752. if Others.changablevalue then
  753. things.slideramount = lib:Create("TextBox", {
  754. BackgroundColor3 = Color3.fromRGB(21, 21, 26),
  755. BackgroundTransparency = 1.000,
  756. BorderColor3 = Color3.fromRGB(27, 42, 53),
  757. BorderSizePixel = 0,
  758. Position = UDim2.new(0, 444, 0, 6),
  759. Size = UDim2.new(0, 48, 0, 22),
  760. Font = Enum.Font.GothamBold,
  761. PlaceholderColor3 = Color3.fromRGB(255, 255, 255),
  762. Text = tostring(min),
  763. TextColor3 = Color3.fromRGB(255, 255, 255),
  764. TextSize = 14.000,
  765. TextWrapped = true,
  766. TextXAlignment = Enum.TextXAlignment.Right,
  767. })
  768. else
  769. things.slideramount = lib:Create("TextLabel", {
  770. BackgroundColor3 = Color3.fromRGB(21, 21, 26),
  771. BackgroundTransparency = 1.000,
  772. BorderColor3 = Color3.fromRGB(27, 42, 53),
  773. BorderSizePixel = 0,
  774. Position = UDim2.new(0, 444, 0, 6),
  775. Size = UDim2.new(0, 48, 0, 22),
  776. Font = Enum.Font.GothamBold,
  777. Text = tostring(min),
  778. TextColor3 = Color3.fromRGB(255, 255, 255),
  779. TextSize = 14.000,
  780. TextXAlignment = Enum.TextXAlignment.Right,
  781. })
  782. end
  783. end
  784.  
  785. sections.container.Size = sections.container.Size + UDim2.new(0,0,0,60)
  786. sections.containerthings.Size = sections.containerthings.Size + UDim2.new(0,0,0,60)
  787. categories.scrollingframe.CanvasSize = categories.scrollingframe.CanvasSize + UDim2.new(0,0,0,60)
  788.  
  789. things.sliderback.Parent = sections.containerthings
  790. things.slidertext.Parent = things.sliderback
  791. things.slider.Parent = things.slidertext
  792. things.slideramount.Parent = things.sliderback
  793. things.sliderinner.Parent = things.slider
  794.  
  795. sections.containerthings.Position = UDim2.new(0, 0, 0, sections.container.Size.Y.Offset-sections.containerthings.Size.Y.Offset-6)
  796.  
  797. things.value = 0
  798.  
  799. if Others then
  800. if Others.default and Others.default <= max then
  801. things.slideramount.Text = Others.default
  802. things.value = Others.default
  803. local s = Others.default / Others.max
  804. game:GetService("TweenService"):Create(things.sliderinner, TweenInfo.new(0.05), {Size = UDim2.new(s, 0, 1, -2)}):Play()
  805. if CallBack then
  806. CallBack(things.value)
  807. end
  808. end
  809. end
  810.  
  811. things.slider.MouseButton1Down:Connect(function()
  812. local moveconnection = game:GetService("RunService").Heartbeat:Connect(function()
  813. local s = math.clamp(mouse.X - things.slider.AbsolutePosition.X,0,things.slider.AbsoluteSize.X) / things.slider.AbsoluteSize.X
  814. if Others.precise then
  815. things.value = string.format("%.1f", min + ((max-min) * s))
  816. else
  817. things.value = math.floor(min + ((max-min) * s))
  818. end
  819. things.slideramount.Text = tostring(things.value)
  820.  
  821. if CallBack then
  822. CallBack(things.value)
  823. end
  824.  
  825. TS:Create(things.sliderinner, TweenInfo.new(0.05), {Size = UDim2.new(s, 0, 1, -2)}):Play()
  826. end)
  827. UIS.InputEnded:Connect(function(Check)
  828. if Check.UserInputType == Enum.UserInputType.MouseButton1 then
  829. if moveconnection then
  830. moveconnection:Disconnect()
  831. moveconnection = nil
  832. end
  833. end
  834. end)
  835.  
  836. end)
  837.  
  838. if Others then
  839. if Others.changablevalue then
  840. things.slideramount:GetPropertyChangedSignal("Text"):Connect(function()
  841. if not moveconnection then
  842. things.slideramount.Text = string.gsub(things.slideramount.Text,"[^%-%d%p]","")
  843. local value = tonumber(things.slideramount.Text)
  844. if value ~= nil and value >= min and value <= max then
  845. local new = value / max
  846. things.value = value
  847. if CallBack then
  848. CallBack(things.value)
  849. end
  850. game:GetService("TweenService"):Create(things.sliderinner, TweenInfo.new(0.05), {Size = UDim2.new(new, 0, 1, -2)}):Play()
  851. elseif value ~= nil and value < min then
  852. value = min
  853. local new = value / max
  854. things.slideramount.Text = min
  855. things.value = value
  856. if CallBack then
  857. CallBack(things.value)
  858. end
  859. game:GetService("TweenService"):Create(things.sliderinner, TweenInfo.new(0.05), {Size = UDim2.new(new, 0, 1, -2)}):Play()
  860. elseif value ~= nil and value > max then
  861. value = max
  862. local new = value / max
  863. things.slideramount.Text = max
  864. things.value = value
  865. if CallBack then
  866. CallBack(things.value)
  867. end
  868. game:GetService("TweenService"):Create(things.sliderinner, TweenInfo.new(0.05), {Size = UDim2.new(new, 0, 1, -2)}):Play()
  869. end
  870. end
  871. end)
  872. things.slideramount.FocusLost:Connect(function()
  873. if things.slideramount.Text == "" then
  874. things.slideramount.Text = min
  875. things.value = min
  876. if CallBack then
  877. CallBack(things.value)
  878. end
  879. end
  880. end)
  881. end
  882. end
  883.  
  884. elseif string.lower(Type) == "textbox" then
  885. if Others then
  886. if Others.text then
  887. things.value = Others.text
  888. end
  889. end
  890.  
  891. things.textboxb = lib:Create("ImageLabel", {
  892. Name = Name.."TextBox",
  893. BackgroundColor3 = Color3.fromRGB(248, 248, 248),
  894. BackgroundTransparency = 1.000,
  895. BorderSizePixel = 0,
  896. Size = UDim2.new(0, 500, 0, 35),
  897. Image = "rbxassetid://3570695787",
  898. ImageColor3 = Color3.fromRGB(29, 29, 35),
  899. ScaleType = Enum.ScaleType.Slice,
  900. SliceCenter = Rect.new(100, 100, 100, 100),
  901. SliceScale = 0.040,
  902. })
  903.  
  904. things.textboxtext = lib:Create("TextLabel", {
  905. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  906. BackgroundTransparency = 1.000,
  907. Position = UDim2.new(0, 4, 0, 0),
  908. Size = UDim2.new(0, 280, 1, 0),
  909. Font = Enum.Font.GothamBold,
  910. Text = Name,
  911. TextColor3 = Color3.fromRGB(255, 255, 255),
  912. TextSize = 18.000,
  913. TextXAlignment = Enum.TextXAlignment.Left,
  914. })
  915.  
  916. things.textboxbb = lib:Create("ImageLabel", {
  917. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  918. BackgroundTransparency = 1.000,
  919. BorderSizePixel = 0,
  920. Position = UDim2.new(0, 291, 0, 4),
  921. Size = UDim2.new(0, 200, 0, 26),
  922. Image = "rbxassetid://3570695787",
  923. ImageColor3 = Color3.fromRGB(21, 21, 26),
  924. ScaleType = Enum.ScaleType.Slice,
  925. SliceCenter = Rect.new(100, 100, 100, 100),
  926. SliceScale = 0.040,
  927. })
  928.  
  929. things.textbox = lib:Create("TextBox", {
  930. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  931. BackgroundTransparency = 1.000,
  932. Position = UDim2.new(0.0500000007, 0, 0.0384615399, 0),
  933. Size = UDim2.new(0.899999976, 0, 0.899999976, 0),
  934. Font = Enum.Font.GothamBold,
  935. PlaceholderText = things.value,
  936. Text = "",
  937. TextColor3 = Color3.fromRGB(255, 255, 255),
  938. TextSize = 14.000,
  939. TextXAlignment = Enum.TextXAlignment.Left,
  940. })
  941.  
  942. sections.container.Size = sections.container.Size + UDim2.new(0,0,0,45)
  943. sections.containerthings.Size = sections.containerthings.Size + UDim2.new(0,0,0,45)
  944. categories.scrollingframe.CanvasSize = categories.scrollingframe.CanvasSize + UDim2.new(0,0,0,45)
  945.  
  946. things.textboxb.Parent = sections.containerthings
  947. things.textboxtext.Parent = things.textboxb
  948. things.textboxbb.Parent = things.textboxtext
  949. things.textbox.Parent = things.textboxbb
  950.  
  951. sections.containerthings.Position = UDim2.new(0, 0, 0, sections.container.Size.Y.Offset-sections.containerthings.Size.Y.Offset-6)
  952.  
  953. things.textbox.FocusLost:Connect(function()
  954. local old = things.value
  955. things.textbox.PlaceholderText = things.value
  956. things.value = things.textbox.Text
  957.  
  958. if CallBack then
  959. CallBack(things.value)
  960. end
  961. end)
  962. elseif string.lower(Type) == "textlabel" then
  963. things.textlabelb = lib:Create("ImageLabel", {
  964. Name = "TextLabel",
  965. BackgroundColor3 = Color3.fromRGB(248, 248, 248),
  966. BackgroundTransparency = 1.000,
  967. BorderSizePixel = 0,
  968. Size = UDim2.new(0, 500, 0, 35),
  969. Image = "rbxassetid://3570695787",
  970. ImageColor3 = Color3.fromRGB(29, 29, 35),
  971. ScaleType = Enum.ScaleType.Slice,
  972. SliceCenter = Rect.new(100, 100, 100, 100),
  973. SliceScale = 0.040,
  974. })
  975.  
  976. things.textlabeltext = lib:Create("TextLabel", {
  977. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  978. BackgroundTransparency = 1.000,
  979. Position = UDim2.new(0, 4, 0, 0),
  980. Size = UDim2.new(0, 496, 1, 0),
  981. Font = Enum.Font.GothamBold,
  982. TextColor3 = Color3.fromRGB(255, 255, 255),
  983. TextSize = 18.000,
  984. TextXAlignment = Enum.TextXAlignment.Left,
  985. })
  986. if #Name <= 46 then
  987. things.textlabeltext.Text = Name
  988. end
  989.  
  990. sections.container.Size = sections.container.Size + UDim2.new(0,0,0,45)
  991. sections.containerthings.Size = sections.containerthings.Size + UDim2.new(0,0,0,45)
  992. categories.scrollingframe.CanvasSize = categories.scrollingframe.CanvasSize + UDim2.new(0,0,0,45)
  993.  
  994. things.textlabelb.Parent = sections.containerthings
  995. things.textlabeltext.Parent = things.textlabelb
  996.  
  997. sections.containerthings.Position = UDim2.new(0, 0, 0, sections.container.Size.Y.Offset-sections.containerthings.Size.Y.Offset-6)
  998. elseif string.lower(Type) == "keybind" then
  999. things.keybindb = lib:Create("ImageLabel", {
  1000. Name = "KeyBind",
  1001. Active = true,
  1002. BackgroundColor3 = Color3.fromRGB(248, 248, 248),
  1003. BackgroundTransparency = 1.000,
  1004. BorderColor3 = Color3.fromRGB(27, 42, 53),
  1005. Position = UDim2.new(0, 11, 0, 80),
  1006. Selectable = true,
  1007. Size = UDim2.new(0, 500, 0, 35),
  1008. Image = "rbxassetid://3570695787",
  1009. ImageColor3 = Color3.fromRGB(29, 29, 35),
  1010. ScaleType = Enum.ScaleType.Slice,
  1011. SliceCenter = Rect.new(100, 100, 100, 100),
  1012. SliceScale = 0.040,
  1013. })
  1014. things.keybindtext = lib:Create("TextLabel", {
  1015. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  1016. BackgroundTransparency = 1.000,
  1017. BorderSizePixel = 0,
  1018. Position = UDim2.new(0, 4, 0, 2),
  1019. Size = UDim2.new(0, 200, 0, 30),
  1020. Font = Enum.Font.GothamBold,
  1021. Text = Name,
  1022. TextColor3 = Color3.fromRGB(255, 255, 255),
  1023. TextSize = 18.000,
  1024. TextXAlignment = Enum.TextXAlignment.Left,
  1025. })
  1026. things.keybind = lib:Create("ImageButton", {
  1027. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  1028. BackgroundTransparency = 1.000,
  1029. BorderSizePixel = 0,
  1030. Position = UDim2.new(0, 370, 0, 2),
  1031. Size = UDim2.new(0, 120, 0, 26),
  1032. AutoButtonColor = false,
  1033. Image = "rbxassetid://3570695787",
  1034. ImageColor3 = Color3.fromRGB(21, 21, 26),
  1035. ScaleType = Enum.ScaleType.Slice,
  1036. SliceCenter = Rect.new(100, 100, 100, 100),
  1037. SliceScale = 0.040,
  1038. })
  1039. things.keybindvalue = lib:Create("TextLabel", {
  1040. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  1041. BackgroundTransparency = 1.000,
  1042. BorderSizePixel = 0,
  1043. Position = UDim2.new(0.0942464173, 0, 0, 0),
  1044. Size = UDim2.new(0.800000012, 0, 1, 0),
  1045. Font = Enum.Font.GothamBold,
  1046. Text = "None",
  1047. TextColor3 = Color3.fromRGB(255, 255, 255),
  1048. TextSize = 16.000,
  1049. })
  1050. sections.container.Size = sections.container.Size + UDim2.new(0,0,0,45)
  1051. sections.containerthings.Size = sections.containerthings.Size + UDim2.new(0,0,0,45)
  1052. categories.scrollingframe.CanvasSize = categories.scrollingframe.CanvasSize + UDim2.new(0,0,0,45)
  1053.  
  1054. things.keybindb.Parent = sections.containerthings
  1055. things.keybindtext.Parent = things.keybindb
  1056. things.keybind.Parent = things.keybindtext
  1057. things.keybindvalue.Parent = things.keybind
  1058.  
  1059. sections.containerthings.Position = UDim2.new(0, 0, 0, sections.container.Size.Y.Offset-sections.containerthings.Size.Y.Offset-6)
  1060.  
  1061. local c
  1062. local bind
  1063.  
  1064. if Others then
  1065. if Others.default then
  1066. bind = Others.default
  1067. things.keybindvalue.Text = bind.Name
  1068. end
  1069. end
  1070.  
  1071. things.keybind.MouseButton1Click:Connect(function()
  1072. things.keybindvalue.Text = "..."
  1073. c = game:GetService("UserInputService").InputBegan:Connect(function(i)
  1074. if i.UserInputType.Name == "Keyboard" and i.KeyCode ~= Enum.KeyCode.Backspace then
  1075. things.keybindvalue.Text = i.KeyCode.Name
  1076. bind = i.KeyCode
  1077. wait(.1)
  1078. if c then
  1079. c:Disconnect()
  1080. c = nil
  1081. end
  1082. elseif i.KeyCode == Enum.KeyCode.Backspace then
  1083. things.keybindvalue.Text = "None"
  1084. bind = nil
  1085. wait(.1)
  1086. if c then
  1087. c:Disconnect()
  1088. c = nil
  1089. end
  1090. end
  1091. end)
  1092. end)
  1093.  
  1094. game:GetService("UserInputService").InputBegan:Connect(function(i, GPE)
  1095. if bind and i.KeyCode == bind and not GPE and not c then
  1096. if CallBack then
  1097. CallBack(i.KeyCode)
  1098. end
  1099. end
  1100. end)
  1101. elseif string.lower(Type) == "dropdown" then
  1102. if Others and not Others.search then
  1103.  
  1104. if Others then
  1105. if Others.default and Others.options and not Others.playerlist then
  1106. things.value = Others.default
  1107. elseif Others.default and Others.options and Others.playerlist then
  1108. things.value = Others.default
  1109. elseif not Others.default and Others.options and Others.playerlist then
  1110. things.value = Others.options[1]
  1111. elseif not Others.default and Others.options and not Others.playerlist then
  1112. things.value = Others.options[1]
  1113. elseif not Others.default and not Others.options and Others.playerlist then
  1114. things.value = game:GetService("Players"):GetChildren()[1].Name
  1115. elseif Others.default and not Others.options and not Others.playerlist then
  1116. things.value = Others.default
  1117. elseif Others.default and not Others.options and Others.playerlist then
  1118. things.value = Others.default
  1119. end
  1120. end
  1121. local options
  1122.  
  1123. if Others then
  1124. if Others.options and not Others.playerlist then
  1125. options = Others.options
  1126. elseif Others.options and Others.playerlist then
  1127. options = {}
  1128.  
  1129. for g,f in pairs(Others.options) do
  1130. table.insert(options, f)
  1131. end
  1132. local list = game:GetService("Players"):GetChildren()
  1133. if not Others.plotlist then
  1134. for i,v in pairs(list) do
  1135. if v:IsA("Player") then
  1136. table.insert(options, v.Name)
  1137. end
  1138. end
  1139. else
  1140. for i,v in pairs(list) do
  1141. if v:IsA("Player") then
  1142. table.insert(options, v.Name)
  1143. table.insert(options, v.Name.."'s Plot")
  1144. end
  1145. end
  1146. end
  1147. elseif not Others.options and Others.playerlist then
  1148. options = {}
  1149. local list = game:GetService("Players"):GetChildren()
  1150. for i,v in pairs(list) do
  1151. if v:IsA("Player") then
  1152. table.insert(options, v.Name)
  1153. end
  1154. end
  1155. end
  1156. end
  1157.  
  1158. things.dropdownb = lib:Create("ImageLabel", {
  1159. Name = Name.."DropDown",
  1160. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  1161. BackgroundTransparency = 1.000,
  1162. BorderColor3 = Color3.fromRGB(27, 42, 53),
  1163. Position = UDim2.new(0, 11, 0, 40),
  1164. Size = UDim2.new(0, 500, 0, 30),
  1165. ImageTransparency = 1,
  1166. Image = "rbxassetid://3570695787",
  1167. ImageColor3 = Color3.fromRGB(29, 29, 35),
  1168. ScaleType = Enum.ScaleType.Slice,
  1169. SliceCenter = Rect.new(100, 100, 100, 100),
  1170. SliceScale = 0.040,
  1171. })
  1172. things.dropdownb.ClipsDescendants = true
  1173.  
  1174. things.dropdown = lib:Create("ImageButton", {
  1175. Name = Name.."DropDown",
  1176. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  1177. BackgroundTransparency = 1.000,
  1178. BorderColor3 = Color3.fromRGB(27, 42, 53),
  1179. Position = UDim2.new(0, 0, 0, 0),
  1180. Size = UDim2.new(0, 500, 0, 30),
  1181. AutoButtonColor = false,
  1182. Image = "rbxassetid://3570695787",
  1183. ImageColor3 = Color3.fromRGB(29, 29, 35),
  1184. ScaleType = Enum.ScaleType.Slice,
  1185. SliceCenter = Rect.new(100, 100, 100, 100),
  1186. SliceScale = 0.040,
  1187. })
  1188.  
  1189. things.arrow = lib:Create("ImageLabel", {
  1190. Name = "Arrow",
  1191. Active = true,
  1192. BackgroundColor3 = Color3.fromRGB(248, 248, 248),
  1193. BackgroundTransparency = 1.000,
  1194. BorderColor3 = Color3.fromRGB(27, 42, 53),
  1195. BorderSizePixel = 0,
  1196. Position = UDim2.new(0.940401852, 0, 0.0333333351, 0),
  1197. Rotation = 90.000,
  1198. Selectable = true,
  1199. Size = UDim2.new(0, 28, 0, 28),
  1200. Image = "http://www.roblox.com/asset/?id=5054982349",
  1201. })
  1202.  
  1203. things.selected = lib:Create("TextLabel", {
  1204. Active = false,
  1205. BackgroundColor3 = Color3.fromRGB(248, 248, 248),
  1206. BackgroundTransparency = 1.000,
  1207. BorderSizePixel = 0,
  1208. Position = UDim2.new(0, 4, 0, 0),
  1209. Selectable = false,
  1210. Size = UDim2.new(0.200000003, 200, 1, 0),
  1211. Font = Enum.Font.GothamBold,
  1212. Text = tostring(things.value),
  1213. TextColor3 = Color3.fromRGB(255, 255, 255),
  1214. TextSize = 18.000,
  1215. TextXAlignment = Enum.TextXAlignment.Left,
  1216. })
  1217.  
  1218. things.listb = lib:Create("ImageLabel", {
  1219. Active = true,
  1220. BackgroundColor3 = Color3.fromRGB(248, 248, 248),
  1221. BackgroundTransparency = 1.000,
  1222. BorderColor3 = Color3.fromRGB(27, 42, 53),
  1223. Position = UDim2.new(0, 0, 0, 40),
  1224. Selectable = true,
  1225. Size = UDim2.new(0, 500, 0, 120),
  1226. ZIndex = 2,
  1227. Image = "rbxassetid://3570695787",
  1228. ImageColor3 = Color3.fromRGB(34, 34, 41),
  1229. ScaleType = Enum.ScaleType.Slice,
  1230. SliceCenter = Rect.new(100, 100, 100, 100),
  1231. SliceScale = 0.040,
  1232. })
  1233. things.list = lib:Create("ScrollingFrame", {
  1234. Active = true,
  1235. BackgroundColor3 = Color3.fromRGB(29, 29, 35),
  1236. BackgroundTransparency = 1.000,
  1237. BorderSizePixel = 0,
  1238. Size = UDim2.new(1, 0, 1, 0),
  1239. ZIndex = 2,
  1240. CanvasSize = UDim2.new(0, 0, 0, 0),
  1241. ScrollBarThickness = 0,
  1242. })
  1243.  
  1244. local tlistlayout = lib:Create("UIListLayout", {
  1245. SortOrder = Enum.SortOrder.LayoutOrder,
  1246. Padding = UDim.new(0, 10)
  1247. })
  1248.  
  1249. tlistlayout.Parent = things.list
  1250. tlistlayout = nil
  1251.  
  1252. local tpadding = lib:Create("UIPadding", {
  1253. PaddingBottom = UDim.new(0, 10),
  1254. PaddingLeft = UDim.new(0, 10),
  1255. PaddingTop = UDim.new(0, 10),
  1256. })
  1257.  
  1258. tpadding.Parent = things.list
  1259. tpadding = nil
  1260.  
  1261. sections.container.Size = sections.container.Size + UDim2.new(0,0,0,40)
  1262. sections.containerthings.Size = sections.containerthings.Size + UDim2.new(0,0,0,40)
  1263. categories.scrollingframe.CanvasSize = categories.scrollingframe.CanvasSize + UDim2.new(0,0,0,40)
  1264.  
  1265. things.dropdownb.Parent = sections.containerthings
  1266. things.dropdown.Parent = things.dropdownb
  1267. things.arrow.Parent = things.dropdown
  1268. things.selected.Parent = things.dropdown
  1269. things.listb.Parent = things.dropdown
  1270. things.list.Parent = things.listb
  1271.  
  1272. things.dropdownopen = false
  1273.  
  1274. sections.containerthings.Position = UDim2.new(0, 0, 0, sections.container.Size.Y.Offset-sections.containerthings.Size.Y.Offset-6)
  1275. local function refreshlist()
  1276.  
  1277. for i,v in next, things.list:GetChildren() do
  1278. if v:IsA("ImageButton") then
  1279. v:Destroy()
  1280. end
  1281. end
  1282.  
  1283. for i,v in next, options do
  1284. local button = lib:Create("ImageButton", {
  1285. AnchorPoint = Vector2.new(0.5, 0.5),
  1286. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  1287. BackgroundTransparency = 1.000,
  1288. BorderColor3 = Color3.fromRGB(27, 42, 53),
  1289. Position = UDim2.new(0, 252, 0, 0),
  1290. Size = UDim2.new(0, 480, 0, 30),
  1291. ZIndex = 2,
  1292. AutoButtonColor = false,
  1293. Image = "rbxassetid://3570695787",
  1294. ImageColor3 = Color3.fromRGB(29, 29, 35),
  1295. ScaleType = Enum.ScaleType.Slice,
  1296. SliceCenter = Rect.new(100, 100, 100, 100),
  1297. SliceScale = 0.040,
  1298. })
  1299.  
  1300. local buttontext = lib:Create("TextLabel", {
  1301. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  1302. BackgroundTransparency = 1.000,
  1303. BorderSizePixel = 0,
  1304. Position = UDim2.new(0.5, -200, 0, 0),
  1305. Size = UDim2.new(0, 400, 1, 0),
  1306. ZIndex = 2,
  1307. Font = Enum.Font.GothamBold,
  1308. Text = v,
  1309. TextColor3 = Color3.fromRGB(255, 255, 255),
  1310. TextSize = 18.000,
  1311. })
  1312.  
  1313. button.Parent = things.list
  1314. buttontext.Parent = button
  1315.  
  1316. button.MouseButton1Click:Connect(function()
  1317. if things.dropdownopen then
  1318.  
  1319. things.dropdownopen = not things.dropdownopen
  1320. things.selected.Text = v
  1321. things.value = v
  1322.  
  1323. if things.dropdownopen then
  1324. refreshlist()
  1325. game:GetService("TweenService"):Create(sections.container, TweenInfo.new(0.1), {Size = sections.container.Size + UDim2.new(0,0,0,130)}):Play()
  1326. game:GetService("TweenService"):Create(things.dropdownb, TweenInfo.new(0.1), {Size = UDim2.new(0,500,0,154)}):Play()
  1327. game:GetService("TweenService"):Create(categories.scrollingframe, TweenInfo.new(0.1), {CanvasSize = categories.scrollingframe.CanvasSize + UDim2.new(0,0,0,124)}):Play()
  1328. game:GetService("TweenService"):Create(things.list, TweenInfo.new(0.1), {CanvasSize = UDim2.new(0, 0, 0, things.list["UIListLayout"].AbsoluteContentSize.Y) + UDim2.new(0,0,0,26)}):Play()
  1329. game:GetService("TweenService"):Create(things.arrow, TweenInfo.new(0.1), {Rotation = 0}):Play()
  1330. else
  1331. refreshlist()
  1332. game:GetService("TweenService"):Create(sections.container, TweenInfo.new(0.1), {Size = sections.container.Size - UDim2.new(0,0,0,130)}):Play()
  1333. game:GetService("TweenService"):Create(things.dropdownb, TweenInfo.new(0.1), {Size = UDim2.new(0, 500,0,30)}):Play()
  1334. game:GetService("TweenService"):Create(categories.scrollingframe, TweenInfo.new(0.1), {CanvasSize = categories.scrollingframe.CanvasSize - UDim2.new(0,0,0,124)}):Play()
  1335. game:GetService("TweenService"):Create(things.arrow, TweenInfo.new(0.1), {Rotation = 90}):Play()
  1336. end
  1337.  
  1338. if CallBack then
  1339. CallBack(things.value)
  1340. end
  1341. end
  1342. end)
  1343. end
  1344. end
  1345.  
  1346. refreshlist()
  1347.  
  1348. things.dropdown.MouseButton1Click:Connect(function()
  1349. things.dropdownopen = not things.dropdownopen
  1350.  
  1351. if Others then
  1352. if Others.options and not Others.playerlist then
  1353. options = Others.options
  1354. elseif Others.options and Others.playerlist then
  1355. options = {}
  1356.  
  1357. for g,f in pairs(Others.options) do
  1358. table.insert(options, f)
  1359. end
  1360. local list = game:GetService("Players"):GetChildren()
  1361. if not Others.plotlist then
  1362. for i,v in pairs(list) do
  1363. if v:IsA("Player") then
  1364. table.insert(options, v.Name)
  1365. end
  1366. end
  1367. else
  1368. for i,v in pairs(list) do
  1369. if v:IsA("Player") then
  1370. table.insert(options, v.Name)
  1371.  
  1372. table.insert(options, v.Name.."'s Plot")
  1373. end
  1374. end
  1375. end
  1376. elseif not Others.options and Others.playerlist then
  1377. options = {}
  1378. local list = game:GetService("Players"):GetChildren()
  1379. for i,v in pairs(list) do
  1380. if v:IsA("Player") then
  1381. table.insert(options, v.Name)
  1382. end
  1383. end
  1384. end
  1385. end
  1386.  
  1387.  
  1388. if things.dropdownopen then
  1389. refreshlist()
  1390. game:GetService("TweenService"):Create(sections.container, TweenInfo.new(0.1), {Size = sections.container.Size + UDim2.new(0,0,0,130)}):Play()
  1391. game:GetService("TweenService"):Create(things.dropdownb, TweenInfo.new(0.1), {Size = UDim2.new(0,500,0,154)}):Play()
  1392. game:GetService("TweenService"):Create(categories.scrollingframe, TweenInfo.new(0.1), {CanvasSize = categories.scrollingframe.CanvasSize + UDim2.new(0,0,0,124)}):Play()
  1393. game:GetService("TweenService"):Create(things.list, TweenInfo.new(0.1), {CanvasSize = UDim2.new(0, 0, 0, things.list["UIListLayout"].AbsoluteContentSize.Y) + UDim2.new(0,0,0,26)}):Play()
  1394. game:GetService("TweenService"):Create(things.arrow, TweenInfo.new(0.1), {Rotation = 0}):Play()
  1395. else
  1396. refreshlist()
  1397. game:GetService("TweenService"):Create(sections.container, TweenInfo.new(0.1), {Size = sections.container.Size - UDim2.new(0,0,0,130)}):Play()
  1398. game:GetService("TweenService"):Create(things.dropdownb, TweenInfo.new(0.1), {Size = UDim2.new(0, 500,0,30)}):Play()
  1399. game:GetService("TweenService"):Create(categories.scrollingframe, TweenInfo.new(0.1), {CanvasSize = categories.scrollingframe.CanvasSize - UDim2.new(0,0,0,124)}):Play()
  1400. game:GetService("TweenService"):Create(things.arrow, TweenInfo.new(0.1), {Rotation = 90}):Play()
  1401. end
  1402.  
  1403. end)
  1404. elseif Others and Others.search then
  1405.  
  1406. if Others then
  1407. if Others.default and Others.options and not Others.playerlist then
  1408. things.value = Others.default
  1409. elseif Others.default and Others.options and Others.playerlist then
  1410. things.value = Others.default
  1411. elseif not Others.default and Others.options and Others.playerlist then
  1412. things.value = Others.options[1]
  1413. elseif not Others.default and Others.options and not Others.playerlist then
  1414. things.value = Others.options[1]
  1415. elseif not Others.default and not Others.options and Others.playerlist then
  1416. things.value = game:GetService("Players"):GetChildren()[1].Name
  1417. elseif Others.default and not Others.options and not Others.playerlist then
  1418. things.value = Others.default
  1419. elseif Others.default and not Others.options and Others.playerlist then
  1420. things.value = Others.default
  1421. end
  1422. end
  1423.  
  1424. local options
  1425.  
  1426. if Others then
  1427. if Others.options and not Others.playerlist then
  1428. options = Others.options
  1429. elseif Others.options and Others.playerlist then
  1430. options = {}
  1431.  
  1432. for g,f in pairs(Others.options) do
  1433. table.insert(options, f)
  1434. end
  1435. local list = game:GetService("Players"):GetChildren()
  1436. if not Others.plotlist then
  1437. for i,v in pairs(list) do
  1438. if v:IsA("Player") then
  1439. table.insert(options, v.Name)
  1440. end
  1441. end
  1442. else
  1443. for i,v in pairs(list) do
  1444. if v:IsA("Player") then
  1445. table.insert(options, v.Name)
  1446.  
  1447. table.insert(options, v.Name.."'s Plot")
  1448. end
  1449. end
  1450. end
  1451. elseif not Others.options and Others.playerlist then
  1452. options = {}
  1453. local list = game:GetService("Players"):GetChildren()
  1454. for i,v in pairs(list) do
  1455. if v:IsA("Player") then
  1456. table.insert(options, v.Name)
  1457. end
  1458. end
  1459. end
  1460. end
  1461.  
  1462. things.dropdownb = lib:Create("ImageLabel", {
  1463. Name = Name.."DropDown",
  1464. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  1465. BackgroundTransparency = 1.000,
  1466. BorderColor3 = Color3.fromRGB(27, 42, 53),
  1467. Position = UDim2.new(0, 11, 0, 40),
  1468. Size = UDim2.new(0, 500, 0, 30),
  1469. ImageTransparency = 1,
  1470. Image = "rbxassetid://3570695787",
  1471. ImageColor3 = Color3.fromRGB(29, 29, 35),
  1472. ScaleType = Enum.ScaleType.Slice,
  1473. SliceCenter = Rect.new(100, 100, 100, 100),
  1474. SliceScale = 0.040,
  1475. })
  1476. things.dropdownb.ClipsDescendants = true
  1477.  
  1478. things.dropdown = lib:Create("ImageButton", {
  1479. Name = Name.."DropDown",
  1480. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  1481. BackgroundTransparency = 1.000,
  1482. BorderColor3 = Color3.fromRGB(27, 42, 53),
  1483. Position = UDim2.new(0, 0, 0, 0),
  1484. Size = UDim2.new(0, 500, 0, 30),
  1485. AutoButtonColor = false,
  1486. Image = "rbxassetid://3570695787",
  1487. ImageColor3 = Color3.fromRGB(29, 29, 35),
  1488. ScaleType = Enum.ScaleType.Slice,
  1489. SliceCenter = Rect.new(100, 100, 100, 100),
  1490. SliceScale = 0.040,
  1491. })
  1492.  
  1493. things.arrow = lib:Create("ImageLabel", {
  1494. Name = "Arrow",
  1495. Active = true,
  1496. BackgroundColor3 = Color3.fromRGB(248, 248, 248),
  1497. BackgroundTransparency = 1.000,
  1498. BorderColor3 = Color3.fromRGB(27, 42, 53),
  1499. BorderSizePixel = 0,
  1500. Position = UDim2.new(0.940401852, 0, 0.0333333351, 0),
  1501. Rotation = 90.000,
  1502. Selectable = true,
  1503. Size = UDim2.new(0, 28, 0, 28),
  1504. Image = "http://www.roblox.com/asset/?id=5054982349",
  1505. })
  1506.  
  1507. things.selected = lib:Create("TextBox", {
  1508. Active = false,
  1509. BackgroundColor3 = Color3.fromRGB(248, 248, 248),
  1510. BackgroundTransparency = 1.000,
  1511. BorderSizePixel = 0,
  1512. Position = UDim2.new(0, 4, 0, 0),
  1513. Selectable = false,
  1514. Size = UDim2.new(0.200000003, 200, 1, 0),
  1515. Font = Enum.Font.GothamBold,
  1516. Text = tostring(things.value),
  1517. TextColor3 = Color3.fromRGB(255, 255, 255),
  1518. TextSize = 18.000,
  1519. TextXAlignment = Enum.TextXAlignment.Left,
  1520. })
  1521.  
  1522. things.listb = lib:Create("ImageLabel", {
  1523. Active = true,
  1524. BackgroundColor3 = Color3.fromRGB(248, 248, 248),
  1525. BackgroundTransparency = 1.000,
  1526. BorderColor3 = Color3.fromRGB(27, 42, 53),
  1527. Position = UDim2.new(0, 0, 0, 40),
  1528. Selectable = true,
  1529. Size = UDim2.new(0, 500, 0, 120),
  1530. ZIndex = 2,
  1531. Image = "rbxassetid://3570695787",
  1532. ImageColor3 = Color3.fromRGB(34, 34, 41),
  1533. ScaleType = Enum.ScaleType.Slice,
  1534. SliceCenter = Rect.new(100, 100, 100, 100),
  1535. SliceScale = 0.040,
  1536. })
  1537. things.list = lib:Create("ScrollingFrame", {
  1538. Active = true,
  1539. BackgroundColor3 = Color3.fromRGB(29, 29, 35),
  1540. BackgroundTransparency = 1.000,
  1541. BorderSizePixel = 0,
  1542. Size = UDim2.new(1, 0, 1, 0),
  1543. ZIndex = 2,
  1544. CanvasSize = UDim2.new(0, 0, 0, 0),
  1545. ScrollBarThickness = 0,
  1546. })
  1547.  
  1548. local tlistlayout = lib:Create("UIListLayout", {
  1549. SortOrder = Enum.SortOrder.LayoutOrder,
  1550. Padding = UDim.new(0, 10)
  1551. })
  1552.  
  1553. tlistlayout.Parent = things.list
  1554. tlistlayout = nil
  1555.  
  1556. local tpadding = lib:Create("UIPadding", {
  1557. PaddingBottom = UDim.new(0, 10),
  1558. PaddingLeft = UDim.new(0, 10),
  1559. PaddingTop = UDim.new(0, 10),
  1560. })
  1561.  
  1562. tpadding.Parent = things.list
  1563. tpadding = nil
  1564.  
  1565. sections.container.Size = sections.container.Size + UDim2.new(0,0,0,40)
  1566. sections.containerthings.Size = sections.containerthings.Size + UDim2.new(0,0,0,40)
  1567. categories.scrollingframe.CanvasSize = categories.scrollingframe.CanvasSize + UDim2.new(0,0,0,40)
  1568.  
  1569. things.dropdownb.Parent = sections.containerthings
  1570. things.dropdown.Parent = things.dropdownb
  1571. things.arrow.Parent = things.dropdown
  1572. things.selected.Parent = things.dropdown
  1573. things.listb.Parent = things.dropdown
  1574. things.list.Parent = things.listb
  1575.  
  1576. things.dropdownopen = false
  1577.  
  1578. sections.containerthings.Position = UDim2.new(0, 0, 0, sections.container.Size.Y.Offset-sections.containerthings.Size.Y.Offset-6)
  1579. local function refreshlist()
  1580.  
  1581. for i,v in next, things.list:GetChildren() do
  1582. if v:IsA("ImageButton") then
  1583. v:Destroy()
  1584. end
  1585. end
  1586.  
  1587. for i,v in next, options do
  1588. local button = lib:Create("ImageButton", {
  1589. Name = string.lower(v),
  1590. AnchorPoint = Vector2.new(0.5, 0.5),
  1591. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  1592. BackgroundTransparency = 1.000,
  1593. BorderColor3 = Color3.fromRGB(27, 42, 53),
  1594. Position = UDim2.new(0, 252, 0, 0),
  1595. Size = UDim2.new(0, 480, 0, 30),
  1596. ZIndex = 2,
  1597. AutoButtonColor = false,
  1598. Image = "rbxassetid://3570695787",
  1599. ImageColor3 = Color3.fromRGB(29, 29, 35),
  1600. ScaleType = Enum.ScaleType.Slice,
  1601. SliceCenter = Rect.new(100, 100, 100, 100),
  1602. SliceScale = 0.040,
  1603. })
  1604.  
  1605. local buttontext = lib:Create("TextLabel", {
  1606. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  1607. BackgroundTransparency = 1.000,
  1608. BorderSizePixel = 0,
  1609. Position = UDim2.new(0.5, -200, 0, 0),
  1610. Size = UDim2.new(0, 400, 1, 0),
  1611. ZIndex = 2,
  1612. Font = Enum.Font.GothamBold,
  1613. Text = v,
  1614. TextColor3 = Color3.fromRGB(255, 255, 255),
  1615. TextSize = 18.000,
  1616. })
  1617.  
  1618. button.Parent = things.list
  1619. buttontext.Parent = button
  1620.  
  1621. button.MouseButton1Click:Connect(function()
  1622. if things.dropdownopen then
  1623.  
  1624. things.dropdownopen = not things.dropdownopen
  1625. things.selected.Text = v
  1626. things.value = v
  1627.  
  1628. if things.dropdownopen then
  1629.  
  1630. refreshlist()
  1631. game:GetService("TweenService"):Create(sections.container, TweenInfo.new(0.1), {Size = sections.container.Size + UDim2.new(0,0,0,130)}):Play()
  1632. game:GetService("TweenService"):Create(things.dropdownb, TweenInfo.new(0.1), {Size = UDim2.new(0,500,0,154)}):Play()
  1633. game:GetService("TweenService"):Create(categories.scrollingframe, TweenInfo.new(0.1), {CanvasSize = categories.scrollingframe.CanvasSize + UDim2.new(0,0,0,124)}):Play()
  1634. game:GetService("TweenService"):Create(things.list, TweenInfo.new(0.1), {CanvasSize = UDim2.new(0, 0, 0, things.list["UIListLayout"].AbsoluteContentSize.Y) + UDim2.new(0,0,0,26)}):Play()
  1635. game:GetService("TweenService"):Create(things.arrow, TweenInfo.new(0.1), {Rotation = 0}):Play()
  1636. else
  1637.  
  1638. refreshlist()
  1639. game:GetService("TweenService"):Create(sections.container, TweenInfo.new(0.1), {Size = sections.container.Size - UDim2.new(0,0,0,130)}):Play()
  1640. game:GetService("TweenService"):Create(things.dropdownb, TweenInfo.new(0.1), {Size = UDim2.new(0, 500,0,30)}):Play()
  1641. game:GetService("TweenService"):Create(categories.scrollingframe, TweenInfo.new(0.1), {CanvasSize = categories.scrollingframe.CanvasSize - UDim2.new(0,0,0,124)}):Play()
  1642. game:GetService("TweenService"):Create(things.arrow, TweenInfo.new(0.1), {Rotation = 90}):Play()
  1643. end
  1644.  
  1645. if CallBack then
  1646. CallBack(things.value)
  1647. end
  1648. end
  1649. end)
  1650. end
  1651. end
  1652.  
  1653. refreshlist()
  1654.  
  1655. things.dropdown.MouseButton1Click:Connect(function()
  1656. things.dropdownopen = not things.dropdownopen
  1657.  
  1658. if Others then
  1659. if Others.options and not Others.playerlist then
  1660. options = Others.options
  1661. elseif Others.options and Others.playerlist then
  1662. options = {}
  1663.  
  1664. for g,f in pairs(Others.options) do
  1665. table.insert(options, f)
  1666. end
  1667. local list = game:GetService("Players"):GetChildren()
  1668. if not Others.plotlist then
  1669. for i,v in pairs(list) do
  1670. if v:IsA("Player") then
  1671. table.insert(options, v.Name)
  1672. end
  1673. end
  1674. else
  1675. for i,v in pairs(list) do
  1676. if v:IsA("Player") then
  1677. table.insert(options, v.Name)
  1678.  
  1679. table.insert(options, v.Name.."'s Plot")
  1680. end
  1681. end
  1682. end
  1683. elseif not Others.options and Others.playerlist then
  1684. options = {}
  1685. local list = game:GetService("Players"):GetChildren()
  1686. for i,v in pairs(list) do
  1687. if v:IsA("Player") then
  1688. table.insert(options, v.Name)
  1689. end
  1690. end
  1691. end
  1692. end
  1693.  
  1694.  
  1695. if things.dropdownopen then
  1696.  
  1697. refreshlist()
  1698. game:GetService("TweenService"):Create(sections.container, TweenInfo.new(0.1), {Size = sections.container.Size + UDim2.new(0,0,0,130)}):Play()
  1699. game:GetService("TweenService"):Create(things.dropdownb, TweenInfo.new(0.1), {Size = UDim2.new(0,500,0,154)}):Play()
  1700. game:GetService("TweenService"):Create(categories.scrollingframe, TweenInfo.new(0.1), {CanvasSize = categories.scrollingframe.CanvasSize + UDim2.new(0,0,0,124)}):Play()
  1701. game:GetService("TweenService"):Create(things.list, TweenInfo.new(0.1), {CanvasSize = UDim2.new(0, 0, 0, things.list["UIListLayout"].AbsoluteContentSize.Y) + UDim2.new(0,0,0,26)}):Play()
  1702. game:GetService("TweenService"):Create(things.arrow, TweenInfo.new(0.1), {Rotation = 0}):Play()
  1703. else
  1704.  
  1705. refreshlist()
  1706. game:GetService("TweenService"):Create(sections.container, TweenInfo.new(0.1), {Size = sections.container.Size - UDim2.new(0,0,0,130)}):Play()
  1707. game:GetService("TweenService"):Create(things.dropdownb, TweenInfo.new(0.1), {Size = UDim2.new(0, 500,0,30)}):Play()
  1708. game:GetService("TweenService"):Create(categories.scrollingframe, TweenInfo.new(0.1), {CanvasSize = categories.scrollingframe.CanvasSize - UDim2.new(0,0,0,124)}):Play()
  1709. game:GetService("TweenService"):Create(things.arrow, TweenInfo.new(0.1), {Rotation = 90}):Play()
  1710. end
  1711.  
  1712. end)
  1713.  
  1714. local Found = {}
  1715. local searchtable = {}
  1716.  
  1717. for i,v in pairs(options) do
  1718. table.insert(searchtable, string.lower(v))
  1719. end
  1720.  
  1721. local function Edit()
  1722. for i in pairs(Found) do
  1723. Found[i] = nil
  1724. end
  1725. for h,l in pairs(things.list:GetChildren()) do
  1726. if not l:IsA("UIListLayout") and not l:IsA("UIPadding") then
  1727. l.Visible = false
  1728. end
  1729. end
  1730. things.selected.Text = string.lower(things.selected.Text)
  1731. end
  1732.  
  1733. local function Search()
  1734. local Results = {}
  1735. local num
  1736. for i,v in pairs(searchtable) do
  1737. if string.find(v, things.selected.Text) then
  1738. table.insert(Found, v)
  1739. end
  1740. end
  1741. for a,b in pairs(things.list:GetChildren()) do
  1742. for c,d in pairs(Found) do
  1743. if d == b.Name then
  1744. b.Visible = true
  1745. end
  1746. end
  1747. end
  1748. for p,n in pairs(things.list:GetChildren()) do
  1749. if not n:IsA("UIListLayout") and not n:IsA("UIPadding") and n.Visible == true then
  1750. table.insert(Results, n)
  1751. for c,d in pairs(Results) do
  1752. num = c
  1753. howmany = c
  1754. end
  1755. end
  1756. end
  1757. if num ~= nil then
  1758. num = num*40
  1759. things.list.CanvasSize = UDim2.new(0, 0, 0, num) + UDim2.new(0, 0, 0, 20)
  1760. num = 0
  1761. end
  1762. end
  1763.  
  1764. local SearchLock = true
  1765. things.selected.Changed:connect(function()
  1766. if not SearchLock then
  1767. Edit()
  1768. Search()
  1769. end
  1770. if things.selected.Text == "" then
  1771. Nil()
  1772. game:GetService("TweenService"):Create(things.list, TweenInfo.new(0.1), {CanvasSize = UDim2.new(0, 0, 0, things.list["UIListLayout"].AbsoluteContentSize.Y) + UDim2.new(0,0,0,26)}):Play()
  1773. end
  1774. end)
  1775.  
  1776. local function Nil()
  1777. for i,v in pairs(things.list:GetChildren()) do
  1778. if not v:IsA("UIListLayout") and not v:IsA("UIPadding") and v.Visible == false then
  1779. game:GetService("TweenService"):Create(things.list, TweenInfo.new(0.1), {CanvasSize = UDim2.new(0, 0, 0, things.list["UIListLayout"].AbsoluteContentSize.Y) + UDim2.new(0,0,0,26)}):Play()
  1780. v.Visible = true
  1781. end
  1782. end
  1783. end
  1784.  
  1785. things.selected.FocusLost:connect(function()
  1786. SearchLock = true
  1787. if things.selected.Text == "" then
  1788. game:GetService("TweenService"):Create(things.list, TweenInfo.new(0.1), {CanvasSize = UDim2.new(0, 0, 0, things.list["UIListLayout"].AbsoluteContentSize.Y) + UDim2.new(0,0,0,26)}):Play()
  1789. SearchLock = true
  1790. Nil()
  1791. things.selected.Text = "Search..."
  1792. end
  1793. end)
  1794.  
  1795. things.selected.Focused:connect(function()
  1796. SearchLock = false
  1797. end)
  1798. end
  1799. elseif string.lower(Type) == "colorpicker" then
  1800. things.colorpickerb = lib:Create("ImageButton", {
  1801. BackgroundColor3 = Color3.fromRGB(248, 248, 248),
  1802. BackgroundTransparency = 1.000,
  1803. BorderColor3 = Color3.fromRGB(27, 42, 53),
  1804. Position = UDim2.new(0, 11, 0, 125),
  1805. Size = UDim2.new(0, 500, 0, 35),
  1806. Image = "rbxassetid://3570695787",
  1807. ImageColor3 = Color3.fromRGB(29, 29, 35),
  1808. ScaleType = Enum.ScaleType.Slice,
  1809. SliceCenter = Rect.new(100, 100, 100, 100),
  1810. SliceScale = 0.040,
  1811. })
  1812.  
  1813. things.colorpickertext = lib:Create("TextLabel", {
  1814. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  1815. BackgroundTransparency = 1.000,
  1816. BorderSizePixel = 0,
  1817. Position = UDim2.new(0, 4, 0, 2),
  1818. Size = UDim2.new(0, 200, 0, 30),
  1819. Font = Enum.Font.GothamBold,
  1820. Text = Name,
  1821. TextColor3 = Color3.fromRGB(255, 255, 255),
  1822. TextSize = 18.000,
  1823. TextXAlignment = Enum.TextXAlignment.Left,
  1824. })
  1825. things.colorpickerbutton = lib:Create("ImageLabel", {
  1826. Active = true,
  1827. BackgroundColor3 = Color3.fromRGB(248, 248, 248),
  1828. BackgroundTransparency = 1.000,
  1829. BorderSizePixel = 0,
  1830. Position = UDim2.new(0, 420, 0, 2),
  1831. Selectable = true,
  1832. Size = UDim2.new(0, 70, 0, 26),
  1833. Image = "rbxassetid://3570695787",
  1834. ImageColor3 = Color3.fromRGB(255, 0, 4),
  1835. ScaleType = Enum.ScaleType.Slice,
  1836. SliceCenter = Rect.new(100, 100, 100, 100),
  1837. SliceScale = 0.040,
  1838. })
  1839.  
  1840. things.colorpickerframeb = lib:Create("Frame", {
  1841. Name = "colorframe",
  1842. BackgroundColor3 = Color3.fromRGB(46, 46, 54),
  1843. BorderSizePixel = 0,
  1844. Position = UDim2.new(0, 708, 0, 0),
  1845. Size = UDim2.new(0, 0, 0, 205),
  1846. BackgroundTransparency = 1,
  1847. })
  1848. things.colorpickerframeb.ClipsDescendants = true
  1849.  
  1850. things.colorpickerframe = lib:Create("Frame", {
  1851. BackgroundColor3 = Color3.fromRGB(46, 46, 54),
  1852. BorderSizePixel = 0,
  1853. Position = UDim2.new(0, 0, 0, 0),
  1854. Size = UDim2.new(0, 190, 0, 205),
  1855. })
  1856. things.colorpickerframe.ClipsDescendants = true
  1857.  
  1858. things.colorpickerupline = lib:Create("Frame", {
  1859. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  1860. BorderSizePixel = 0,
  1861. Position = UDim2.new(0, 0, 0, 0),
  1862. Size = UDim2.new(1, 0, 0, 4),
  1863. })
  1864.  
  1865. things.colorpickeruplinegradient = lib:Create("UIGradient", {
  1866. Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(0, 183, 183)), ColorSequenceKeypoint.new(0.00, Color3.fromRGB(0, 248, 248)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(125, 92, 164))},
  1867. })
  1868.  
  1869. things.rback = lib:Create("ImageLabel", {
  1870. Active = true,
  1871. AnchorPoint = Vector2.new(0.5, 0.5),
  1872. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  1873. BackgroundTransparency = 1.000,
  1874. Position = UDim2.new(0, 35, 0, 165),
  1875. Selectable = true,
  1876. Size = UDim2.new(0, 50, 0, 20),
  1877. ZIndex = 2,
  1878. Image = "rbxassetid://3570695787",
  1879. ImageColor3 = Color3.fromRGB(29, 29, 35),
  1880. ScaleType = Enum.ScaleType.Slice,
  1881. SliceCenter = Rect.new(100, 100, 100, 100),
  1882. SliceScale = 0.040,
  1883. })
  1884.  
  1885. things.rvalue = lib:Create("TextLabel", {
  1886. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  1887. BackgroundTransparency = 1.000,
  1888. Position = UDim2.new(0, 18, 0, 3),
  1889. Size = UDim2.new(0, 25, 0, 15),
  1890. ZIndex = 2,
  1891. Font = Enum.Font.GothamBold,
  1892. Text = "255",
  1893. TextColor3 = Color3.fromRGB(255, 255, 255),
  1894. TextSize = 11.000,
  1895. })
  1896.  
  1897. things.rtext = lib:Create("TextLabel", {
  1898. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  1899. BackgroundTransparency = 1.000,
  1900. Position = UDim2.new(0, 4, 0, 3),
  1901. Size = UDim2.new(0, 15, 0, 15),
  1902. ZIndex = 2,
  1903. Font = Enum.Font.GothamBold,
  1904. Text = "R:",
  1905. TextColor3 = Color3.fromRGB(255, 255, 255),
  1906. TextSize = 14.000,
  1907. })
  1908.  
  1909. things.gback = lib:Create("ImageLabel", {
  1910. Active = true,
  1911. AnchorPoint = Vector2.new(0.5, 0.5),
  1912. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  1913. BackgroundTransparency = 1.000,
  1914. BorderSizePixel = 0,
  1915. Position = UDim2.new(0.5, 0, 0, 165),
  1916. Selectable = true,
  1917. Size = UDim2.new(0, 50, 0, 20),
  1918. ZIndex = 2,
  1919. Image = "rbxassetid://3570695787",
  1920. ImageColor3 = Color3.fromRGB(29, 29, 35),
  1921. ScaleType = Enum.ScaleType.Slice,
  1922. SliceCenter = Rect.new(100, 100, 100, 100),
  1923. SliceScale = 0.040,
  1924. })
  1925.  
  1926. things.gvalue = lib:Create("TextLabel", {
  1927. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  1928. BackgroundTransparency = 1.000,
  1929. Position = UDim2.new(0, 18, 0, 3),
  1930. Size = UDim2.new(0, 25, 0, 15),
  1931. ZIndex = 2,
  1932. Font = Enum.Font.GothamBold,
  1933. Text = "255",
  1934. TextColor3 = Color3.fromRGB(255, 255, 255),
  1935. TextSize = 11.000,
  1936. })
  1937.  
  1938. things.gtext = lib:Create("TextLabel", {
  1939. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  1940. BackgroundTransparency = 1.000,
  1941. Position = UDim2.new(0, 4, 0, 3),
  1942. Size = UDim2.new(0, 15, 0, 15),
  1943. ZIndex = 2,
  1944. Font = Enum.Font.GothamBold,
  1945. Text = "G:",
  1946. TextColor3 = Color3.fromRGB(255, 255, 255),
  1947. TextSize = 14.000,
  1948. TextWrapped = true,
  1949. })
  1950.  
  1951. things.bback = lib:Create("ImageLabel", {
  1952. Active = true,
  1953. AnchorPoint = Vector2.new(0.5, 0.5),
  1954. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  1955. BackgroundTransparency = 1.000,
  1956. Position = UDim2.new(0, 155, 0, 165),
  1957. Selectable = true,
  1958. Size = UDim2.new(0, 50, 0, 20),
  1959. Image = "rbxassetid://3570695787",
  1960. ImageColor3 = Color3.fromRGB(29, 29, 35),
  1961. ScaleType = Enum.ScaleType.Slice,
  1962. SliceCenter = Rect.new(100, 100, 100, 100),
  1963. SliceScale = 0.040,
  1964. })
  1965.  
  1966. things.bvalue = lib:Create("TextLabel", {
  1967. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  1968. BackgroundTransparency = 1.000,
  1969. Position = UDim2.new(0, 18, 0, 3),
  1970. Size = UDim2.new(0, 25, 0, 15),
  1971. ZIndex = 2,
  1972. Font = Enum.Font.GothamBold,
  1973. Text = "255",
  1974. TextColor3 = Color3.fromRGB(255, 255, 255),
  1975. TextSize = 11.000,
  1976. })
  1977.  
  1978. things.btext = lib:Create("TextLabel", {
  1979. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  1980. BackgroundTransparency = 1.000,
  1981. Position = UDim2.new(0, 4, 0, 3),
  1982. Size = UDim2.new(0, 15, 0, 15),
  1983. ZIndex = 2,
  1984. Font = Enum.Font.GothamBold,
  1985. Text = "B:",
  1986. TextColor3 = Color3.fromRGB(255, 255, 255),
  1987. TextSize = 14.000,
  1988. })
  1989.  
  1990. things.sback = lib:Create("ImageLabel", {
  1991. BackgroundColor3 = Color3.fromRGB(46, 46, 54),
  1992. BackgroundTransparency = 1.000,
  1993. BorderSizePixel = 0,
  1994. Position = UDim2.new(0.0469999984, 0, 0, 10),
  1995. Size = UDim2.new(0, 140, 0, 140),
  1996. ZIndex = 2,
  1997. Image = "rbxassetid://4695575676",
  1998. ImageColor3 = Color3.fromRGB(46, 46, 54),
  1999. ScaleType = Enum.ScaleType.Slice,
  2000. SliceCenter = Rect.new(128, 128, 128, 128),
  2001. SliceScale = 0.040,
  2002. })
  2003.  
  2004. things.sat = lib:Create("ImageButton", {
  2005. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  2006. BorderColor3 = Color3.fromRGB(221, 221, 221),
  2007. BorderSizePixel = 0,
  2008. Size = UDim2.new(0, 140, 0, 140),
  2009. AutoButtonColor = false,
  2010. Image = "http://www.roblox.com/asset/?id=5113592272",
  2011. ImageColor3 = Color3.fromRGB(255, 0, 0),
  2012. })
  2013.  
  2014. things.light = lib:Create("ImageLabel", {
  2015. BackgroundTransparency = 1.000,
  2016. BorderSizePixel = 0,
  2017. Size = UDim2.new(1, 0, 1, 0),
  2018. Image = "http://www.roblox.com/asset/?id=5113600420",
  2019. })
  2020.  
  2021. things.ring = lib:Create("ImageLabel", {
  2022. AnchorPoint = Vector2.new(0.5, 0.5),
  2023. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  2024. BackgroundTransparency = 1.000,
  2025. Position = UDim2.new(0, 140, 0, 0),
  2026. Size = UDim2.new(0, 10, 0, 10),
  2027. SizeConstraint = Enum.SizeConstraint.RelativeYY,
  2028. ZIndex = 5,
  2029. Image = "rbxassetid://244221613",
  2030. ImageColor3 = Color3.fromRGB(0, 0, 0),
  2031. })
  2032.  
  2033. things.rainbowback = lib:Create("ImageLabel", {
  2034. BackgroundColor3 = Color3.fromRGB(46, 46, 54),
  2035. BackgroundTransparency = 1.000,
  2036. BorderSizePixel = 0,
  2037. Position = UDim2.new(0, 160, 0, 10),
  2038. Size = UDim2.new(0, 20, 0, 140),
  2039. ZIndex = 2,
  2040. Image = "rbxassetid://4695575676",
  2041. ImageColor3 = Color3.fromRGB(46, 46, 54),
  2042. ScaleType = Enum.ScaleType.Slice,
  2043. SliceCenter = Rect.new(128, 128, 128, 128),
  2044. SliceScale = 0.040,
  2045. })
  2046.  
  2047. things.rainbow = lib:Create("ImageButton", {
  2048. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  2049. BackgroundTransparency = 1.000,
  2050. BorderSizePixel = 0,
  2051. Size = UDim2.new(0, 20, 0, 140),
  2052. Image = "http://www.roblox.com/asset/?id=5118428654",
  2053. })
  2054.  
  2055. things.rainbowlocation = lib:Create("Frame", {
  2056. BackgroundColor3 = Color3.fromRGB(23, 23, 23),
  2057. BorderSizePixel = 0,
  2058. Size = UDim2.new(0, 20, 0, 2),
  2059. })
  2060.  
  2061. things.rainbowtoggle = lib:Create("ImageButton", {
  2062. Active = false,
  2063. BackgroundColor3 = Color3.fromRGB(248, 248, 248),
  2064. BackgroundTransparency = 1.000,
  2065. BorderSizePixel = 0,
  2066. Position = UDim2.new(0.0529999994, 0, 0, 180),
  2067. Selectable = false,
  2068. Size = UDim2.new(0, 172, 0, 20),
  2069. Image = "rbxassetid://3570695787",
  2070. ImageColor3 = Color3.fromRGB(29, 29, 35),
  2071. ScaleType = Enum.ScaleType.Slice,
  2072. SliceCenter = Rect.new(100, 100, 100, 100),
  2073. SliceScale = 0.040,
  2074. })
  2075.  
  2076. things.rainbowtoggletext = lib:Create("TextLabel", {
  2077. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  2078. BackgroundTransparency = 1.000,
  2079. Position = UDim2.new(0, 1, 0, 2),
  2080. Size = UDim2.new(-0.529476523, 200, 0, 16),
  2081. Font = Enum.Font.GothamBold,
  2082. Text = "Rainbow",
  2083. TextColor3 = Color3.fromRGB(255, 255, 255),
  2084. TextSize = 14.000,
  2085. TextXAlignment = Enum.TextXAlignment.Left,
  2086. })
  2087.  
  2088. things.rainbowtoggleback = lib:Create("ImageLabel", {
  2089. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  2090. BackgroundTransparency = 1.000,
  2091. BorderSizePixel = 0,
  2092. Position = UDim2.new(0, 118, 0, 0),
  2093. Size = UDim2.new(0, 50, 0, 16),
  2094. Image = "rbxassetid://3570695787",
  2095. ImageColor3 = Color3.fromRGB(20, 20, 20),
  2096. ScaleType = Enum.ScaleType.Slice,
  2097. SliceCenter = Rect.new(100, 100, 100, 100),
  2098. SliceScale = 0.040,
  2099. })
  2100.  
  2101. things.rainbowtoggleonoff = lib:Create("ImageLabel", {
  2102. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  2103. BackgroundTransparency = 1.000,
  2104. BorderSizePixel = 0,
  2105. Position = UDim2.new(0, 2, 0, 2),
  2106. Size = UDim2.new(0, 20, 0, 12),
  2107. ZIndex = 2,
  2108. Image = "rbxassetid://3570695787",
  2109. ScaleType = Enum.ScaleType.Slice,
  2110. SliceCenter = Rect.new(100, 100, 100, 100),
  2111. SliceScale = 0.040,
  2112. })
  2113.  
  2114.  
  2115. things.colorpickerframeb.Parent = objects.Motherframe
  2116. things.colorpickerframe.Parent = things.colorpickerframeb
  2117. things.colorpickerupline.Parent = things.colorpickerframe
  2118. things.colorpickeruplinegradient.Parent = things.colorpickerupline
  2119. things.rback.Parent = things.colorpickerframe
  2120. things.rtext.Parent = things.rback
  2121. things.rvalue.Parent = things.rback
  2122. things.gback.Parent = things.colorpickerframe
  2123. things.gtext.Parent = things.gback
  2124. things.gvalue.Parent = things.gback
  2125. things.bback.Parent = things.colorpickerframe
  2126. things.btext.Parent = things.bback
  2127. things.bvalue.Parent = things.bback
  2128. things.sback.Parent = things.colorpickerframe
  2129. things.sat.Parent = things.sback
  2130. things.light.Parent = things.sat
  2131. things.ring.Parent = things.sat
  2132. things.rainbowback.Parent = things.colorpickerframe
  2133. things.rainbow.Parent = things.rainbowback
  2134. things.rainbowlocation.Parent = things.rainbow
  2135. things.rainbowtoggle.Parent = things.colorpickerframe
  2136. things.rainbowtoggletext.Parent = things.rainbowtoggle
  2137. things.rainbowtoggleback.Parent = things.rainbowtoggletext
  2138. things.rainbowtoggleonoff.Parent = things.rainbowtoggleback
  2139.  
  2140.  
  2141. sections.container.Size = sections.container.Size + UDim2.new(0,0,0,45)
  2142. sections.containerthings.Size = sections.containerthings.Size + UDim2.new(0,0,0,45)
  2143. categories.scrollingframe.CanvasSize = categories.scrollingframe.CanvasSize + UDim2.new(0,0,0,45)
  2144.  
  2145. things.colorpickerb.Parent = sections.containerthings
  2146. things.colorpickertext.Parent = things.colorpickerb
  2147. things.colorpickerbutton.Parent = things.colorpickertext
  2148.  
  2149. things.colorpickeropen = false
  2150.  
  2151. sections.containerthings.Position = UDim2.new(0, 0, 0, sections.container.Size.Y.Offset-sections.containerthings.Size.Y.Offset-6)
  2152.  
  2153. things.colorpickerb.MouseButton1Click:Connect(function()
  2154. things.colorpickeropen = not things.colorpickeropen
  2155.  
  2156. for i,v in pairs(objects.Motherframe:GetChildren()) do
  2157. if v.Name == "colorframe" then
  2158. game:GetService("TweenService"):Create(v, TweenInfo.new(0.3), {Size = UDim2.new(0, 0, 0, 205)}):Play()
  2159. end
  2160. end
  2161.  
  2162. if things.colorpickeropen then
  2163. game:GetService("TweenService"):Create(things.colorpickerframeb, TweenInfo.new(0.3), {Size = UDim2.new(0, 190, 0, 205)}):Play()
  2164. end
  2165. end)
  2166.  
  2167.  
  2168. local colorbase = Color3.new(1,0,0)
  2169. things.value = colorbase
  2170. local Saturation = 1
  2171. local Darkness = 0
  2172. local colourPickColour = colorbase
  2173.  
  2174. local function UpdateColorPicker()
  2175.  
  2176. colourPickColour = colorbase
  2177.  
  2178. if Darkness == 1 then
  2179. colourPickColour = Color3.new(0,0,0)
  2180. return
  2181. end
  2182.  
  2183. if Saturation < 1 then
  2184. local r = math.clamp(1 + (colourPickColour.r - 1) * Saturation, 0, 1)
  2185. local g = math.clamp(1 + (colourPickColour.g - 1) * Saturation, 0, 1)
  2186. local b = math.clamp(1 + (colourPickColour.b - 1) * Saturation, 0, 1)
  2187. colourPickColour = Color3.new( r, g, b )
  2188. end
  2189.  
  2190. if Darkness > 0 then
  2191. local r = math.clamp(colourPickColour.r * (1 - Darkness ), 0, 1)
  2192. local g = math.clamp(colourPickColour.g * (1 - Darkness ), 0, 1)
  2193. local b = math.clamp(colourPickColour.b * (1 - Darkness ), 0, 1)
  2194. colourPickColour = Color3.new(r,g,b)
  2195. end
  2196.  
  2197. things.rvalue.Text = tostring(math.floor(colourPickColour.r * 255))
  2198. things.gvalue.Text = tostring(math.floor(colourPickColour.g * 255))
  2199. things.bvalue.Text = tostring(math.floor(colourPickColour.b * 255))
  2200.  
  2201. local rv = tonumber(things.rvalue.Text)
  2202. local gv = tonumber(things.gvalue.Text)
  2203. local bv = tonumber(things.bvalue.Text)
  2204.  
  2205. things.value = Color3.new(rv,gv,bv)
  2206.  
  2207. things.colorpickerbutton.ImageColor3 = colourPickColour
  2208.  
  2209. if CallBack then
  2210. CallBack(things.value)
  2211. end
  2212. end
  2213.  
  2214. if Others then
  2215. if Others.default then
  2216. local r,g,b = math.floor(Others.default.r * 255),math.floor(Others.default.g * 255),math.floor(Others.default.b * 255)
  2217. colorbase = Color3.fromRGB(r,g,b)
  2218. things.sat.ImageColor3 = colorbase
  2219. wait(.2)
  2220. UpdateColorPicker()
  2221. end
  2222. end
  2223.  
  2224. local function setPickerColor(y)
  2225. local rY = y - things.rainbow.AbsolutePosition.Y;
  2226. local cY = math.clamp(rY, 0, things.rainbow.AbsoluteSize.Y - things.rainbowlocation.AbsoluteSize.Y);
  2227. local offset = (y - things.rainbow.AbsolutePosition.Y) - things.rainbowlocation.AbsoluteSize.Y
  2228. local scale = offset / things.rainbow.AbsoluteSize.Y
  2229. TS:Create(things.rainbowlocation, TweenInfo.new(0.1), {Position = UDim2.new(0, 0, 0, cY)}):Play()
  2230. local color = Color3.fromHSV(math.clamp(scale, 0, 1), 1, 1)
  2231. local r,g,b = math.floor(color.r * 255), math.floor(color.g * 255), math.floor(color.b * 255)
  2232. colorbase = Color3.fromRGB(r,g,b)
  2233.  
  2234. things.sat.ImageColor3 = colorbase
  2235. UpdateColorPicker()
  2236. end
  2237.  
  2238. local function setPickerLight(x,y)
  2239. Saturation = x / 140
  2240. Darkness = y / 140
  2241.  
  2242. TS:Create(things.ring, TweenInfo.new(0.1), {Position = UDim2.new(0, x, 0, y)}):Play()
  2243.  
  2244. UpdateColorPicker()
  2245. end
  2246.  
  2247. local rc
  2248. local cc
  2249.  
  2250. UIS.InputEnded:Connect(function(Mouse)
  2251. if Mouse.UserInputType == Enum.UserInputType.MouseButton1 then
  2252. if(cc) then
  2253. cc:Disconnect()
  2254. cc = nil
  2255. end
  2256. if(rc) then
  2257. rc:Disconnect()
  2258. rc = nil
  2259. end
  2260. end
  2261. end)
  2262.  
  2263. local rainbow = false
  2264.  
  2265. things.rainbow.MouseButton1Down:Connect(function()
  2266. if not rainbow then
  2267. rc = game:GetService("RunService").Heartbeat:Connect(function()
  2268. setPickerColor(mouse.Y)
  2269. end)
  2270. end
  2271. end)
  2272.  
  2273. things.sat.MouseButton1Down:Connect(function()
  2274. cc = game:GetService("RunService").Heartbeat:Connect(function()
  2275. local v = game:GetService("GuiService"):GetGuiInset()
  2276. local y = math.clamp(mouse.Y - things.sat.AbsolutePosition.Y - v.y + 34, 0, 140 )
  2277. local x = math.clamp(mouse.X - things.sat.AbsolutePosition.X - v.x, 0, 140 )
  2278. setPickerLight(x,y)
  2279. end)
  2280. end)
  2281.  
  2282. local function zigzag(X) return math.acos(math.cos(X*math.pi))/math.pi end
  2283. things.rainbowtoggle.MouseButton1Click:Connect(function()
  2284. rainbow = not rainbow
  2285. if rainbow then
  2286. game:GetService("TweenService"):Create(things.rainbowtoggleonoff, TweenInfo.new(0.1), {Position = UDim2.new(0, 28,0, 2)}):Play()
  2287. local counter = 0
  2288. repeat wait()
  2289. local color = Color3.fromHSV(zigzag(counter),1,1)
  2290. local r = color.r * 255
  2291. local b = color.b * 255
  2292. local g = color.g * 255
  2293. if counter >= 1.01 then
  2294. counter = -0.05
  2295. end
  2296. colorbase = Color3.fromRGB(r,g,b)
  2297. game:GetService("TweenService"):Create(things.rainbowlocation, TweenInfo.new(0.1), {Position = UDim2.new(0, 0, counter, 0)}):Play()
  2298. counter = counter + 0.01
  2299. things.sat.ImageColor3 = colorbase
  2300. UpdateColorPicker()
  2301. until rainbow == false
  2302. else
  2303. game:GetService("TweenService"):Create(things.rainbowtoggleonoff, TweenInfo.new(0.1), {Position = UDim2.new(0, 2,0, 2)}):Play()
  2304. end
  2305. end)
  2306.  
  2307. end
  2308. end
  2309.  
  2310. return things
  2311. end
  2312.  
  2313. sections.container.Parent = categories.scrollingframe
  2314. sections.containername.Parent = sections.container
  2315. sections.containerthings.Parent = sections.container
  2316.  
  2317. return sections
  2318. end
  2319.  
  2320. categories.imagebutton.Parent = objects.Sidecategories
  2321. categories.button.Parent = categories.imagebutton
  2322. categories.container.Parent = objects.Categorieshandler
  2323. categories.containerhider.Parent = categories.container
  2324. categories.scrollingframe.Parent = categories.container
  2325.  
  2326. firstCategory = false
  2327.  
  2328. return categories
  2329. end
  2330.  
  2331. objects.Screengui.Parent = game:GetService("CoreGui")
  2332. objects.Motherframe.Parent = objects.Screengui
  2333. objects.Upline.Parent = objects.Motherframe
  2334. objects.Uplinegradient.Parent = objects.Upline
  2335. objects.Sidebar.Parent = objects.Motherframe
  2336. objects.Sidecategories.Parent = objects.Sidebar
  2337. objects.Categorieshandler.Parent = objects.Motherframe
  2338. objects.Categoriesselector.Parent = objects.Sidebar
  2339.  
  2340. return objects
  2341. end
  2342.  
  2343. return lib
Add Comment
Please, Sign In to add comment