spidey_v6

Untitled

Aug 28th, 2021
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.67 KB | None | 0 0
  1. local OxyLibrary = {}
  2.  
  3. local LibName = "SugmaHub"
  4.  
  5. function OxyLibrary:CloseOpen()
  6. if game.CoreGui[LibName].Enabled then
  7. game.CoreGui[LibName].Enabled = false
  8. else
  9. game.CoreGui[LibName].Enabled = true
  10. end
  11. end
  12.  
  13. function OxyLibrary:Destroy()
  14. game.CoreGui[LibName]:Destroy()
  15. end
  16.  
  17. function OxyLibrary:Create()
  18. local OxyLib = Instance.new("ScreenGui")
  19. local Library = Instance.new("Frame")
  20. local elements = Instance.new("Frame")
  21. local elCorner = Instance.new("UICorner")
  22. local allItems = Instance.new("Frame")
  23. local itemCorner = Instance.new("UICorner")
  24. local CurrentContainer = Instance.new("Folder")
  25. local btnCorner = Instance.new("UICorner")
  26. local libCorner = Instance.new("UICorner")
  27. local tabs = Instance.new("Frame")
  28. local tabCorner = Instance.new("UICorner")
  29. local allITabs = Instance.new("Frame")
  30. local allTabCorner = Instance.new("UICorner")
  31. local tabList = Instance.new("UIListLayout")
  32. local tabPad = Instance.new("UIPadding")
  33. local Oxy = Instance.new("TextLabel")
  34. local Hub = Instance.new("TextLabel")
  35.  
  36.  
  37. OxyLib.Name = tostring(LibName)
  38. OxyLib.Parent = game.CoreGui
  39. OxyLib.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  40.  
  41. Library.Name = "Library"
  42. Library.Parent = OxyLib
  43. Library.BackgroundColor3 = Color3.fromRGB(10, 10, 10)
  44. Library.Position = UDim2.new(0.326875001, 0, 0.241460547, 0)
  45. Library.Size = UDim2.new(0, 694, 0, 438)
  46. Library.Active = true
  47. Library.Draggable = true
  48. Library.Selectable = true
  49.  
  50. elements.Name = "elements"
  51. elements.Parent = Library
  52. elements.BackgroundColor3 = Color3.fromRGB(43, 43, 43)
  53. elements.Position = UDim2.new(0.217579246, 0, 0.107305937, 0)
  54. elements.Size = UDim2.new(0, 534, 0, 380)
  55.  
  56. elCorner.CornerRadius = UDim.new(0, 6)
  57. elCorner.Name = "elCorner"
  58. elCorner.Parent = elements
  59.  
  60. allItems.Name = "allItems"
  61. allItems.Parent = elements
  62. allItems.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
  63. allItems.Position = UDim2.new(0.00248495373, 0, 0.00204275036, 0)
  64. allItems.Size = UDim2.new(0, 532, 0, 378)
  65.  
  66. itemCorner.CornerRadius = UDim.new(0, 6)
  67. itemCorner.Name = "itemCorner"
  68. itemCorner.Parent = allItems
  69.  
  70. CurrentContainer.Name = "CurrentContainer"
  71. CurrentContainer.Parent = allItems
  72.  
  73. libCorner.CornerRadius = UDim.new(0, 6)
  74. libCorner.Name = "libCorner"
  75. libCorner.Parent = Library
  76.  
  77. tabs.Name = "tabs"
  78. tabs.Parent = Library
  79. tabs.BackgroundColor3 = Color3.fromRGB(43, 43, 43)
  80. tabs.Position = UDim2.new(0.00864553358, 0, 0.107305937, 0)
  81. tabs.Size = UDim2.new(0, 136, 0, 380)
  82.  
  83. tabCorner.CornerRadius = UDim.new(0, 6)
  84. tabCorner.Name = "tabCorner"
  85. tabCorner.Parent = tabs
  86.  
  87. allITabs.Name = "allITabs"
  88. allITabs.Parent = tabs
  89. allITabs.BackgroundColor3 = Color3.fromRGB(10, 10, 10)
  90. allITabs.Position = UDim2.new(0.00985628739, 0, 0.00300000003, 0)
  91. allITabs.Size = UDim2.new(0, 134, 0, 378)
  92.  
  93. allTabCorner.CornerRadius = UDim.new(0, 6)
  94. allTabCorner.Name = "allTabCorner"
  95. allTabCorner.Parent = allITabs
  96.  
  97. tabList.Name = "tabList"
  98. tabList.Parent = allITabs
  99. tabList.SortOrder = Enum.SortOrder.LayoutOrder
  100. tabList.Padding = UDim.new(0, 3)
  101.  
  102. tabPad.Name = "tabPad"
  103. tabPad.Parent = allITabs
  104. tabPad.PaddingBottom = UDim.new(0, 5)
  105. tabPad.PaddingLeft = UDim.new(0, 3)
  106. tabPad.PaddingTop = UDim.new(0, 5)
  107.  
  108. Oxy.Name = "Oxy"
  109. Oxy.Parent = Library
  110. Oxy.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  111. Oxy.BackgroundTransparency = 1.000
  112. Oxy.BorderColor3 = Color3.fromRGB(27, 42, 53)
  113. Oxy.Position = UDim2.new(0.0100864554, 0, 0.0205479451, 0)
  114. Oxy.Size = UDim2.new(0, 42, 0, 28)
  115. Oxy.Font = Enum.Font.GothamBold
  116. Oxy.Text = "Oxy"
  117. Oxy.TextColor3 = Color3.fromRGB(108, 108, 108)
  118. Oxy.TextSize = 20.000
  119. Oxy.TextWrapped = true
  120. Oxy.TextXAlignment = Enum.TextXAlignment.Left
  121.  
  122. Hub.Name = "Hub"
  123. Hub.Parent = Library
  124. Hub.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  125. Hub.BackgroundTransparency = 1.000
  126. Hub.BorderColor3 = Color3.fromRGB(27, 42, 53)
  127. Hub.Position = UDim2.new(0.0706051886, 0, 0.0205479451, 0)
  128. Hub.Size = UDim2.new(0, 42, 0, 28)
  129. Hub.Font = Enum.Font.GothamBold
  130. Hub.Text = "Hub"
  131. Hub.TextColor3 = Color3.fromRGB(255, 255, 255)
  132. Hub.TextSize = 20.000
  133. Hub.TextWrapped = true
  134. Hub.TextXAlignment = Enum.TextXAlignment.Left
  135.  
  136. local InsideHandler = {}
  137.  
  138. function InsideHandler:CreateSection(text)
  139. local tabButton = Instance.new("TextButton")
  140. local itemsPad = Instance.new("UIPadding")
  141. local itemsList = Instance.new("UIListLayout")
  142. local tabBtnCorner = Instance.new("UICorner")
  143. local CurrentTabFrame = Instance.new("ScrollingFrame")
  144.  
  145. CurrentTabFrame.Name = text.." Container"
  146. CurrentTabFrame.Parent = CurrentContainer
  147. CurrentTabFrame.Active = true
  148. CurrentTabFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  149. CurrentTabFrame.BackgroundTransparency = 1.000
  150. CurrentTabFrame.Size = UDim2.new(1, 0, 1, 0)
  151. CurrentTabFrame.ScrollBarThickness = 0
  152.  
  153. tabBtnCorner.CornerRadius = UDim.new(0, 6)
  154. tabBtnCorner.Name = "tabBtnCorner"
  155. tabBtnCorner.Parent = tabButton
  156.  
  157. itemsPad.Name = "itemsPad"
  158. itemsPad.Parent = CurrentTabFrame
  159. itemsPad.PaddingLeft = UDim.new(0, 5)
  160.  
  161. itemsList.Name = "itemsList"
  162. itemsList.Parent = CurrentTabFrame
  163. itemsList.SortOrder = Enum.SortOrder.LayoutOrder
  164.  
  165. tabButton.Name = text.." Button"
  166. tabButton.Parent = allITabs
  167. tabButton.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
  168. tabButton.Position = UDim2.new(0.0223880596, 0, 0.0264550261, 0)
  169. tabButton.Size = UDim2.new(0, 128, 0, 35)
  170. tabButton.Font = Enum.Font.GothamSemibold
  171. tabButton.Text = text
  172. tabButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  173. tabButton.TextSize = 14.000
  174.  
  175. tabButton.MouseButton1Click:Connect(function()
  176. for i,v in next, CurrentContainer:GetChildren() do
  177. v.Visible = false
  178. end
  179. --print(CurrentTabFrame.Name)
  180. CurrentTabFrame.Visible = true
  181. end)
  182.  
  183. local shiver = {}
  184.  
  185. function shiver:CreateButton(name, info, callback)
  186. name = name or "TextButton"
  187. info = info or "Info"
  188. callback = callback or function() end
  189.  
  190. local buttonFrame = Instance.new("Frame")
  191. local frameLine = Instance.new("Frame")
  192. local buttonInfo = Instance.new("TextLabel")
  193. local btnCorner = Instance.new("UICorner")
  194. local TextButton = Instance.new("TextButton")
  195.  
  196. buttonFrame.Name = name.." ButtonFrame"
  197. buttonFrame.Parent = CurrentTabFrame
  198. buttonFrame.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
  199. buttonFrame.BorderColor3 = Color3.fromRGB(43, 43, 43)
  200. buttonFrame.BorderSizePixel = 0
  201. buttonFrame.Position = UDim2.new(0.0112781953, 0, 0.0141898664, 0)
  202. buttonFrame.Size = UDim2.new(0, 519, 0, 49)
  203.  
  204. frameLine.Name = "frameLine"
  205. frameLine.Parent = buttonFrame
  206. frameLine.BackgroundColor3 = Color3.fromRGB(43, 43, 43)
  207. frameLine.BorderSizePixel = 0
  208. frameLine.Position = UDim2.new(0, 0, 0.979591846, 0)
  209. frameLine.Size = UDim2.new(1, 0, 0, 1)
  210.  
  211. buttonInfo.Name = "buttonInfo"
  212. buttonInfo.Parent = buttonFrame
  213. buttonInfo.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  214. buttonInfo.BackgroundTransparency = 1.000
  215. buttonInfo.Position = UDim2.new(0.0115606934, 0, -0.0204081628, 0)
  216. buttonInfo.Size = UDim2.new(0, 330, 0, 50)
  217. buttonInfo.Font = Enum.Font.GothamSemibold
  218. buttonInfo.Text = info
  219. buttonInfo.TextColor3 = Color3.fromRGB(255, 255, 255)
  220. buttonInfo.TextSize = 16.000
  221. buttonInfo.TextXAlignment = Enum.TextXAlignment.Left
  222.  
  223. TextButton.Parent = buttonFrame
  224. TextButton.BackgroundColor3 = Color3.fromRGB(10, 10, 10)
  225. TextButton.Position = UDim2.new(0.707129002, 0, 0.142857149, 0)
  226. TextButton.Size = UDim2.new(0, 152, 0, 34)
  227. TextButton.Font = Enum.Font.GothamSemibold
  228. TextButton.Text = name
  229. TextButton.TextColor3 = Color3.fromRGB(149, 149, 149)
  230. TextButton.TextSize = 14.000
  231.  
  232. btnCorner.CornerRadius = UDim.new(0, 3)
  233. btnCorner.Name = "btnCorner"
  234. btnCorner.Parent = TextButton
  235.  
  236. TextButton.MouseButton1Click:Connect(function()
  237. callback()
  238. end)
  239. end
  240. function shiver:CreateToggle(name, callback)
  241. name = name or "Toggle"
  242. info = info or "Info"
  243. callback = callback or function() end
  244.  
  245. local toggleFrame = Instance.new("Frame")
  246. local frameLine = Instance.new("Frame")
  247. local toggleInfo = Instance.new("TextLabel")
  248. local toggleButton = Instance.new("TextButton")
  249. local btnCorner = Instance.new("UICorner")
  250. local toggleFrame_2 = Instance.new("Frame")
  251. local btnCorner_2 = Instance.new("UICorner")
  252.  
  253. toggleFrame.Name = "toggleFrame"
  254. toggleFrame.Parent = CurrentTabFrame
  255. toggleFrame.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
  256. toggleFrame.BorderColor3 = Color3.fromRGB(43, 43, 43)
  257. toggleFrame.BorderSizePixel = 0
  258. toggleFrame.Position = UDim2.new(0.0112781953, 0, 0.0141898664, 0)
  259. toggleFrame.Size = UDim2.new(0, 519, 0, 49)
  260.  
  261. frameLine.Name = "frameLine"
  262. frameLine.Parent = toggleFrame
  263. frameLine.BackgroundColor3 = Color3.fromRGB(43, 43, 43)
  264. frameLine.BorderSizePixel = 0
  265. frameLine.Position = UDim2.new(0, 0, 0.979591846, 0)
  266. frameLine.Size = UDim2.new(1, 0, 0, 1)
  267.  
  268. toggleInfo.Name = "toggleInfo"
  269. toggleInfo.Parent = toggleFrame
  270. toggleInfo.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  271. toggleInfo.BackgroundTransparency = 1.000
  272. toggleInfo.Position = UDim2.new(0.0115606934, 0, -0.0204081628, 0)
  273. toggleInfo.Size = UDim2.new(0, 330, 0, 50)
  274. toggleInfo.Font = Enum.Font.GothamSemibold
  275. toggleInfo.Text = name
  276. toggleInfo.TextColor3 = Color3.fromRGB(255, 255, 255)
  277. toggleInfo.TextSize = 16.000
  278. toggleInfo.TextXAlignment = Enum.TextXAlignment.Left
  279.  
  280. toggleButton.Name = "toggleButton"
  281. toggleButton.Parent = toggleFrame
  282. toggleButton.BackgroundColor3 = Color3.fromRGB(10, 10, 10)
  283. toggleButton.Position = UDim2.new(0.880539358, 0, 0.142857149, 0)
  284. toggleButton.Size = UDim2.new(0, 62, 0, 34)
  285. toggleButton.Font = Enum.Font.GothamSemibold
  286. toggleButton.Text = ""
  287. toggleButton.TextColor3 = Color3.fromRGB(149, 149, 149)
  288. toggleButton.TextSize = 14.000
  289.  
  290. btnCorner.CornerRadius = UDim.new(0, 3)
  291. btnCorner.Name = "btnCorner"
  292. btnCorner.Parent = toggleButton
  293.  
  294. toggleFrame_2.Name = "toggleFrame"
  295. toggleFrame_2.Parent = toggleButton
  296. toggleFrame_2.BackgroundColor3 = Color3.fromRGB(149, 149, 149)
  297. toggleFrame_2.Position = UDim2.new(0.0500000007, 0, 0.117647067, 0)
  298. toggleFrame_2.Size = UDim2.new(0.46750015, 0, 0.735294104, 0)
  299.  
  300. btnCorner_2.CornerRadius = UDim.new(0, 3)
  301. btnCorner_2.Name = "btnCorner"
  302. btnCorner_2.Parent = toggleFrame_2
  303.  
  304. local tog = false
  305. toggleButton.MouseButton1Click:Connect(function()
  306. tog = not tog
  307. callback(tog)
  308. if tog then
  309. toggleFrame_2:TweenPosition(UDim2.new(0.480, 0,0.117647067, 0), "In", "Quint", .2, true)
  310. else
  311. toggleFrame_2:TweenPosition(UDim2.new(0.0500000007, 0, 0.117647067, 0), "Out", "Quint", .2, true)
  312. end
  313. end)
  314. end
  315. function shiver:CreateLabel(text)
  316. text = text or "Text label"
  317.  
  318. local textLabelFrame = Instance.new("Frame")
  319. local frameLine = Instance.new("Frame")
  320. local TextLabel = Instance.new("TextLabel")
  321.  
  322. textLabelFrame.Name = "textLabelFrame"
  323. textLabelFrame.Parent = CurrentTabFrame
  324. textLabelFrame.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
  325. textLabelFrame.BorderColor3 = Color3.fromRGB(43, 43, 43)
  326. textLabelFrame.BorderSizePixel = 0
  327. textLabelFrame.Position = UDim2.new(0.0112781953, 0, 0.0141898664, 0)
  328. textLabelFrame.Size = UDim2.new(0, 519, 0, 49)
  329.  
  330. frameLine.Name = "frameLine"
  331. frameLine.Parent = textLabelFrame
  332. frameLine.BackgroundColor3 = Color3.fromRGB(43, 43, 43)
  333. frameLine.BorderSizePixel = 0
  334. frameLine.Position = UDim2.new(0, 0, 0.979591846, 0)
  335. frameLine.Size = UDim2.new(1, 0, 0, 1)
  336.  
  337. TextLabel.Parent = textLabelFrame
  338. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  339. TextLabel.BackgroundTransparency = 1.000
  340. TextLabel.Position = UDim2.new(0, 0, -0.0204081628, 0)
  341. TextLabel.Size = UDim2.new(0, 518, 0, 50)
  342. TextLabel.Font = Enum.Font.GothamSemibold
  343. TextLabel.Text = text
  344. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  345. TextLabel.TextSize = 16.000
  346. end
  347. function shiver:CreateTextBox(info, placeholder, callback)
  348. info = info or "Info"
  349. placeholder = placeholder or "Type Here"
  350. callback = callback or function() end
  351.  
  352. local textBoxFrame = Instance.new("Frame")
  353. local frameLine = Instance.new("Frame")
  354. local TextBoxInfo = Instance.new("TextLabel")
  355. local txtBoxFrame = Instance.new("Frame")
  356. local btnCorner = Instance.new("UICorner")
  357. local TextBox = Instance.new("TextBox")
  358.  
  359. textBoxFrame.Name = "textBoxFrame"
  360. textBoxFrame.Parent = CurrentTabFrame
  361. textBoxFrame.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
  362. textBoxFrame.BorderColor3 = Color3.fromRGB(43, 43, 43)
  363. textBoxFrame.BorderSizePixel = 0
  364. textBoxFrame.Position = UDim2.new(0.0112781953, 0, 0.0141898664, 0)
  365. textBoxFrame.Size = UDim2.new(0, 519, 0, 49)
  366.  
  367. frameLine.Name = "frameLine"
  368. frameLine.Parent = textBoxFrame
  369. frameLine.BackgroundColor3 = Color3.fromRGB(43, 43, 43)
  370. frameLine.BorderSizePixel = 0
  371. frameLine.Position = UDim2.new(0, 0, 0.979591846, 0)
  372. frameLine.Size = UDim2.new(1, 0, 0, 1)
  373.  
  374. TextBoxInfo.Name = "TextBoxInfo"
  375. TextBoxInfo.Parent = textBoxFrame
  376. TextBoxInfo.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  377. TextBoxInfo.BackgroundTransparency = 1.000
  378. TextBoxInfo.Position = UDim2.new(0.0115606934, 0, -0.0204081628, 0)
  379. TextBoxInfo.Size = UDim2.new(0, 330, 0, 50)
  380. TextBoxInfo.Font = Enum.Font.GothamSemibold
  381. TextBoxInfo.Text = info
  382. TextBoxInfo.TextColor3 = Color3.fromRGB(255, 255, 255)
  383. TextBoxInfo.TextSize = 16.000
  384. TextBoxInfo.TextXAlignment = Enum.TextXAlignment.Left
  385.  
  386. txtBoxFrame.Name = "txtBoxFrame"
  387. txtBoxFrame.Parent = textBoxFrame
  388. txtBoxFrame.BackgroundColor3 = Color3.fromRGB(10, 10, 10)
  389. txtBoxFrame.ClipsDescendants = true
  390. txtBoxFrame.Position = UDim2.new(0.707129002, 0, 0.142999768, 0)
  391. txtBoxFrame.Size = UDim2.new(0, 152, 0, 34)
  392.  
  393. btnCorner.CornerRadius = UDim.new(0, 3)
  394. btnCorner.Name = "btnCorner"
  395. btnCorner.Parent = txtBoxFrame
  396.  
  397. TextBox.Parent = txtBoxFrame
  398. TextBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  399. TextBox.BackgroundTransparency = 1.000
  400. TextBox.Position = UDim2.new(-0.0417672768, 0, 0, 0)
  401. TextBox.Size = UDim2.new(1.04176724, 0, 1, 0)
  402. TextBox.Font = Enum.Font.SourceSans
  403. TextBox.PlaceholderColor3 = Color3.fromRGB(74, 74, 74)
  404. TextBox.PlaceholderText = placeholder
  405. TextBox.Text = ""
  406. TextBox.TextColor3 = Color3.fromRGB(149, 149, 149)
  407. TextBox.TextSize = 14.000
  408.  
  409. TextBox.FocusLost:Connect(function(EnterPressed)
  410. if not EnterPressed then return end
  411. callback(TextBox.Text)
  412. TextBox.Text = ""
  413. end)
  414. end
  415. function shiver:CreateSlider(minvalue, maxvalue, info, callback)
  416. minvalue = minvalue or 0
  417. maxvalue = maxvalue or 500
  418. callback = callback or function() end
  419.  
  420. local sliderFrame = Instance.new("Frame")
  421. local frameLine = Instance.new("Frame")
  422. local sliderInfo = Instance.new("TextLabel")
  423. local sliderButton = Instance.new("TextButton")
  424. local sliderCorner = Instance.new("UICorner")
  425. local sliderPoint = Instance.new("Frame")
  426. local sliderCorner_2 = Instance.new("UICorner")
  427. local sliderInfo_2 = Instance.new("TextLabel")
  428.  
  429. sliderFrame.Name = "sliderFrame"
  430. sliderFrame.Parent = CurrentTabFrame
  431. sliderFrame.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
  432. sliderFrame.BorderColor3 = Color3.fromRGB(43, 43, 43)
  433. sliderFrame.BorderSizePixel = 0
  434. sliderFrame.Position = UDim2.new(4.22401354e-05, 0, 0.0141898664, 0)
  435. sliderFrame.Size = UDim2.new(0, 519, 0, 49)
  436.  
  437. frameLine.Name = "frameLine"
  438. frameLine.Parent = sliderFrame
  439. frameLine.BackgroundColor3 = Color3.fromRGB(43, 43, 43)
  440. frameLine.BorderSizePixel = 0
  441. frameLine.Position = UDim2.new(0, 0, 0.979591846, 0)
  442. frameLine.Size = UDim2.new(1, 0, 0, 1)
  443.  
  444. sliderInfo.Name = "sliderInfo"
  445. sliderInfo.Parent = sliderFrame
  446. sliderInfo.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  447. sliderInfo.BackgroundTransparency = 1.000
  448. sliderInfo.Position = UDim2.new(0.0115606934, 0, -0.0204081628, 0)
  449. sliderInfo.Size = UDim2.new(0, 265, 0, 50)
  450. sliderInfo.Font = Enum.Font.GothamSemibold
  451. sliderInfo.Text = info
  452. sliderInfo.TextColor3 = Color3.fromRGB(255, 255, 255)
  453. sliderInfo.TextSize = 16.000
  454. sliderInfo.TextXAlignment = Enum.TextXAlignment.Left
  455.  
  456. sliderButton.Name = "sliderButton"
  457. sliderButton.Parent = sliderFrame
  458. sliderButton.BackgroundColor3 = Color3.fromRGB(10, 10, 10)
  459. sliderButton.Position = UDim2.new(0.710982621, 0, 0.408163279, 0)
  460. sliderButton.Size = UDim2.new(0, 150, 0, 7)
  461. sliderButton.Font = Enum.Font.SourceSans
  462. sliderButton.Text = ""
  463. sliderButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  464. sliderButton.TextSize = 14.000
  465.  
  466. sliderCorner.CornerRadius = UDim.new(0, 3)
  467. sliderCorner.Name = "sliderCorner"
  468. sliderCorner.Parent = sliderButton
  469.  
  470. sliderPoint.Name = "sliderPoint"
  471. sliderPoint.Parent = sliderButton
  472. sliderPoint.BackgroundColor3 = Color3.fromRGB(149, 149, 149)
  473. sliderPoint.Size = UDim2.new(0, 0, 0, 7)
  474.  
  475. sliderCorner_2.CornerRadius = UDim.new(0, 3)
  476. sliderCorner_2.Name = "sliderCorner"
  477. sliderCorner_2.Parent = sliderPoint
  478.  
  479. sliderInfo_2.Name = "sliderInfo"
  480. sliderInfo_2.Parent = sliderFrame
  481. sliderInfo_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  482. sliderInfo_2.BackgroundTransparency = 1.000
  483. sliderInfo_2.Position = UDim2.new(0.522157967, 0, -0.0408163257, 0)
  484. sliderInfo_2.Size = UDim2.new(0, 89, 0, 50)
  485. sliderInfo_2.Font = Enum.Font.GothamSemibold
  486. sliderInfo_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  487. sliderInfo_2.TextSize = 16.000
  488. sliderInfo_2.Text = minvalue.."/"..maxvalue
  489. sliderInfo_2.TextXAlignment = Enum.TextXAlignment.Right
  490.  
  491. local mouse = game.Players.LocalPlayer:GetMouse()
  492. local uis = game:GetService("UserInputService")
  493. local Value;
  494.  
  495. sliderButton.MouseButton1Down:Connect(function()
  496. Value = math.floor((((tonumber(maxvalue) - tonumber(minvalue)) / 150) * sliderPoint.AbsoluteSize.X) + tonumber(minvalue)) or 0
  497. pcall(function()
  498. callback(Value)
  499. end)
  500. sliderPoint.Size = UDim2.new(0, math.clamp(mouse.X - sliderPoint.AbsolutePosition.X, 0, 150), 0, 7)
  501. moveconnection = mouse.Move:Connect(function()
  502. sliderInfo_2.Text = Value.."/"..maxvalue
  503. Value = math.floor((((tonumber(maxvalue) - tonumber(minvalue)) / 150) * sliderPoint.AbsoluteSize.X) + tonumber(minvalue))
  504. pcall(function()
  505. callback(Value)
  506. end)
  507. sliderPoint.Size = UDim2.new(0, math.clamp(mouse.X - sliderPoint.AbsolutePosition.X, 0, 150), 0, 7)
  508. end)
  509. releaseconnection = uis.InputEnded:Connect(function(Mouse)
  510. if Mouse.UserInputType == Enum.UserInputType.MouseButton1 then
  511. Value = math.floor((((tonumber(maxvalue) - tonumber(minvalue)) / 150) * sliderPoint.AbsoluteSize.X) + tonumber(minvalue))
  512. pcall(function()
  513. callback(Value)
  514. end)
  515. sliderPoint.Size = UDim2.new(0, math.clamp(mouse.X - sliderPoint.AbsolutePosition.X, 0, 150), 0, 7)
  516. moveconnection:Disconnect()
  517. releaseconnection:Disconnect()
  518. end
  519. end)
  520. end)
  521. end
  522. function shiver:CreateKeyBind(info, first, callback)
  523. info = info or "Info"
  524. callback = callback or function() end
  525. local oldKey = first.Name
  526.  
  527. local keyBindFrame = Instance.new("Frame")
  528. local frameLine = Instance.new("Frame")
  529. local bindInfo = Instance.new("TextLabel")
  530. local bindBtn = Instance.new("TextButton")
  531. local btnCorner = Instance.new("UICorner")
  532.  
  533. keyBindFrame.Name = "keyBindFrame"
  534. keyBindFrame.Parent = CurrentTabFrame
  535. keyBindFrame.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
  536. keyBindFrame.BorderColor3 = Color3.fromRGB(43, 43, 43)
  537. keyBindFrame.BorderSizePixel = 0
  538. keyBindFrame.Position = UDim2.new(0.0112781953, 0, 0.0141898664, 0)
  539. keyBindFrame.Size = UDim2.new(0, 519, 0, 49)
  540.  
  541. frameLine.Name = "frameLine"
  542. frameLine.Parent = keyBindFrame
  543. frameLine.BackgroundColor3 = Color3.fromRGB(43, 43, 43)
  544. frameLine.BorderSizePixel = 0
  545. frameLine.Position = UDim2.new(0, 0, 0.979591846, 0)
  546. frameLine.Size = UDim2.new(1, 0, 0, 1)
  547.  
  548. bindInfo.Name = "bindInfo"
  549. bindInfo.Parent = keyBindFrame
  550. bindInfo.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  551. bindInfo.BackgroundTransparency = 1.000
  552. bindInfo.Position = UDim2.new(0.0115606934, 0, -0.0204081628, 0)
  553. bindInfo.Size = UDim2.new(0, 330, 0, 50)
  554. bindInfo.Font = Enum.Font.GothamSemibold
  555. bindInfo.Text = info
  556. bindInfo.TextColor3 = Color3.fromRGB(255, 255, 255)
  557. bindInfo.TextSize = 16.000
  558. bindInfo.TextXAlignment = Enum.TextXAlignment.Left
  559.  
  560. bindBtn.Parent = keyBindFrame
  561. bindBtn.BackgroundColor3 = Color3.fromRGB(10, 10, 10)
  562. bindBtn.Position = UDim2.new(0.934296787, 0, 0.142857149, 0)
  563. bindBtn.Size = UDim2.new(0, 34, 0, 34)
  564. bindBtn.Font = Enum.Font.GothamSemibold
  565. bindBtn.TextColor3 = Color3.fromRGB(149, 149, 149)
  566. bindBtn.TextSize = 14.000
  567. bindBtn.Text = oldKey
  568.  
  569. btnCorner.CornerRadius = UDim.new(0, 3)
  570. btnCorner.Name = "btnCorner"
  571. btnCorner.Parent = bindBtn
  572.  
  573. bindBtn.MouseButton1Click:connect(function(e)
  574. bindBtn.Text = "..."
  575. local a, b = game:GetService('UserInputService').InputBegan:wait();
  576. if a.KeyCode.Name ~= "Unknown" then
  577. bindBtn.Text = a.KeyCode.Name
  578. oldKey = a.KeyCode.Name;
  579. end
  580. end)
  581.  
  582. game:GetService("UserInputService").InputBegan:connect(function(current, ok)
  583. if not ok then
  584. if current.KeyCode.Name == oldKey then
  585. callback()
  586. end
  587. end
  588. end)
  589. end
  590. return shiver
  591. end
  592. return InsideHandler
  593. end
  594. return OxyLibrary
Add Comment
Please, Sign In to add comment