Advertisement
HEHEJ

Untitled

Apr 26th, 2020
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 35.63 KB | None | 0 0
  1. repeat wait() until game:IsLoaded()
  2.  
  3. local library = {}
  4. do
  5. if game:GetService("CoreGui"):FindFirstChild("moejawdewdmpijo3424ewaixop") then
  6. game:GetService("CoreGui"):FindFirstChild("moejawdewdmpijo3424ewaixop"):Destroy()
  7. end
  8. getgenv().hideOpts = false
  9.  
  10. local uis = game:GetService("UserInputService")
  11.  
  12. local uiShit = {
  13. initialized = false;
  14. toggle = true;
  15. }
  16.  
  17. local function create (obj, properties)
  18. obj = Instance.new(obj)
  19. for i, v in pairs(properties) do
  20. if i ~= "Parent" then
  21. obj[i] = v
  22. end
  23. end
  24. obj.Parent = properties["Parent"]
  25. return obj
  26. end
  27.  
  28. library.uis = {}
  29. local initialized = false
  30.  
  31. function library:KRNL_0bebcb447a7726(hideOptions)
  32. local data = {
  33. ["count"] = 1,
  34. ["debounce"] = false,
  35. ["shown"] = nil,
  36. ["cats"] = {},
  37. ["catbttns"] = {},
  38. }
  39. local ui = create("ScreenGui",{
  40. ["Name"] = "moejawdewdmpijo3424ewaixop",
  41. ["Parent"] = pcall(function()return game:GetService('CoreGui'):FindFirstChildOfClass('ScreenGui')end) and game:GetService("CoreGui") or game:GetService('Players').LocalPlayer.PlayerGui,
  42. })
  43. table.insert(library.uis, data)
  44. if hideOptions then
  45. initialized = true
  46. getgenv().hideOpts = true
  47. elseif not initialized then
  48. intialized = true
  49. spawn(function()
  50. local count = #library.uis
  51. wait(1)
  52. while count ~= #library.uis do
  53. wait(1)
  54. count = #library.uis
  55. end
  56.  
  57. end)
  58. end
  59. spawn(function()
  60. local toggleController = false
  61. if not uiShit.initialized then
  62. uiShit.initialized = true
  63. toggleController = true
  64.  
  65. end
  66. uis.InputBegan:connect(function(key, processed)
  67. if not processed then
  68. if key.KeyCode == Enum.KeyCode.RightShift then
  69. if toggleController then
  70. uiShit.toggle = not uiShit.toggle
  71. end
  72. ui.Enabled = uiShit.toggle
  73. end
  74. end
  75. end)
  76. end)
  77. local main = create("Frame",{
  78. ["Name"] = "Main",
  79. ["Parent"] = ui,
  80. ["BackgroundTransparency"] = 1,
  81. ["Position"] = UDim2.new(0,10,0,10),
  82. ["Size"] = UDim2.new(0,200,0,355),
  83. })
  84. local top = create("Frame",{
  85. ["Name"] = "Top",
  86. ["Parent"] = main,
  87. ["BackgroundColor3"] = Color3.new(.0980392,.0980392,.0980392),
  88. ["BorderSizePixel"] = 0,
  89. ["Size"] = UDim2.new(0,200,0,30),
  90. })
  91. local title = create("TextLabel",{
  92. ["Name"] = "Title",
  93. ["Parent"] = top,
  94. ["BackgroundTransparency"] = 1,
  95. ["Position"] = UDim2.new(0,7,0,0),
  96. ["Size"] = UDim2.new(.800000012,0,1,0),
  97. ["Font"] = Enum.Font.GothamSemibold,
  98. ["Text"] = "Snowy Hub",
  99. ["TextColor3"] = Color3.new(1,1,1),
  100. ["TextSize"] = 20,
  101. ["TextXAlignment"] = Enum.TextXAlignment.Left,
  102. })
  103. local size = create("TextButton",{
  104. ["Name"] = "Size",
  105. ["Parent"] = top,
  106. ["BackgroundColor3"] = Color3.new(1,1,1),
  107. ["BackgroundTransparency"] = 1,
  108. ["Position"] = UDim2.new(.800000012,0,0,0),
  109. ["Size"] = UDim2.new(0,40,0,30),
  110. ["Font"] = Enum.Font.GothamBold,
  111. ["Text"] = "-",
  112. ["TextColor3"] = Color3.new(1,1,1),
  113. ["TextSize"] = 25,
  114. })
  115. local boreder = create("TextLabel",{
  116. ["Name"] = "Border",
  117. ["Parent"] = top,
  118. ["BackgroundColor3"] = Color3.new(1,0,.0156863),
  119. ["BorderSizePixel"] = 0,
  120. ["Position"] = UDim2.new(0,0,1,-2),
  121. ["Size"] = UDim2.new(0,200,0,2),
  122. ["Text"] = "",
  123. })
  124. local mainhitbox = create("Frame",{
  125. ["Name"] = "Hitbox",
  126. ["Parent"] = top,
  127. ["BackgroundTransparency"] = 1,
  128. ["ClipsDescendants"] = true,
  129. ["Position"] = UDim2.new(0,0,1,0),
  130. ["Size"] = UDim2.new(0,200,0,0),
  131. })
  132. local catergories = create("Frame",{
  133. ["Name"] = "Catergories",
  134. ["Parent"] = mainhitbox,
  135. ["BackgroundColor3"] = Color3.new(.0980392,.0980392,.0980392),
  136. ["BorderColor3"] = Color3.new(.105882,.164706,.207843),
  137. ["BorderSizePixel"] = 0,
  138. ["Size"] = UDim2.new(0,200,0,0),
  139. })
  140. function data:KRNL_iliIiI11111Il1l(title, defaultcolor, callback)
  141. local background = create("Frame",{
  142. ["Name"] = "Color Picker",
  143. ["Parent"] = ui,
  144. ["BackgroundColor3"] = Color3.new(.0980392,.0980392,.0980392),
  145. ["BorderSizePixel"] = 0,
  146. ["Position"] = UDim2.new(.5,0,.5,0),
  147. ["Size"] = UDim2.new(0,420,0,197),
  148. ["AnchorPoint"] = Vector2.new(.5,.5)
  149. })
  150. local colors = create("ImageLabel",{
  151. ["Name"] = "Colors",
  152. ["Parent"] = background,
  153. ["BackgroundTransparency"] = 1,
  154. ["Position"] = UDim2.new(0,15,0,35),
  155. ["Size"] = UDim2.new(0,300,0,150),
  156. ["Image"] = "rbxassetid://328298876",
  157. })
  158. local picker = create("ImageLabel",{
  159. ["Name"] = "Picker",
  160. ["Parent"] = colors,
  161. ["BackgroundTransparency"] = 1,
  162. ["Position"] = UDim2.new(0,295,0,145),
  163. ["Size"] = UDim2.new(0,10,0,10),
  164. ["Image"] = "rbxassetid://244221613",
  165. ["ImageColor3"] = Color3.new(0,0,0),
  166. })
  167. local output = create("Frame",{
  168. ["Name"] = "Output",
  169. ["Parent"] = background,
  170. ["BackgroundColor3"] = Color3.new(1,1,1),
  171. ["BorderSizePixel"] = 0,
  172. ["Position"] = UDim2.new(0,345,0,35),
  173. ["Size"] = UDim2.new(0,60,0,60),
  174. })
  175. local value = create("ImageLabel",{
  176. ["Name"] = "Value",
  177. ["Parent"] = background,
  178. ["BackgroundTransparency"] = 1,
  179. ["Position"] = UDim2.new(0,326,0,35),
  180. ["Size"] = UDim2.new(0,8,0,150),
  181. ["Image"] = "rbxassetid://245854775",
  182. })
  183. local picker2 = create("ImageLabel",{
  184. ["Name"] = "Picker",
  185. ["Parent"] = value,
  186. ["BackgroundTransparency"] = 1,
  187. ["Position"] = UDim2.new(0,-1,0,-5),
  188. ["Size"] = UDim2.new(0,10,0,10),
  189. ["Image"] = "rbxassetid://244221613",
  190. ["ImageColor3"] = Color3.new(0,0,0),
  191. })
  192. local r = create("TextBox",{
  193. ["Name"] = "R",
  194. ["Parent"] = background,
  195. ["BackgroundTransparency"] = 1,
  196. ["Position"] = UDim2.new(0,371,0,105),
  197. ["Size"] = UDim2.new(0,25,0,25),
  198. ["Font"] = Enum.Font.GothamSemibold,
  199. ["PlaceholderText"] = "R",
  200. ["Text"] = "255",
  201. ["TextColor3"] = Color3.new(1,1,1),
  202. ["TextSize"] = 14,
  203. })
  204. local rdescription = create("TextLabel",{
  205. ["Name"] = "Description",
  206. ["Parent"] = r,
  207. ["BackgroundColor3"] = Color3.new(1, 1, 1),
  208. ["BackgroundTransparency"] = 1,
  209. ["Position"] = UDim2.new(-1, 0, 0, 0),
  210. ["Size"] = UDim2.new(0, 25, 0, 25),
  211. ["Font"] = Enum.Font.GothamBold,
  212. ["Text"] = "R:",
  213. ["TextColor3"] = Color3.new(1, 1, 1),
  214. ["TextSize"] = 14,
  215. })
  216. local g = create("TextBox",{
  217. ["Name"] = "G",
  218. ["Parent"] = background,
  219. ["BackgroundColor3"] = Color3.new(1, 1, 1),
  220. ["BackgroundTransparency"] = 1,
  221. ["Position"] = UDim2.new(0, 371, 0, 135),
  222. ["Size"] = UDim2.new(0, 25, 0, 25),
  223. ["Font"] = Enum.Font.GothamSemibold,
  224. ["PlaceholderText"] = "G",
  225. ["Text"] = "255",
  226. ["TextColor3"] = Color3.new(1, 1, 1),
  227. ["TextSize"] = 14,
  228. })
  229. local gdescription = create("TextLabel",{
  230. ["Name"] = "Description",
  231. ["Parent"] = g,
  232. ["BackgroundColor3"] = Color3.new(1, 1, 1),
  233. ["BackgroundTransparency"] = 1,
  234. ["Position"] = UDim2.new(-1, 0, 0, 0),
  235. ["Size"] = UDim2.new(0, 25, 0, 25),
  236. ["Font"] = Enum.Font.GothamBold,
  237. ["Text"] = "G:",
  238. ["TextColor3"] = Color3.new(1, 1, 1),
  239. ["TextSize"] = 14,
  240. })
  241. local b = create("TextBox",{
  242. ["Name"] = "B",
  243. ["Parent"] = background,
  244. ["BackgroundColor3"] = Color3.new(1, 1, 1),
  245. ["BackgroundTransparency"] = 1,
  246. ["Position"] = UDim2.new(0, 371, 0, 165),
  247. ["Size"] = UDim2.new(0, 25, 0, 25),
  248. ["Font"] = Enum.Font.GothamSemibold,
  249. ["PlaceholderText"] = "B",
  250. ["Text"] = "255",
  251. ["TextColor3"] = Color3.new(1, 1, 1),
  252. ["TextSize"] = 14,
  253. })
  254. local bdescription = create("TextLabel",{
  255. ["Name"] = "Description",
  256. ["Parent"] = b,
  257. ["BackgroundColor3"] = Color3.new(1, 1, 1),
  258. ["BackgroundTransparency"] = 1,
  259. ["Position"] = UDim2.new(-1, 0, 0, 0),
  260. ["Size"] = UDim2.new(0, 25, 0, 25),
  261. ["Font"] = Enum.Font.GothamBold,
  262. ["Text"] = "B:",
  263. ["TextColor3"] = Color3.new(1, 1, 1),
  264. ["TextSize"] = 14,
  265. })
  266. local title = create("TextLabel",{
  267. ["Name"] = "Title",
  268. ["Parent"] = background,
  269. ["BackgroundColor3"] = Color3.new(1, 1, 1),
  270. ["BackgroundTransparency"] = 1,
  271. ["Position"] = UDim2.new(0.0190476198, 0, 0, 0),
  272. ["Size"] = UDim2.new(0, 410, 0, 25),
  273. ["Font"] = Enum.Font.GothamSemibold,
  274. ["Text"] = title,
  275. ["TextColor3"] = Color3.new(1, 1, 1),
  276. ["TextSize"] = 14,
  277. ["TextXAlignment"] = Enum.TextXAlignment.Left,
  278. })
  279. local border = create("Frame",{
  280. ["Parent"] = title,
  281. ["BackgroundColor3"] = Color3.new(1, 0, 0),
  282. ["BorderSizePixel"] = 0,
  283. ["Position"] = UDim2.new(0, -8, 0, 23),
  284. ["Size"] = UDim2.new(0, 420, 0, 2),
  285. })
  286. local done = create("TextButton",{
  287. ["Name"] = "Done",
  288. ["Parent"] = background,
  289. ["BackgroundColor3"] = Color3.new(0.137255, 0.137255, 0.137255),
  290. ["BorderSizePixel"] = 0,
  291. ["Position"] = UDim2.new(0.823809505, 0, 0.0253807101, 0),
  292. ["Size"] = UDim2.new(0, 59, 0, 15),
  293. ["Font"] = Enum.Font.GothamSemibold,
  294. ["Text"] = "Done",
  295. ["TextColor3"] = Color3.new(1, 1, 1),
  296. ["TextSize"] = 14,
  297. })
  298. if defaultcolor == nil then
  299. defaultcolor = Color3.new(1,1,1)
  300. end
  301. local h,s,v = Color3.toHSV(defaultcolor)
  302. local h2,s2,v2
  303. output.BackgroundColor3 = defaultcolor
  304. wait(1)
  305. local dragging,dragging2
  306. do
  307. local origin,origin2,delta
  308. picker.InputBegan:Connect(function(input)
  309. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  310. dragging = true
  311. origin = picker.Position
  312. origin2 = input.Position
  313. end
  314. end)
  315.  
  316. uis.InputEnded:Connect(function(input)
  317. if input.UserInputState == Enum.UserInputState.End then
  318. dragging = false
  319. end
  320. end)
  321.  
  322. uis.InputChanged:Connect(function(input)
  323. if input.UserInputType == Enum.UserInputType.MouseMovement and dragging then
  324. delta = input.Position - origin2
  325. picker.Position = UDim2.new(0,math.clamp(origin.X.Offset+delta.X, -5, 295),0,math.clamp(origin.Y.Offset+delta.Y, -5, 145))
  326.  
  327. h = (295-picker.Position.X.Offset)/295
  328. s = (145-picker.Position.Y.Offset)/145
  329.  
  330. output.BackgroundColor3 = Color3.fromHSV(h,s,v)
  331. background.R.Text = math.clamp(math.floor(output.BackgroundColor3.R*255),0,255)
  332. background.G.Text = math.clamp(math.floor(output.BackgroundColor3.G*255),0,255)
  333. background.B.Text = math.clamp(math.floor(output.BackgroundColor3.B*255),0,255)
  334. end
  335. end)
  336. end
  337. do
  338. local origin,origin2,delta
  339. picker2.InputBegan:Connect(function(input)
  340. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  341. dragging2 = true
  342. origin = picker2.Position
  343. origin2 = input.Position
  344. end
  345. end)
  346.  
  347. uis.InputEnded:Connect(function(input)
  348. if input.UserInputState == Enum.UserInputState.End then
  349. dragging2 = false
  350. end
  351. end)
  352.  
  353. uis.InputChanged:Connect(function(input)
  354. if input.UserInputType == Enum.UserInputType.MouseMovement and dragging2 then
  355. delta = input.Position - origin2
  356. picker2.Position = UDim2.new(0,-1,0,math.clamp(origin.Y.Offset+delta.Y, -5, 145))
  357.  
  358. v = (145-picker2.Position.Y.Offset)/145
  359.  
  360. output.BackgroundColor3 = Color3.fromHSV(h,s,v)
  361. background.R.Text = math.clamp(math.floor(output.BackgroundColor3.R*255),0,255)
  362. background.G.Text = math.clamp(math.floor(output.BackgroundColor3.G*255),0,255)
  363. background.B.Text = math.clamp(math.floor(output.BackgroundColor3.B*255),0,255)
  364. end
  365. end)
  366. end
  367. do
  368. r.FocusLost:Connect(function()
  369. r.Text = math.floor(math.clamp(tonumber(r.Text),0,255)+.49)
  370. h,s,v = Color3.toHSV(Color3.fromRGB(r.Text,g.Text,b.Text))
  371. output.BackgroundColor3 = Color3.fromHSV(h,s,v)
  372. h2,s2,v2 = Color3.toHSV(output.BackgroundColor3)
  373. picker.Position = UDim2.new(0,(h2*-300)+295,0,(s2*-140)+145)
  374. picker2.Position = UDim2.new(0,-1,0,(v2*-150)+145)
  375. end)
  376. g.FocusLost:Connect(function()
  377. g.Text = math.floor(math.clamp(tonumber(g.Text),0,255)+.49)
  378. h,s,v = Color3.toHSV(Color3.fromRGB(r.Text,g.Text,b.Text))
  379. output.BackgroundColor3 = Color3.fromHSV(h,s,v)
  380. h2,s2,v2 = Color3.toHSV(output.BackgroundColor3)
  381. picker.Position = UDim2.new(0,(h2*-300)+295,0,(s2*-140)+145)
  382. picker2.Position = UDim2.new(0,-1,0,(v2*-150)+145)
  383. end)
  384. b.FocusLost:Connect(function()
  385. b.Text = math.floor(math.clamp(tonumber(b.Text),0,255)+.49)
  386. h,s,v = Color3.toHSV(Color3.fromRGB(r.Text,g.Text,b.Text))
  387. output.BackgroundColor3 = Color3.fromHSV(h,s,v)
  388. h2,s2,v2 = Color3.toHSV(output.BackgroundColor3)
  389. picker.Position = UDim2.new(0,(h2*-300)+295,0,(s2*-140)+145)
  390. picker2.Position = UDim2.new(0,-1,0,(v2*-150)+145)
  391. end)
  392. end
  393. colors.InputBegan:Connect(function(input)
  394. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  395. picker.Position = UDim2.new(0,mouse.X-553,0,mouse.Y-370)
  396. dragging = true
  397. h = (295-picker.Position.X.Offset)/295
  398. s = (145-picker.Position.Y.Offset)/145
  399.  
  400. output.BackgroundColor3 = Color3.fromHSV(h,s,v)
  401. background.R.Text = math.clamp(math.floor(output.BackgroundColor3.R*255),0,255)
  402. background.G.Text = math.clamp(math.floor(output.BackgroundColor3.G*255),0,255)
  403. background.B.Text = math.clamp(math.floor(output.BackgroundColor3.B*255),0,255)
  404. end
  405. end)
  406. value.InputBegan:Connect(function(input)
  407. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  408. picker2.Position = UDim2.new(0,-1,0,mouse.Y-370)
  409. dragging2 = true
  410. v = (145-picker2.Position.Y.Offset)/145
  411.  
  412. output.BackgroundColor3 = Color3.fromHSV(h,s,v)
  413. background.R.Text = math.clamp(math.floor(output.BackgroundColor3.R*255),0,255)
  414. background.G.Text = math.clamp(math.floor(output.BackgroundColor3.G*255),0,255)
  415. background.B.Text = math.clamp(math.floor(output.BackgroundColor3.B*255),0,255)
  416. end
  417. end)
  418. done.MouseButton1Click:Connect(function()
  419. local color = output.BackgroundColor3
  420. callback(math.ceil(255*color.r-.49),math.ceil(255*color.g-.49),math.ceil(255*color.b-.49))
  421. background.Visible = false
  422. background:Destroy()
  423. end)
  424. end
  425. local shareddata = {}
  426. do
  427. top.InputBegan:connect(function(key)
  428. local mouse = game:GetService("Players").LocalPlayer:GetMouse()
  429. local mb1 = Enum.UserInputType.MouseButton1
  430. local m = {
  431. x = 0;
  432. y = 0;
  433. }
  434. if key.UserInputType == mb1 then
  435. local as = main.AbsolutePosition
  436. local pos = Vector2.new(mouse.X-as.X,mouse.Y-as.Y)
  437. while game:GetService("RunService").Heartbeat:wait() and game:GetService("UserInputService"):IsMouseButtonPressed(mb1) do
  438. local obj = {
  439. mouse.X-pos.X,
  440. main.Size.X.Offset*main.AnchorPoint.X,
  441. mouse.Y-pos.Y,
  442. main.Size.Y.Offset*main.AnchorPoint.Y
  443. }
  444. if m.X ~= mouse.X or m.Y ~= mouse.Y then
  445. main:TweenPosition(UDim2.new(0,obj[1]+obj[2],0,obj[3]+obj[4]),"Out","Quad",.2,true)
  446. end
  447. m.X = mouse.X
  448. m.Y = mouse.Y
  449. end
  450. end
  451. end)
  452.  
  453. local toggled,debounce = false,false
  454. size.MouseButton1Click:Connect(function()
  455. if not debounce then
  456. if toggled then
  457. debounce = true
  458. toggled = false
  459. if data.shown then
  460. for i, v in pairs(top:GetChildren()) do
  461. if v.Name == data.shown.Parent.Name then
  462. for j, k in pairs(v.Functions:GetChildren()) do
  463. if k.Name == "Dropdown" then
  464. if k.Hitbox.List.Visible then
  465. shareddata:ClearDrop()
  466. k.Display.Font = Enum.Font.GothamSemibold
  467. k.Display.Text = "+"
  468. k.Hitbox.List:TweenPosition(UDim2.new(0,0,-1,0))
  469. wait(1)
  470. k.Hitbox.List.Visible = false
  471. end
  472. end
  473. end
  474. end
  475. end
  476. data.catbttns[data.shown.Title.Text]["Catergory Description"].Font = Enum.Font.GothamSemibold
  477. data.catbttns[data.shown.Title.Text]["Catergory Description"].Text = "+"
  478. data.shown.Parent:TweenSize(UDim2.new(0,210,0,29),nil,nil,.5)
  479. wait(.5)
  480. data.shown:TweenPosition(UDim2.new(0,-200,0,0),nil,nil,.5)
  481. wait(.5)
  482. data.shown.Visible = false
  483. data.shown = nil
  484. end
  485. size.Font = Enum.Font.GothamSemibold
  486. size.Text = "+"
  487. catergories:TweenPosition(UDim2.new(0,0,-1,0),nil,nil,.5)
  488. wait(.5)
  489. catergories.Visible = false
  490. debounce = false
  491. else
  492. debounce = true
  493. toggled = true
  494. catergories.Visible = true
  495. size.Font = Enum.Font.GothamBold
  496. size.Text = "-"
  497. catergories:TweenPosition(UDim2.new(0,0,0,0),nil,nil,.5)
  498. wait(.5)
  499. debounce = false
  500. end
  501. end
  502. end)
  503. end
  504.  
  505. local functions = {}
  506. local f = {}
  507. function data:KRNL_1d7cf31a6a3640(name)
  508. local categorybutton = create("TextButton",{
  509. ["Name"] = name,
  510. ["Parent"] = catergories,
  511. ["BackgroundColor3"] = Color3.new(.176471,.176471,.176471),
  512. ["BorderSizePixel"] = 0,
  513. ["Position"] = UDim2.new(0,10,0,(data.count-1)*35+10),
  514. ["Size"] = UDim2.new(0, 180, 0, 30),
  515. ["Font"] = Enum.Font.GothamSemibold,
  516. ["TextSize"] = 14,
  517. ["Text"] = " " .. name,
  518. ["TextColor3"]= Color3.new(1, 1, 1),
  519. ["TextXAlignment"] = Enum.TextXAlignment.Left,
  520. })
  521. local catdesc = create("TextLabel",{
  522. ["Name"] = "Catergory Description",
  523. ["Parent"] = categorybutton,
  524. ["BackgroundColor3"] = Color3.new(1,1,1),
  525. ["BackgroundTransparency"] = 1,
  526. ["Position"] = UDim2.new(0.833333313,0,0,0),
  527. ["Size"] = UDim2.new(0,30,0,30),
  528. ["Font"] = Enum.Font.GothamSemibold,
  529. ["Text"] = "+",
  530. ["TextColor3"] = Color3.new(1,1,1),
  531. ["TextSize"] = 25,
  532. })
  533. local cathitbox = create("Frame",{
  534. ["Name"] = name,
  535. ["Parent"] = top,
  536. ["BackgroundColor3"] = Color3.new(1,1,1),
  537. ["BackgroundTransparency"] = 1,
  538. ["ClipsDescendants"] = true,
  539. ["Position"] = UDim2.new(.949999988,10,1,0),
  540. ["Size"] = UDim2.new(0,210,0,29),
  541. })
  542. local category = create("Frame",{
  543. ["Name"] = "Functions",
  544. ["Parent"] = cathitbox,
  545. ["BackgroundColor3"] = Color3.new(.0980392,.0980392,.0980392),
  546. ["BorderSizePixel"] = 0,
  547. ["Position"] = UDim2.new(0,-200,0,0),
  548. ["Size"] = UDim2.new(0,200,0,29),
  549. ["Visible"] = false
  550. })
  551. local title = create("TextLabel",{
  552. ["Name"] = "Title",
  553. ["Parent"] = category,
  554. ["BackgroundTransparency"] = 1,
  555. ["Position"] = UDim2.new(0,5,0,0),
  556. ["Size"] = UDim2.new(0,195,0,29),
  557. ["Font"] = Enum.Font.GothamSemibold,
  558. ["Text"] = name,
  559. ["TextColor3"] = Color3.new(1,1,1),
  560. ["TextSize"] = 20,
  561. ["TextXAlignment"] = Enum.TextXAlignment.Left,
  562. })
  563. local border = create("TextLabel",{
  564. ["Name"] = "Border",
  565. ["Parent"] = title,
  566. ["BackgroundColor3"] = Color3.new(1,0,.0156863),
  567. ["BorderSizePixel"] = 0,
  568. ["Position"] = UDim2.new(-.026,0,1,-2),
  569. ["Size"] = UDim2.new(0,200,0,2),
  570. ["Text"] = "",
  571. ["TextColor3"] = Color3.new(0,0,0),
  572. })
  573.  
  574. local functions = {['count']=4,['showndrop']=nil}
  575. table.insert(f, functions)
  576.  
  577. data.catbttns[name] = categorybutton
  578. categorybutton.MouseButton1Click:Connect(function()
  579. if not data.debounce then
  580. category.ClipsDescendants = true
  581. if data.shown == category then
  582. data.debounce = true
  583. data.shown = nil
  584. if functions.showndrop then
  585. functions.showndrop.Display.Font = Enum.Font.GothamSemibold
  586. functions.showndrop.Display.Text = "+"
  587. functions.showndrop.Hitbox.List:TweenPosition(UDim2.new(0,0,-1,0))
  588. wait(1)
  589. functions.showndrop.Hitbox.List.Visible = false
  590. functions.showndrop = nil
  591. end
  592. catdesc.Font = Enum.Font.GothamSemibold
  593. catdesc.Text = "+"
  594. category.Parent.Size = UDim2.new(0,210,0,category.Size.Y.Offset)
  595. category.Parent:TweenSize(UDim2.new(0,210,0,29),nil,nil,.2)
  596. category:TweenSize(UDim2.new(0,200,0,29),nil,nil,.2)
  597. wait(.2)
  598. category:TweenPosition(UDim2.new(0,-200,0,0),nil,nil,.2)
  599. wait(.2)
  600. category.Visible = false
  601. data.debounce = false
  602. else
  603. data.debounce = true
  604. if data.shown then
  605. data.catbttns[data.shown.Title.Text]["Catergory Description"].Font = Enum.Font.GothamSemibold
  606. data.catbttns[data.shown.Title.Text]["Catergory Description"].Text = "+"
  607. data.shown.Parent.Size = UDim2.new(0,210,0,data.shown.Size.Y.Offset)
  608. data.shown.Parent:TweenSize(UDim2.new(0,210,0,29),nil,nil,.2)
  609. wait(.2)
  610. data.shown:TweenPosition(UDim2.new(0,-200,0,0),nil,nil,.2)
  611. wait(.2)
  612. data.shown.Visible = false
  613. end
  614. data.shown = category
  615. category.Visible = true
  616. catdesc.Font = Enum.Font.GothamBold
  617. catdesc.Text = "-"
  618. category:TweenPosition(UDim2.new(0,10,0,0),nil,nil,.2)
  619. wait(.2)
  620. category.Parent:TweenSize(UDim2.new(0,210,0,1000),nil,nil,.2)
  621. category:TweenSize(UDim2.new(0,200,0,functions.count+40),nil,nil,.2)
  622. wait(.2)
  623. category.Parent.Size = UDim2.new(0,210,0,1000)
  624. data.debounce = false
  625. end
  626. category.ClipsDescendants = false
  627. end
  628. end)
  629.  
  630. mainhitbox.Size = UDim2.new(0,200,0,data.count*35+16)
  631. catergories.Size = UDim2.new(0,200,0,data.count*35+16)
  632. data.count = data.count + 1
  633.  
  634. function functions:KRNL_cbb5ee2a24cf34(text,toggled,callback)
  635. local button
  636. if toggled then
  637. button = create("TextButton",{
  638. ["Name"] = text,
  639. ["Parent"] = category,
  640. ["BackgroundColor3"] = Color3.new(1,1,1),
  641. ["BackgroundTransparency"] = 1,
  642. ["Position"] = UDim2.new(0,147,0,functions.count+30),
  643. ["Size"] = UDim2.new(0,40,0,30),
  644. ["Font"] = Enum.Font.GothamSemibold,
  645. ["Text"] = "ON",
  646. ["TextColor3"] = Color3.new(0,1,0),
  647. ["TextSize"] = 14,
  648. })
  649. else
  650. button = create("TextButton",{
  651. ["Name"] = text,
  652. ["Parent"] = category,
  653. ["BackgroundColor3"] = Color3.new(1,1,1),
  654. ["BackgroundTransparency"] = 1,
  655. ["Position"] = UDim2.new(0,147,0,functions.count+30),
  656. ["Size"] = UDim2.new(0,40,0,30),
  657. ["Font"] = Enum.Font.GothamSemibold,
  658. ["Text"] = "OFF",
  659. ["TextColor3"] = Color3.new(1,0,0),
  660. ["TextSize"] = 14,
  661. })
  662. end
  663. local description = create("TextLabel",{
  664. ["Name"] = "Description",
  665. ["Parent"] = button,
  666. ["BackgroundColor3"] = Color3.new(1,1,1),
  667. ["BackgroundTransparency"] = 1,
  668. ["Position"] = UDim2.new(-3.375,0,0,0),
  669. ["Size"] = UDim2.new(0,135,0,30),
  670. ["Font"] = Enum.Font.GothamSemibold,
  671. ["Text"] = text,
  672. ["TextColor3"] = Color3.new(1,1,1),
  673. ["TextSize"] = 14,
  674. ["TextXAlignment"] = Enum.TextXAlignment.Left,
  675. })
  676. button.MouseButton1Click:Connect(function()
  677. if toggled then
  678. toggled = false
  679. button.Text = "OFF"
  680. button.TextColor3 = Color3.new(1,0,0)
  681. callback(false)
  682. else
  683. toggled = true
  684. button.Text = "ON"
  685. button.TextColor3 = Color3.new(0,1,0)
  686. callback(true)
  687. end
  688. end)
  689.  
  690. category.Size = UDim2.new(0,200,0,functions.count+70)
  691. functions.count = functions.count + 30
  692. return button
  693. end
  694.  
  695. function functions:KRNL_0234a044e17801(text, callback)
  696. local button = create("TextButton",{
  697. ["Name"] = text,
  698. ["Parent"] = category,
  699. ["BackgroundColor3"] = Color3.new(.137255,.137255,.137255),
  700. ["BorderSizePixel"] = 0,
  701. ["Position"] = UDim2.new(0,12.5,0,functions.count+35),
  702. ["Size"] = UDim2.new(0,175,0,30),
  703. ["Font"] = Enum.Font.GothamSemibold,
  704. ["Text"] = text,
  705. ["TextColor3"] = Color3.new(1,1,1),
  706. ["TextSize"] = 14,
  707. })
  708.  
  709. button.MouseButton1Click:Connect(callback)
  710. category.Size = UDim2.new(0,200,0,functions.count+75)
  711. functions.count = functions.count + 35
  712. return button
  713. end
  714.  
  715. function functions:KRNL_2478d3ef4c426a(text, color)
  716. if color == nil then
  717. color = Color3.new(1,1,1)
  718. end
  719. local label = create("TextLabel",{
  720. ["Parent"] = category,
  721. ["BackgroundColor3"] = Color3.new(1,1,1),
  722. ["BackgroundTransparency"] = 1,
  723. ["Position"] = UDim2.new(.0599999987,0,0,functions.count+30),
  724. ["Size"] = UDim2.new(0,175,0,30),
  725. ["Font"] = Enum.Font.GothamSemibold,
  726. ["Text"] = text,
  727. ["TextColor3"] = color,
  728. ["TextSize"] = 15,
  729. })
  730.  
  731. category.Size = UDim2.new(0,200,0,functions.count+70)
  732. functions.count = functions.count + 30
  733. return label
  734. end
  735.  
  736. function functions:KRNL_f32f6694ca8f88(text, min, max, callback)
  737. if not min then min = 0 end
  738. if not max then max = 100 end
  739. local slider = create("Frame",{
  740. ["Name"] = "Slider",
  741. ["Parent"] = category,
  742. ["BackgroundTransparency"] = 1,
  743. ["Position"] = UDim2.new(0.0610982701,0,0,functions.count+35),
  744. ["Size"] = UDim2.new(0, 175, 0, 37),
  745. })
  746. local description = create("TextLabel",{
  747. ["Name"] = "Description",
  748. ["Parent"] = slider,
  749. ["BackgroundColor3"] = Color3.new(1,1,1),
  750. ["BackgroundTransparency"] = 1,
  751. ["Position"] = UDim2.new(0, 3, 0.189189196, 0),
  752. ["Size"] = UDim2.new(0, 135, 0, 15),
  753. ["Font"] = Enum.Font.GothamSemibold,
  754. ["Text"] = text .. ": " .. min,
  755. ["TextColor3"] = Color3.new(1,1,1),
  756. ["TextSize"] = 14,
  757. ["TextXAlignment"] = Enum.TextXAlignment.Left,
  758. })
  759. -- for fixing other shit
  760. local secretBar = create("Frame",{
  761. ["Name"] = "Bar",
  762. ["Parent"] = slider,
  763. ["BackgroundColor3"] = Color3.new(.176471,.176471,.176471),
  764. ["BorderSizePixel"] = 0,
  765. ["Position"] = UDim2.new(0,0,0,25),
  766. -- ["Size"] = UDim2.new(0,175,0,5),
  767. ["Size"] = UDim2.new(1.005,0,0,5),
  768. -- ['ZIndex'] = bar.ZIndex
  769. })
  770. local bar = create("Frame",{
  771. ["Name"] = "Bar",
  772. ["Parent"] = slider,
  773. ["BackgroundColor3"] = Color3.new(.176471,.176471,.176471),
  774. ["BorderSizePixel"] = 0,
  775. ["Position"] = UDim2.new(0,0,0,25),
  776. -- ["Size"] = UDim2.new(0,175,0,5),
  777. ["Size"] = UDim2.new(.95,0,0,5)
  778. })
  779. local picker = create("ImageLabel",{
  780. ["Name"] = "Picker",
  781. ["Parent"] = bar,
  782. ["BackgroundTransparency"] = 1,
  783. ["Position"] = UDim2.new(0,0,-0.5,0),
  784. ["Size"] = UDim2.new(0,10,0,10),
  785. ["Image"] = "rbxassetid://344616690",
  786. ZIndex = 1
  787. })
  788.  
  789. do
  790. local dragging,origin,origin2,delta
  791. picker.InputBegan:Connect(function(input)
  792. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  793. dragging = true
  794. origin = picker.Position
  795. origin2 = input.Position
  796. end
  797. end)
  798.  
  799. uis.InputEnded:Connect(function(input)
  800. if input.UserInputState == Enum.UserInputState.End then
  801. dragging = false
  802. end
  803. end)
  804.  
  805. uis.InputChanged:Connect(function(input)
  806. if input.UserInputType == Enum.UserInputType.MouseMovement and dragging then
  807. delta = input.Position - origin2
  808. picker.Position = UDim2.new(math.clamp((input.Position.X - bar.AbsolutePosition.X - 5) / bar.AbsoluteSize.X, 0, 1), 0, -.5, 0)
  809. local curValue = ((picker.Position.X.Scale * max) / max) * (max - min) + min
  810. if string.find(text, 'Sensitivity') then
  811. curValue = tonumber(string.sub(tostring(curValue),0, 4))
  812. else
  813. curValue = math.floor(curValue)
  814. end
  815. description.Text = text .. ': ' .. tostring(curValue)
  816. callback(curValue)
  817. end
  818. end)
  819. end
  820.  
  821. category.Size = UDim2.new(0,200,0,functions.count+75)
  822. functions.count = functions.count + 35
  823. return slider
  824. end
  825.  
  826. function functions:KRNL_0784ecf211b327(text, options, multiple, default, callback)
  827. local dropdown = create("TextButton",{
  828. ["Name"] = "Dropdown",
  829. ["Parent"] = category,
  830. ["BackgroundColor3"] = Color3.new(.176471,.176471,.176471),
  831. ["BorderSizePixel"] = 0,
  832. ["Position"] = UDim2.new(0,12,0,functions.count+(text and 60 or 35)),
  833. ["Size"] = UDim2.new(0,175,0,30),
  834. ["Font"] = Enum.Font.GothamSemibold,
  835. ["Text"] = default,
  836. ["TextColor3"] = Color3.new(1,1,1),
  837. ["TextSize"] = 14,
  838. })
  839. local description = create("TextLabel",{
  840. ["Name"] = "Description",
  841. ["Parent"] = dropdown,
  842. ["BackgroundTransparency"] = 1,
  843. ["Position"] = UDim2.new(0,0,-1,0),
  844. ["Size"] = UDim2.new(0,135,0,30),
  845. ["Font"] = Enum.Font.GothamSemibold,
  846. ["Text"] = text and text .. ":" or '',
  847. ["TextColor3"] = Color3.new(1,1,1),
  848. ["TextSize"] = 14,
  849. ["TextXAlignment"] = Enum.TextXAlignment.Left,
  850. })
  851. local display = create("TextLabel",{
  852. ["Name"] = "Display",
  853. ["Parent"] = dropdown,
  854. ["BackgroundTransparency"] = 1,
  855. ["Position"] = UDim2.new(.845714271,0,0,0),
  856. ["Size"] = UDim2.new(0,27,0,30),
  857. ["Font"] = Enum.Font.GothamSemibold,
  858. ["Text"] = "+",
  859. ["TextColor3"] = Color3.new(1,1,1),
  860. ["TextSize"] = 20,
  861. })
  862. local hitbox = create("Frame",{
  863. ["Name"] = "Hitbox",
  864. ["Parent"] = dropdown,
  865. ["BackgroundTransparency"] = 1,
  866. ["ClipsDescendants"] = true,
  867. ["Position"] = UDim2.new(0,0,1,0),
  868. ["Size"] = UDim2.new(0,175,0,150),
  869. })
  870. local list = create("ScrollingFrame",{
  871. ["Name"] = "List",
  872. ["Parent"] = hitbox,
  873. ["BackgroundColor3"] = Color3.new(.137255,.137255,.137255),
  874. ["BorderSizePixel"] = 0,
  875. ["Position"] = UDim2.new(0,0,-1,0),
  876. ["Size"] = UDim2.new(1,0,0,150),
  877. ["Visible"] = false,
  878. ["CanvasSize"] = UDim2.new(0,0,5,0),
  879. ["ScrollBarThickness"] = 4,
  880. ["ZIndex"] = 2,
  881. })
  882. local layout = create("UIListLayout",{
  883. ["Parent"] = list,
  884. ["HorizontalAlignment"] = Enum.HorizontalAlignment.Right,
  885. ["SortOrder"] = Enum.SortOrder.LayoutOrder,
  886. })
  887. local template, selected
  888. if multiple then
  889. template = create("TextLabel",{
  890. ["Name"] = "Template",
  891. ["Parent"] = list,
  892. ["BackgroundTransparency"] = 1,
  893. ["Size"] = UDim2.new(1,-30,0,25),
  894. ["Visible"] = false,
  895. ["Font"] = Enum.Font.GothamSemibold,
  896. ["Text"] = "Text",
  897. ["TextColor3"] = Color3.new(1,1,1),
  898. ["TextSize"] = 14,
  899. ["TextXAlignment"] = Enum.TextXAlignment.Left,
  900. ["ZIndex"] = 2,
  901. })
  902. selected = create("ImageButton",{
  903. ["Name"] = "Selected",
  904. ["Parent"] = template,
  905. ["BackgroundColor3"] = Color3.new(0.137255,0.137255,0.137255),
  906. ["BorderColor3"] = Color3.new(0.0980392,0.0980392,0.0980392),
  907. ["BorderSizePixel"] = 2,
  908. ["Position"] = UDim2.new(0,-23,0,4),
  909. ["Size"] = UDim2.new(0,17,0,17),
  910. ["ZIndex"] = 2,
  911. })
  912. else
  913. template = create("TextButton",{
  914. ["Name"] = "Template",
  915. ["Parent"] = list,
  916. ["BackgroundTransparency"] = 1,
  917. ["Size"] = UDim2.new(1,-5,0,25),
  918. ["Visible"] = false,
  919. ["Font"] = Enum.Font.GothamSemibold,
  920. ["Text"] = "Text",
  921. ["TextColor3"] = Color3.new(1,1,1),
  922. ["TextSize"] = 14,
  923. ["TextXAlignment"] = Enum.TextXAlignment.Left,
  924. ["ZIndex"] = 2,
  925. })
  926. end
  927. local debounce,uitoggled
  928. if multiple then
  929. for i, v in pairs(options) do
  930. local toggled
  931. local new = template:Clone()
  932. new.Text = i
  933. new.Name = i
  934. if v then
  935. toggled = true
  936. new.Selected.Image = "rbxassetid://2667008028"
  937. end
  938. if #i > 18 then
  939. new.TextScaled = true
  940. end
  941. new.Selected.MouseButton1Click:Connect(function()
  942. if toggled then
  943. toggled = false
  944. new.Selected.Image = ""
  945. callback(new.Text, false)
  946. else
  947. toggled = true
  948. new.Selected.Image = "rbxassetid://2667008028"
  949. callback(new.Text, true)
  950. end
  951. end)
  952. new.Visible = true
  953. new.Parent = list
  954. end
  955. else
  956. for i, v in pairs(options) do
  957. local new = template:Clone()
  958. new.Text = v
  959. new.Name = v
  960. new.MouseButton1Click:Connect(function()
  961. if not debounce then
  962. hitbox.ClipsDescendants = true
  963. dropdown.Text = new.Text
  964. callback(new.Text)
  965. debounce = true
  966. uitoggled = false
  967. display.Text = "+"
  968. list:TweenPosition(UDim2.new(0,0,-1,0),Enum.EasingDirection.Out,Enum.EasingStyle.Linear,.2)
  969. wait(.3)
  970. list.Visible = false
  971. debounce = false
  972. end
  973. end)
  974. new.Visible = true
  975. new.Parent = list
  976. end
  977. end
  978.  
  979. if (25*6) > layout.AbsoluteContentSize.Y then
  980. list.Size = UDim2.new(1,0,0,(#list:children()*25)-50)
  981. hitbox.Size = UDim2.new(1,0,0,(#list:children()*25)-50)
  982. end
  983. list.CanvasSize = UDim2.new(0,0,0,layout.AbsoluteContentSize.Y)
  984.  
  985. dropdown.MouseButton1Click:Connect(function()
  986. if not debounce then
  987. if functions.showndrop == dropdown then
  988. hitbox.ClipsDescendants = true
  989. debounce = true
  990. functions.showndrop = nil
  991. display.Text = "+"
  992. list:TweenPosition(UDim2.new(0,0,-1,0),Enum.EasingDirection.Out,Enum.EasingStyle.Linear,.2)
  993. wait(.3)
  994. list.Visible = false
  995. debounce = false
  996. else
  997. if not functions.showndrop then
  998.  
  999. debounce = true
  1000. functions.showndrop = dropdown
  1001. display.Text = "-"
  1002. list.Visible = true
  1003. list:TweenPosition(UDim2.new(0,0,0,0),Enum.EasingDirection.Out,Enum.EasingStyle.Linear,.2)
  1004. wait(.3)
  1005. hitbox.ClipsDescendants = false
  1006. debounce = false
  1007. end
  1008. end
  1009. end
  1010. end)
  1011.  
  1012. function shareddata:ClearDrop()
  1013. functions.showndrop = nil
  1014. end
  1015.  
  1016. category.Size = UDim2.new(0,200,0,functions.count+(text and 105 or 80))
  1017. functions.count = functions.count + (text and 60 or 35)
  1018. return dropdown
  1019. end
  1020.  
  1021. function functions:KRNL_f891ac39407eae (name, default, placeholder, focusreset, callback)
  1022. local box = create("TextBox",{
  1023. ["Name"] = name,
  1024. ["Parent"] = category,
  1025. ["BackgroundTransparency"] = 1,
  1026. ["Position"] = (name == '' and UDim2.new(0,10,0,functions.count+35)) or UDim2.new(0,150,0,functions.count+35),
  1027. ["Size"] = (name == '' and UDim2.new(0,180,0,30)) or UDim2.new(0,40,0,30),
  1028. ["Font"] = Enum.Font.GothamSemibold,
  1029. ["PlaceholderText"] = placeholder,
  1030. ["Text"] = default,
  1031. ["TextColor3"] = Color3.new(1,1,1),
  1032. ["TextSize"] = 14,
  1033. ["ClearTextOnFocus"] = focusreset
  1034. })
  1035. local description = create("TextLabel",{
  1036. ["Name"] = "Description",
  1037. ["Parent"] = box,
  1038. ["BackgroundTransparency"] = 1,
  1039. ["Position"] = UDim2.new(-3.375,0,0,0),
  1040. ["Size"] = UDim2.new(0,135,0,30),
  1041. ["Font"] = Enum.Font.GothamSemibold,
  1042. ["Text"] = (name == '' and '') or (name .. ":"),
  1043. ["TextColor3"] = Color3.new(1, 1, 1),
  1044. ["TextSize"] = 14,
  1045. ["TextXAlignment"] = Enum.TextXAlignment.Left,
  1046. })
  1047.  
  1048. box.FocusLost:Connect(function()
  1049. callback(box.Text)
  1050. end)
  1051.  
  1052. category.Size = UDim2.new(0,200,0,functions.count+75)
  1053. functions.count = functions.count + 35
  1054. return box
  1055. end
  1056. function functions:AddToggle(...) return functions:KRNL_cbb5ee2a24cf34(...) end
  1057. function functions:AddButton(...) return functions:KRNL_0234a044e17801(...) end
  1058. function functions:AddDropdown(...) return functions:KRNL_0784ecf211b327(...) end
  1059. function functions:AddBox(...) return functions:KRNL_f891ac39407eae(...) end
  1060. function functions:AddLabel(...) return functions:KRNL_2478d3ef4c426a(...) end
  1061. function functions:AddSlider(...) return functions:KRNL_f32f6694ca8f88(...) end
  1062. return functions
  1063. end
  1064. function data:AddCategory(...) return data:KRNL_1d7cf31a6a3640(...) end
  1065. function data:ShowColor(...) return data:KRNL_iliIiI11111Il1l(...) end
  1066. return data
  1067. end
  1068. function library:CreateUI(...) return library:KRNL_0bebcb447a7726(...) end
  1069. end
  1070.  
  1071. return library
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement