Advertisement
MrStealUGurl

cloud hub ui library

Sep 21st, 2020
788
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 38.53 KB | None | 0 0
  1. local library = {
  2. KeyBind = Enum.KeyCode.RightShift
  3. }
  4. local mouse = game.Players.LocalPlayer:GetMouse()
  5. local uis = game:GetService("UserInputService")
  6. local TweenService = game:GetService("TweenService")
  7. local InsertedObjects = Instance.new("ScreenGui")
  8. local MainContainer = Instance.new("Frame")
  9. local TopFrame = Instance.new("Frame")
  10. local TopFrameColors = Instance.new("UIGradient")
  11. local TopFrameLine = Instance.new("Frame")
  12. local TopFrameLineColor = Instance.new("UIGradient")
  13. local SectionButtonsHolder = Instance.new("Frame")
  14. local SectionButtonsLiter = Instance.new("UIListLayout")
  15. local Close = Instance.new("TextButton")
  16. local XColor = Instance.new("UIGradient")
  17. local OriginalTitle = Instance.new("TextLabel")
  18. local MainContainerColors = Instance.new("UIGradient")
  19. local Sections = Instance.new("Folder")
  20. InsertedObjects.Name = "InsertedObjects"
  21. InsertedObjects.Parent = game.CoreGui
  22. MainContainer.Name = "MainContainer"
  23. MainContainer.Parent = InsertedObjects
  24. MainContainer.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  25. MainContainer.BorderColor3 = Color3.fromRGB(149, 241, 255)
  26. MainContainer.BorderSizePixel = 0
  27. MainContainer.Position = UDim2.new(0.5, -300, 0.5, -200)
  28. MainContainer.Size = UDim2.new(0, 600, 0, 400)
  29. MainContainer.Active = true
  30. MainContainer.Draggable = true
  31. TopFrame.Name = "TopFrame"
  32. TopFrame.Parent = MainContainer
  33. TopFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  34. TopFrame.BorderSizePixel = 0
  35. TopFrame.Size = UDim2.new(0, 600, 0, 55)
  36. TopFrameColors.Color = ColorSequence.new{
  37. ColorSequenceKeypoint.new(0.00, Color3.fromRGB(27, 27, 27)),
  38. ColorSequenceKeypoint.new(0.56, Color3.fromRGB(22, 22, 22)),
  39. ColorSequenceKeypoint.new(1.00, Color3.fromRGB(25, 25, 25))
  40. }
  41. TopFrameColors.Rotation = 90
  42. TopFrameColors.Name = "TopFrameColors"
  43. TopFrameColors.Parent = TopFrame
  44. TopFrameLine.Name = "TopFrameLine"
  45. TopFrameLine.Parent = TopFrame
  46. TopFrameLine.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  47. TopFrameLine.BorderSizePixel = 0
  48. TopFrameLine.Position = UDim2.new(0, 0, 0.290909111, 0)
  49. TopFrameLine.Size = UDim2.new(0, 600, 0, 2)
  50. TopFrameLineColor.Color = ColorSequence.new{
  51. ColorSequenceKeypoint.new(0.00, Color3.fromRGB(26, 26, 26)),
  52. ColorSequenceKeypoint.new(0.48, Color3.fromRGB(94, 94, 94)),
  53. ColorSequenceKeypoint.new(1.00, Color3.fromRGB(26, 26, 26))
  54. }
  55. TopFrameLineColor.Name = "TopFrameLineColor"
  56. TopFrameLineColor.Parent = TopFrameLine
  57. SectionButtonsHolder.Name = "SectionButtonsHolder"
  58. SectionButtonsHolder.Parent = TopFrame
  59. SectionButtonsHolder.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  60. SectionButtonsHolder.BackgroundTransparency = 1.000
  61. SectionButtonsHolder.BorderSizePixel = 0
  62. SectionButtonsHolder.Position = UDim2.new(0.00999999978, 0, 0.327272713, 0)
  63. SectionButtonsHolder.Size = UDim2.new(0, 594, 0, 37)
  64. SectionButtonsLiter.Name = "SectionButtonsLiter"
  65. SectionButtonsLiter.Parent = SectionButtonsHolder
  66. SectionButtonsLiter.FillDirection = Enum.FillDirection.Horizontal
  67. SectionButtonsLiter.SortOrder = Enum.SortOrder.LayoutOrder
  68. SectionButtonsLiter.VerticalAlignment = Enum.VerticalAlignment.Center
  69. Close.Name = "Close"
  70. Close.Parent = TopFrame
  71. Close.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  72. Close.BackgroundTransparency = 1.000
  73. Close.Position = UDim2.new(1, -16, 0, 0)
  74. Close.Size = UDim2.new(0, 16, 0, 16)
  75. Close.Font = Enum.Font.SourceSansSemibold
  76. Close.Text = "X"
  77. Close.TextColor3 = Color3.fromRGB(255, 255, 255)
  78. Close.TextSize = 14.000
  79. Close.MouseButton1Down:connect(function()
  80. game:GetService("CoreGui").InsertedObjects:Destroy()
  81. end)
  82. XColor.Color = ColorSequence.new{
  83. ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 255, 255)),
  84. ColorSequenceKeypoint.new(1.00, Color3.fromRGB(197, 197, 197))
  85. }
  86. XColor.Rotation = 90
  87. XColor.Name = "XColor"
  88. XColor.Parent = Close
  89. OriginalTitle.Name = "OriginalTitle"
  90. OriginalTitle.Parent = TopFrame
  91. OriginalTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  92. OriginalTitle.BackgroundTransparency = 1.000
  93. OriginalTitle.Position = UDim2.new(0.451666653, 0, 0, 0)
  94. OriginalTitle.Size = UDim2.new(0, 58, 0, 16)
  95. OriginalTitle.Font = Enum.Font.Gotham
  96. OriginalTitle.Text = "CLOUD"
  97. OriginalTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  98. OriginalTitle.TextSize = 14.000
  99. MainContainerColors.Color = ColorSequence.new{
  100. ColorSequenceKeypoint.new(0.00, Color3.fromRGB(25, 25, 25)),
  101. ColorSequenceKeypoint.new(1.00, Color3.fromRGB(18, 18, 18))
  102. }
  103. MainContainerColors.Rotation = 90
  104. MainContainerColors.Name = "MainContainerColors"
  105. MainContainerColors.Parent = MainContainer
  106. Sections.Name = "Sections"
  107. Sections.Parent = MainContainer
  108. function library:CreateSection(option)
  109. option = option or {}
  110. option.text = option.text or ""
  111. local TextBounds = game:GetService("TextService"):GetTextSize(option.text, 18, Enum.Font.SourceSansSemibold, Vector2.new(math.huge, math.huge))
  112. local Aimbot = Instance.new("TextButton")
  113. Aimbot.Name = "Aimbot"
  114. Aimbot.Parent = SectionButtonsHolder
  115. Aimbot.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  116. Aimbot.BackgroundTransparency = 1.000
  117. Aimbot.Position = UDim2.new(0, 0, 0.0945945978, 0)
  118. Aimbot.Size = UDim2.new(0, TextBounds.X + 15, 0, 30)
  119. Aimbot.Font = Enum.Font.SourceSansSemibold
  120. Aimbot.Text = option.text
  121. Aimbot.TextColor3 = Color3.fromRGB(155, 155, 155)
  122. Aimbot.TextSize = 18
  123. local SectionFrame = Instance.new("Frame")
  124. SectionFrame.Name = "SectionFrame"
  125. SectionFrame.Parent = Sections
  126. SectionFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  127. SectionFrame.BorderColor3 = Color3.fromRGB(77, 77, 77)
  128. SectionFrame.Position = UDim2.new(0.5, -288, 0.5625, -161)
  129. SectionFrame.Size = UDim2.new(0, 576, 0, 323)
  130. SectionFrame.Visible = false
  131. local nagars = Instance.new("Folder")
  132. nagars.Name = "nagars"
  133. nagars.Parent = SectionFrame
  134. local NagarButtonsFrame = Instance.new("Frame")
  135. NagarButtonsFrame.Name = "NagarButtonsFrame"
  136. NagarButtonsFrame.Parent = SectionFrame
  137. NagarButtonsFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  138. NagarButtonsFrame.BorderColor3 = Color3.fromRGB(77, 77, 77)
  139. NagarButtonsFrame.Size = UDim2.new(0, 576, 0, 30)
  140. local NagarButtonLister = Instance.new("UIListLayout")
  141. NagarButtonLister.Name = "NagarButtonLister"
  142. NagarButtonLister.Parent = NagarButtonsFrame
  143. NagarButtonLister.FillDirection = Enum.FillDirection.Horizontal
  144. NagarButtonLister.SortOrder = Enum.SortOrder.LayoutOrder
  145. local NagarButtonPadder = Instance.new("UIPadding")
  146. NagarButtonPadder.Name = "NagarButtonPadder"
  147. NagarButtonPadder.Parent = NagarButtonsFrame
  148. NagarButtonPadder.PaddingLeft = UDim.new(0, 5)
  149. Aimbot.MouseButton1Click:Connect(function()
  150. for i, v in next, Sections:GetChildren() do
  151. v.Visible = false
  152. end
  153. SectionFrame.Visible = true
  154. end)
  155. Aimbot.MouseEnter:Connect(function()
  156. TweenService:Create(Aimbot, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
  157. TextColor3 = Color3.fromRGB(255, 255, 255)
  158. }):Play()
  159. end)
  160. Aimbot.MouseLeave:Connect(function()
  161. TweenService:Create(Aimbot, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
  162. TextColor3 = Color3.fromRGB(155, 155, 155)
  163. }):Play()
  164. end)
  165. local s = {}
  166. function s:CreateNagar(option)
  167. option = option or {}
  168. option.text = option.text or ""
  169. local TextBounds = game:GetService("TextService"):GetTextSize(option.text, 18, Enum.Font.SourceSansSemibold, Vector2.new(math.huge, math.huge))
  170. local Aimbot_2 = Instance.new("TextButton")
  171. Aimbot_2.Name = "Aimbot"
  172. Aimbot_2.Parent = NagarButtonsFrame
  173. Aimbot_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  174. Aimbot_2.BackgroundTransparency = 1.000
  175. Aimbot_2.Position = UDim2.new(0.00868055597, 0, 0, 0)
  176. Aimbot_2.Size = UDim2.new(0, TextBounds.X + 15, 0, 30)
  177. Aimbot_2.Font = Enum.Font.SourceSansSemibold
  178. Aimbot_2.Text = option.text
  179. Aimbot_2.TextColor3 = Color3.fromRGB(155, 155, 155)
  180. Aimbot_2.TextSize = 18
  181. local Nagars = Instance.new("Frame")
  182. Nagars.Name = "Nagars"
  183. Nagars.Parent = nagars
  184. Nagars.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  185. Nagars.BackgroundTransparency = 1.000
  186. Nagars.BorderSizePixel = 0
  187. Nagars.Position = UDim2.new(0, 0, 0.0928792581, 0)
  188. Nagars.Size = UDim2.new(0, 576, 0, 293)
  189. local NagarLister = Instance.new("UIListLayout")
  190. NagarLister.Name = "NagarLister"
  191. NagarLister.Parent = Nagars
  192. NagarLister.FillDirection = Enum.FillDirection.Horizontal
  193. NagarLister.SortOrder = Enum.SortOrder.LayoutOrder
  194. NagarLister.VerticalAlignment = Enum.VerticalAlignment.Center
  195. NagarLister.Padding = UDim.new(0, 10)
  196. local NagarPadder = Instance.new("UIPadding")
  197. NagarPadder.Name = "NagarPadder"
  198. NagarPadder.Parent = Nagars
  199. NagarPadder.PaddingLeft = UDim.new(0, 8)
  200. Aimbot_2.MouseButton1Click:Connect(function()
  201. for i, v in next, nagars:GetChildren() do
  202. v.Visible = false
  203. end
  204. Nagars.Visible = true
  205. end)
  206. Aimbot_2.MouseEnter:Connect(function()
  207. TweenService:Create(Aimbot_2, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
  208. TextColor3 = Color3.fromRGB(255, 255, 255)
  209. }):Play()
  210. end)
  211. Aimbot_2.MouseLeave:Connect(function()
  212. TweenService:Create(Aimbot_2, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
  213. TextColor3 = Color3.fromRGB(155, 155, 155)
  214. }):Play()
  215. end)
  216. local a = {}
  217. function a:CreateWindow(option)
  218. option = option or {}
  219. option.text = option.text or ""
  220. local TextBounds = game:GetService("TextService"):GetTextSize(option.text, 14, Enum.Font.SourceSansLight, Vector2.new(math.huge, math.huge))
  221. local NagarWindow = Instance.new("Frame")
  222. NagarWindow.Name = "NagarWindow"
  223. NagarWindow.Parent = Nagars
  224. NagarWindow.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  225. NagarWindow.BorderColor3 = Color3.fromRGB(77, 77, 77)
  226. NagarWindow.Position = UDim2.new(-0.107638888, 0, 0.046075087, 0)
  227. NagarWindow.Size = UDim2.new(0, 180, 0, 268)
  228. Nagars.Visible = false
  229. local NagarText = Instance.new("TextLabel")
  230. NagarText.Name = "NagarText"
  231. NagarText.Parent = NagarWindow
  232. NagarText.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  233. NagarText.BorderSizePixel = 0
  234. NagarText.Position = UDim2.new(0.622, -22, 0, 0)
  235. NagarText.Size = UDim2.new(0, TextBounds.X + 10, 0, 15)
  236. NagarText.Font = Enum.Font.SourceSansLight
  237. NagarText.Text = option.text
  238. NagarText.TextColor3 = Color3.fromRGB(255, 255, 255)
  239. NagarText.TextSize = 14.000
  240. NagarText.AnchorPoint = Vector2.new(0.5, 0.5)
  241. local Features = Instance.new("Frame")
  242. Features.Name = "Features"
  243. Features.Parent = NagarWindow
  244. Features.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  245. Features.BackgroundTransparency = 1.000
  246. Features.Position = UDim2.new(0, 0, 0.0298507456, 0)
  247. Features.Size = UDim2.new(0, 180, 0, 260)
  248. local UIListLayout = Instance.new("UIListLayout")
  249. UIListLayout.Parent = Features
  250. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  251. local Nig = {}
  252. function Nig:CreateToggle(option)
  253. option = option or {}
  254. option.text = option.text or ""
  255. option.callback = option.callback or function()
  256. end
  257. local Toggle = Instance.new("TextButton")
  258. local FrameToggled = Instance.new("ImageLabel")
  259. local Inner = Instance.new("ImageLabel")
  260. local Checked = Instance.new("ImageLabel")
  261. local ToggleText = Instance.new("TextLabel")
  262. Toggle.Name = "Toggle"
  263. Toggle.Parent = Features
  264. Toggle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  265. Toggle.BackgroundTransparency = 1.000
  266. Toggle.Position = UDim2.new(1, -180, 0.5, -12)
  267. Toggle.Size = UDim2.new(0, 180, 0, 25)
  268. Toggle.Font = Enum.Font.SourceSans
  269. Toggle.Text = ""
  270. Toggle.TextColor3 = Color3.fromRGB(0, 0, 0)
  271. Toggle.TextSize = 14.000
  272. FrameToggled.Name = "FrameToggled"
  273. FrameToggled.Parent = Toggle
  274. FrameToggled.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  275. FrameToggled.BackgroundTransparency = 1.000
  276. FrameToggled.Position = UDim2.new(0.961111128, -20, 0.539999962, -10)
  277. FrameToggled.Size = UDim2.new(0, 20, 0, 20)
  278. FrameToggled.Image = "rbxassetid://3570695787"
  279. FrameToggled.ImageColor3 = Color3.fromRGB(35, 35, 35)
  280. FrameToggled.ScaleType = Enum.ScaleType.Slice
  281. FrameToggled.SliceCenter = Rect.new(100, 100, 100, 100)
  282. FrameToggled.SliceScale = 0.040
  283. Inner.Name = "Inner"
  284. Inner.Parent = FrameToggled
  285. Inner.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  286. Inner.BackgroundTransparency = 1.000
  287. Inner.Position = UDim2.new(0.5, -8, 0.5, -8)
  288. Inner.Size = UDim2.new(0, 16, 0, 16)
  289. Inner.ZIndex = 1
  290. Inner.Image = "rbxassetid://3570695787"
  291. Inner.ImageColor3 = Color3.fromRGB(25, 25, 25)
  292. Inner.ScaleType = Enum.ScaleType.Slice
  293. Inner.SliceCenter = Rect.new(100, 100, 100, 100)
  294. Inner.SliceScale = 0.040
  295. Checked.Name = "Checked"
  296. Checked.Parent = FrameToggled
  297. Checked.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  298. Checked.BackgroundTransparency = 1.000
  299. Checked.Position = UDim2.new(0.5, -5, 0.5, -5)
  300. Checked.Size = UDim2.new(0, 10, 0, 10)
  301. Checked.Image = "rbxassetid://4919148038"
  302. Checked.SliceScale = 5.000
  303. Checked.ImageTransparency = 1
  304. Checked.ImageColor3 = Color3.fromRGB(155, 155, 155)
  305. ToggleText.Name = "ToggleText"
  306. ToggleText.Parent = Toggle
  307. ToggleText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  308. ToggleText.BackgroundTransparency = 1.000
  309. ToggleText.Position = UDim2.new(0, 0, 0.171428218, 0)
  310. ToggleText.Size = UDim2.new(0, 118, 0, 18)
  311. ToggleText.Font = Enum.Font.SourceSans
  312. ToggleText.Text = " "..option.text
  313. ToggleText.TextColor3 = Color3.fromRGB(155, 155, 155)
  314. ToggleText.TextSize = 15.000
  315. ToggleText.TextXAlignment = Enum.TextXAlignment.Left
  316. local toggled = false
  317. Toggle.MouseEnter:Connect(function()
  318. TweenService:Create(ToggleText, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
  319. TextColor3 = Color3.fromRGB(255, 255, 255)
  320. }):Play()
  321. TweenService:Create(Checked, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
  322. ImageColor3 = Color3.fromRGB(255, 255, 255)
  323. }):Play()
  324. end)
  325. Toggle.MouseLeave:Connect(function()
  326. TweenService:Create(ToggleText, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
  327. TextColor3 = Color3.fromRGB(155, 155, 155)
  328. }):Play()
  329. TweenService:Create(Checked, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
  330. ImageColor3 = Color3.fromRGB(155, 155, 155)
  331. }):Play()
  332. end)
  333. Toggle.MouseButton1Click:Connect(function()
  334. if toggled then
  335. toggled = false
  336. TweenService:Create(Checked, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
  337. ImageTransparency = 1
  338. }):Play()
  339. elseif toggled == false then
  340. toggled = true
  341. TweenService:Create(Checked, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
  342. ImageTransparency = 0
  343. }):Play()
  344. end
  345. option.callback(toggled)
  346. end)
  347. end
  348. function Nig:CreateDropdown(option)
  349. option.text = option.text or ""
  350. option.list = option.list or {}
  351. option.callback = option.callback or function()
  352. end
  353. local BodyYSize = 10
  354. local Dropdown = Instance.new("TextButton")
  355. local DropdownText = Instance.new("TextLabel")
  356. local DropdownList = Instance.new("Frame")
  357. local ChosenDropdown = Instance.new("TextLabel")
  358. local UIListLayout = Instance.new("UIListLayout")
  359. UIListLayout.Parent = DropdownList
  360. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  361. Dropdown.Name = "Dropdown"
  362. Dropdown.Parent = Features
  363. Dropdown.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  364. Dropdown.BackgroundTransparency = 1.000
  365. Dropdown.Size = UDim2.new(0, 180, 0, 40)
  366. Dropdown.Font = Enum.Font.SourceSans
  367. Dropdown.Text = ""
  368. Dropdown.TextColor3 = Color3.fromRGB(0, 0, 0)
  369. Dropdown.TextSize = 14.000
  370. DropdownText.Name = "DropdownText"
  371. DropdownText.Parent = Dropdown
  372. DropdownText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  373. DropdownText.BackgroundTransparency = 1.000
  374. DropdownText.Position = UDim2.new(0, 0, 0.25, -12)
  375. DropdownText.Size = UDim2.new(0, 118, 0, 25)
  376. DropdownText.Font = Enum.Font.SourceSans
  377. DropdownText.Text = " " .. option.text
  378. DropdownText.TextColor3 = Color3.fromRGB(178, 178, 178)
  379. DropdownText.TextSize = 15.000
  380. DropdownText.TextXAlignment = Enum.TextXAlignment.Left
  381. DropdownList.Name = "DropdownList"
  382. DropdownList.Parent = Dropdown
  383. DropdownList.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  384. DropdownList.BorderColor3 = Color3.fromRGB(35, 35, 35)
  385. DropdownList.BorderSizePixel = 2
  386. DropdownList.Position = UDim2.new(0.0388888903, 0, 0.574999988, 0)
  387. DropdownList.Size = UDim2.new(0, 166, 0, 10)
  388. DropdownList.ZIndex = 2
  389. DropdownList.ClipsDescendants = true
  390. ChosenDropdown.Name = "ChosenDropdown"
  391. ChosenDropdown.Parent = DropdownList
  392. ChosenDropdown.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  393. ChosenDropdown.BackgroundTransparency = 1.000
  394. ChosenDropdown.Size = UDim2.new(0, 166, 0, 10)
  395. ChosenDropdown.Font = Enum.Font.SourceSans
  396. ChosenDropdown.TextColor3 = Color3.fromRGB(255, 255, 255)
  397. ChosenDropdown.TextSize = 14.000
  398. ChosenDropdown.ZIndex = 2
  399. ChosenDropdown.Text = ""
  400. Dropdown.MouseButton1Click:Connect(function()
  401. TweenService:Create(DropdownList, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
  402. Size = UDim2.new(0, 166, 0, BodyYSize)
  403. }):Play()
  404. ChosenDropdown.Text = "..."
  405. end)
  406. Dropdown.MouseEnter:Connect(function()
  407. TweenService:Create(ChosenDropdown, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
  408. TextColor3 = Color3.fromRGB(255, 255, 255)
  409. }):Play()
  410. TweenService:Create(DropdownText, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
  411. TextColor3 = Color3.fromRGB(255, 255, 255)
  412. }):Play()
  413. end)
  414. Dropdown.MouseLeave:Connect(function()
  415. TweenService:Create(ChosenDropdown, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
  416. TextColor3 = Color3.fromRGB(155, 155, 155)
  417. }):Play()
  418. TweenService:Create(DropdownText, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
  419. TextColor3 = Color3.fromRGB(155, 155, 155)
  420. }):Play()
  421. end)
  422. for i, v in next, option.list do
  423. local OPTION = Instance.new("TextButton")
  424. OPTION.Name = v
  425. OPTION.Parent = DropdownList
  426. OPTION.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  427. OPTION.BackgroundTransparency = 1.000
  428. OPTION.Position = UDim2.new(0, 0, 0.0892857164, 0)
  429. OPTION.Size = UDim2.new(0, 166, 0, 25)
  430. OPTION.ZIndex = 2
  431. OPTION.Font = Enum.Font.SourceSans
  432. OPTION.TextColor3 = Color3.fromRGB(255, 255, 255)
  433. OPTION.TextSize = 14.000
  434. OPTION.Text = v
  435. BodyYSize = BodyYSize + 25
  436. OPTION.MouseButton1Click:Connect(function()
  437. TweenService:Create(DropdownList, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
  438. Size = UDim2.new(0, 166, 0, 10)
  439. }):Play()
  440. option.callback(v)
  441. ChosenDropdown.Text = v
  442. end)
  443. OPTION.MouseEnter:Connect(function()
  444. TweenService:Create(OPTION, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
  445. TextColor3 = Color3.fromRGB(255, 255, 255)
  446. }):Play()
  447. end)
  448. OPTION.MouseLeave:Connect(function()
  449. TweenService:Create(OPTION, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
  450. TextColor3 = Color3.fromRGB(155, 155, 155)
  451. }):Play()
  452. end)
  453. end
  454. end
  455. function Nig:CreateSlider(option)
  456. option.text = option.text or ""
  457. option.minval = option.minval or 0
  458. option.maxval = option.maxval or 0
  459. option.callback = option.callback or function()
  460. end
  461. local Value;
  462. local Slider = Instance.new("TextButton")
  463. local SliderText = Instance.new("TextLabel")
  464. local SliderLine = Instance.new("Frame")
  465. local SliderInner = Instance.new("Frame")
  466. local SliderValue = Instance.new("TextLabel")
  467. Slider.Name = "Slider"
  468. Slider.Parent = Features
  469. Slider.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  470. Slider.BackgroundTransparency = 1.000
  471. Slider.Size = UDim2.new(0, 180, 0, 40)
  472. Slider.Font = Enum.Font.SourceSans
  473. Slider.Text = ""
  474. Slider.TextColor3 = Color3.fromRGB(0, 0, 0)
  475. Slider.TextSize = 14.000
  476. SliderText.Name = "SliderText"
  477. SliderText.Parent = Slider
  478. SliderText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  479. SliderText.BackgroundTransparency = 1.000
  480. SliderText.Position = UDim2.new(0, 0, 0.25, -12)
  481. SliderText.Size = UDim2.new(0, 118, 0, 25)
  482. SliderText.Font = Enum.Font.SourceSans
  483. SliderText.Text = " " .. option.text
  484. SliderText.TextColor3 = Color3.fromRGB(178, 178, 178)
  485. SliderText.TextSize = 15.000
  486. SliderText.TextXAlignment = Enum.TextXAlignment.Left
  487. SliderLine.Name = "SliderLine"
  488. SliderLine.Parent = Slider
  489. SliderLine.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  490. SliderLine.BorderColor3 = Color3.fromRGB(35, 35, 35)
  491. SliderLine.BorderSizePixel = 2
  492. SliderLine.Position = UDim2.new(0.0388888903, 0, 0.574999988, 0)
  493. SliderLine.Size = UDim2.new(0, 166, 0, 10)
  494. SliderInner.Name = "SliderInner"
  495. SliderInner.Parent = SliderLine
  496. SliderInner.BackgroundColor3 = Color3.fromRGB(255, 80, 80)
  497. SliderInner.BorderSizePixel = 0
  498. SliderInner.Size = UDim2.new(0, 0, 0, 10)
  499. SliderValue.Name = "SliderValue"
  500. SliderValue.Parent = Slider
  501. SliderValue.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  502. SliderValue.BackgroundTransparency = 1.000
  503. SliderValue.Position = UDim2.new(0.0388888903, 0, 0.574999988, 0)
  504. SliderValue.Size = UDim2.new(0, 166, 0, 10)
  505. SliderValue.Font = Enum.Font.SourceSans
  506. SliderValue.Text = option.minval
  507. SliderValue.TextColor3 = Color3.fromRGB(255, 255, 255)
  508. SliderValue.TextSize = 13
  509. SliderValue.TextTransparency = 1
  510. local down = false
  511. Slider.MouseButton1Down:Connect(function()
  512. down = true
  513. TweenService:Create(SliderValue, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
  514. TextTransparency = 0
  515. }):Play()
  516. Value = math.floor((((tonumber(option.maxval) - tonumber(option.minval)) / 166) * SliderInner.AbsoluteSize.X) + tonumber(option.minval)) or 0
  517. SliderValue.Text = Value
  518. pcall(option.callback, Value)
  519. SliderInner:TweenSize(UDim2.new(0, math.clamp(mouse.X - SliderInner.AbsolutePosition.X, 0, 166), 0, 10), Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, .07)
  520. while game:GetService("RunService").RenderStepped:wait() and down do
  521. Value = math.floor((((tonumber(option.maxval) - tonumber(option.minval)) / 166) * SliderInner.AbsoluteSize.X) + tonumber(option.minval)) or 0
  522. SliderValue.Text = Value
  523. pcall(option.callback, Value)
  524. SliderInner:TweenSize(UDim2.new(0, math.clamp(mouse.X - SliderInner.AbsolutePosition.X, 0, 166), 0, 10), Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, .07)
  525. end
  526. end)
  527. uis.InputEnded:connect(function(key)
  528. if key.UserInputType == Enum.UserInputType.MouseButton1 and down then
  529. down = false
  530. TweenService:Create(SliderValue, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
  531. TextTransparency = 1
  532. }):Play()
  533. Value = math.floor((((tonumber(option.maxval) - tonumber(option.minval)) / 166) * SliderInner.AbsoluteSize.X) + tonumber(option.minval)) or 0
  534. SliderValue.Text = Value
  535. pcall(option.callback, Value)
  536. SliderInner:TweenSize(UDim2.new(0, math.clamp(mouse.X - SliderInner.AbsolutePosition.X, 0, 166), 0, 10), Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, 0.1)
  537. end
  538. end)
  539. Slider.MouseEnter:Connect(function()
  540. TweenService:Create(SliderText, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
  541. TextColor3 = Color3.fromRGB(255, 255, 255)
  542. }):Play()
  543. end)
  544. Slider.MouseLeave:Connect(function()
  545. TweenService:Create(SliderText, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
  546. TextColor3 = Color3.fromRGB(155, 155, 155)
  547. }):Play()
  548. end)
  549. end
  550. function Nig:CreateBind(option)
  551. option.text = option.text or ""
  552. option.bind = option.bind or nil
  553. local binding
  554. local holding
  555. local loop
  556. local text = string.match(option.key, "Mouse") and string.sub(option.key, 1, 5) .. string.sub(option.key, 12, 13) or option.key
  557. local inContact
  558. local Keybind = Instance.new("TextButton")
  559. local KeybingText = Instance.new("TextLabel")
  560. local KeyBindButton = Instance.new("TextButton")
  561. Keybind.Name = "Keybind"
  562. Keybind.Parent = Features
  563. Keybind.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  564. Keybind.BackgroundTransparency = 1.000
  565. Keybind.Position = UDim2.new(0, 0, 0.403846145, 0)
  566. Keybind.Size = UDim2.new(0, 180, 0, 30)
  567. Keybind.Font = Enum.Font.SourceSans
  568. Keybind.Text = ""
  569. Keybind.TextColor3 = Color3.fromRGB(0, 0, 0)
  570. Keybind.TextSize = 14.000
  571. KeybingText.Name = "KeybingText"
  572. KeybingText.Parent = Keybind
  573. KeybingText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  574. KeybingText.BackgroundTransparency = 1.000
  575. KeybingText.Position = UDim2.new(0, 0, 0.466666669, -12)
  576. KeybingText.Size = UDim2.new(0, 118, 0, 25)
  577. KeybingText.Font = Enum.Font.SourceSans
  578. KeybingText.Text = " " .. option.text
  579. KeybingText.TextColor3 = Color3.fromRGB(178, 178, 178)
  580. KeybingText.TextSize = 15.000
  581. KeybingText.TextXAlignment = Enum.TextXAlignment.Left
  582. local TextBounds = game:GetService("TextService"):GetTextSize(text, 14, Enum.Font.SourceSansSemibold, Vector2.new(math.huge, math.huge))
  583. KeyBindButton.Name = "KeyBindButton"
  584. KeyBindButton.Parent = Keybind
  585. KeyBindButton.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  586. KeyBindButton.BorderColor3 = Color3.fromRGB(77, 77, 77)
  587. KeyBindButton.Position = UDim2.new(0.961, 0, 0.458, 0)
  588. KeyBindButton.Size = UDim2.new(0, TextBounds.X + 15, 0, 20)
  589. KeyBindButton.Font = Enum.Font.SourceSans
  590. KeyBindButton.Text = text
  591. KeyBindButton.TextColor3 = Color3.fromRGB(178, 178, 178)
  592. KeyBindButton.TextSize = 14.000
  593. KeyBindButton.AnchorPoint = Vector2.new(1, 0.5)
  594. Keybind.MouseEnter:Connect(function()
  595. TweenService:Create(KeybingText, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
  596. TextColor3 = Color3.fromRGB(255, 255, 255)
  597. }):Play()
  598. end)
  599. Keybind.MouseLeave:Connect(function()
  600. TweenService:Create(KeybingText, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
  601. TextColor3 = Color3.fromRGB(155, 155, 155)
  602. }):Play()
  603. end)
  604. local UnknownKeys = {
  605. Enum.KeyCode.Unknown,
  606. Enum.KeyCode.W,
  607. Enum.KeyCode.A,
  608. Enum.KeyCode.S,
  609. Enum.KeyCode.D,
  610. Enum.KeyCode.Slash,
  611. Enum.KeyCode.Tab,
  612. Enum.KeyCode.Backspace,
  613. Enum.KeyCode.Escape
  614. }
  615. local MouseButtons = {
  616. Enum.UserInputType.MouseButton1,
  617. Enum.UserInputType.MouseButton2,
  618. Enum.UserInputType.MouseButton3
  619. }
  620. local function keyCheck(a, b)
  621. for _, v in next, b do
  622. if v == a then
  623. return true
  624. end
  625. end
  626. end
  627. Keybind.InputBegan:connect(function(input)
  628. if input.UserInputType == Enum.UserInputType.MouseMovement then
  629. inContact = true
  630. if not binding then
  631. TweenService:Create(KeyBindButton, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {
  632. BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  633. }):Play()
  634. end
  635. end
  636. end)
  637. Keybind.InputEnded:connect(function(input)
  638. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  639. binding = true
  640. KeyBindButton.Text = "..."
  641. TweenService:Create(KeyBindButton, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {
  642. BackgroundColor3 = Color3.fromRGB(255, 80, 80)
  643. }):Play()
  644. end
  645. if input.UserInputType == Enum.UserInputType.MouseMovement then
  646. inContact = false
  647. if not binding then
  648. TweenService:Create(KeyBindButton, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {
  649. BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  650. }):Play()
  651. end
  652. end
  653. end)
  654. uis.InputBegan:connect(function(input)
  655. if uis:GetFocusedTextBox() then
  656. return
  657. end
  658. if (input.KeyCode.Name == option.key or input.UserInputType.Name == option.key) and not binding then
  659. if option.hold then
  660. loop = game:GetService("RunService").Heartbeat:connect(function()
  661. if binding then
  662. option.callback(true)
  663. loop:Disconnect()
  664. loop = nil
  665. else
  666. option.callback()
  667. end
  668. end)
  669. else
  670. option.callback()
  671. end
  672. elseif binding then
  673. local key
  674. pcall(function()
  675. if not keyCheck(input.KeyCode, UnknownKeys) then
  676. key = input.KeyCode
  677. end
  678. end)
  679. pcall(function()
  680. if keyCheck(input.UserInputType, MouseButtons) and not key then
  681. key = input.UserInputType
  682. end
  683. end)
  684. key = key or option.key
  685. option:SetKey(key)
  686. end
  687. end)
  688. uis.InputEnded:connect(function(input)
  689. if input.KeyCode.Name == option.key or input.UserInputType.Name == option.key or input.UserInputType.Name == "MouseMovement" then
  690. if loop then
  691. loop:Disconnect()
  692. loop = nil
  693. option.callback(true)
  694. end
  695. end
  696. end)
  697. function option:SetKey(key)
  698. binding = false
  699. if loop then
  700. loop:Disconnect()
  701. loop = nil
  702. end
  703. self.key = key or self.key
  704. self.key = self.key.Name or self.key
  705. if string.match(self.key, "Mouse") then
  706. KeyBindButton.Text = string.sub(self.key, 1, 5) .. string.sub(self.key, 12, 13)
  707. else
  708. KeyBindButton.Text = self.key
  709. end
  710. TweenService:Create(KeyBindButton, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {
  711. BackgroundColor3 = inContact and Color3.fromRGB(40, 40, 40) or Color3.fromRGB(25, 25, 25)
  712. }):Play()
  713. end
  714. end
  715. function Nig:CreateButton(option)
  716. option.text = option.text or ""
  717. option.callback = option.callback or function()
  718. end
  719. local Button = Instance.new("TextButton")
  720. local ButtonImage = Instance.new("ImageButton")
  721. local ButtonText = Instance.new("TextLabel")
  722. Button.Name = "Button"
  723. Button.Parent = Features
  724. Button.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  725. Button.BackgroundTransparency = 1.000
  726. Button.Position = UDim2.new(0, 0, 0.519230783, 0)
  727. Button.Size = UDim2.new(0, 180, 0, 30)
  728. Button.Font = Enum.Font.SourceSans
  729. Button.Text = ""
  730. Button.TextColor3 = Color3.fromRGB(0, 0, 0)
  731. Button.TextSize = 14.000
  732. ButtonImage.Name = "ButtonImage"
  733. ButtonImage.Parent = Button
  734. ButtonImage.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  735. ButtonImage.BackgroundTransparency = 1.000
  736. ButtonImage.Position = UDim2.new(0.5, -83, 0.5, -10)
  737. ButtonImage.Size = UDim2.new(0, 166, 0, 20)
  738. ButtonImage.Image = "rbxassetid://3570695787"
  739. ButtonImage.ImageColor3 = Color3.fromRGB(25, 25, 25)
  740. ButtonImage.ScaleType = Enum.ScaleType.Slice
  741. ButtonImage.SliceCenter = Rect.new(100, 100, 100, 100)
  742. ButtonImage.SliceScale = 0.001
  743. ButtonText.Name = "ButtonText"
  744. ButtonText.Parent = ButtonImage
  745. ButtonText.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  746. ButtonText.BorderColor3 = Color3.fromRGB(77, 77, 77)
  747. ButtonText.Size = UDim2.new(0, 166, 0, 20)
  748. ButtonText.Font = Enum.Font.SourceSans
  749. ButtonText.Text = option.text
  750. ButtonText.TextColor3 = Color3.fromRGB(178, 178, 178)
  751. ButtonText.TextSize = 14.000
  752. local inContact
  753. local clicking
  754. ButtonImage.InputBegan:connect(function(input)
  755. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  756. clicking = true
  757. TweenService:Create(ButtonText, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {
  758. BackgroundColor3 = Color3.fromRGB(255, 80, 80)
  759. }):Play()
  760. option.callback()
  761. end
  762. if input.UserInputType == Enum.UserInputType.MouseMovement then
  763. inContact = true
  764. TweenService:Create(ButtonText, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {
  765. BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  766. }):Play()
  767. end
  768. end)
  769. ButtonImage.InputEnded:connect(function(input)
  770. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  771. clicking = false
  772. if inContact then
  773. TweenService:Create(ButtonText, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {
  774. BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  775. }):Play()
  776. else
  777. TweenService:Create(ButtonText, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {
  778. BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  779. }):Play()
  780. end
  781. end
  782. if input.UserInputType == Enum.UserInputType.MouseMovement then
  783. inContact = false
  784. if not clicking then
  785. TweenService:Create(ButtonImage, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {
  786. BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  787. }):Play()
  788. end
  789. end
  790. end)
  791. Button.MouseEnter:Connect(function()
  792. TweenService:Create(ButtonText, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
  793. TextColor3 = Color3.fromRGB(255, 255, 255)
  794. }):Play()
  795. end)
  796. Button.MouseLeave:Connect(function()
  797. TweenService:Create(ButtonText, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
  798. TextColor3 = Color3.fromRGB(155, 155, 155)
  799. }):Play()
  800. end)
  801. end
  802. function Nig:CreateTextBox(option)
  803. local Textbox = Instance.new("TextButton")
  804. local TextBoxText = Instance.new("TextBox")
  805. Textbox.Name = "Textbox"
  806. Textbox.Parent = Features
  807. Textbox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  808. Textbox.BackgroundTransparency = 1.000
  809. Textbox.Position = UDim2.new(0, 0, 0.519230783, 0)
  810. Textbox.Size = UDim2.new(0, 180, 0, 30)
  811. Textbox.Font = Enum.Font.SourceSans
  812. Textbox.Text = ""
  813. Textbox.TextColor3 = Color3.fromRGB(0, 0, 0)
  814. Textbox.TextSize = 14.000
  815. TextBoxText.Name = "TextBoxText"
  816. TextBoxText.Parent = Textbox
  817. TextBoxText.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  818. TextBoxText.BorderColor3 = Color3.fromRGB(77, 77, 77)
  819. TextBoxText.Position = UDim2.new(0.5, -83, 0.5, -10)
  820. TextBoxText.Size = UDim2.new(0, 166, 0, 20)
  821. TextBoxText.Font = Enum.Font.SourceSans
  822. TextBoxText.PlaceholderColor3 = Color3.fromRGB(155, 155, 155)
  823. TextBoxText.PlaceholderText = option.text
  824. TextBoxText.Text = ""
  825. TextBoxText.TextColor3 = Color3.fromRGB(0, 0, 0)
  826. TextBoxText.TextSize = 14.000
  827. TextBoxText.Focused:Connect(function()
  828. TextBoxText.TextColor3 = Color3.fromRGB(255, 255, 255)
  829. end)
  830. TextBoxText.FocusLost:Connect(function(enbter)
  831. if enbter then
  832. TextBoxText.TextColor3 = Color3.fromRGB(155, 155, 155)
  833. option.callback(TextBoxText.Text)
  834. end
  835. end)
  836. Textbox.MouseEnter:Connect(function()
  837. TweenService:Create(TextBoxText, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
  838. TextColor3 = Color3.fromRGB(255, 255, 255)
  839. }):Play()
  840. TweenService:Create(TextBoxText, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
  841. PlaceholderColor3 = Color3.fromRGB(255, 255, 255)
  842. }):Play()
  843. end)
  844. Textbox.MouseLeave:Connect(function()
  845. TweenService:Create(TextBoxText, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
  846. TextColor3 = Color3.fromRGB(155, 155, 155)
  847. }):Play()
  848. TweenService:Create(TextBoxText, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
  849. PlaceholderColor3 = Color3.fromRGB(155, 155, 155)
  850. }):Play()
  851. end)
  852. end
  853. return Nig;
  854. end
  855. return a;
  856. end
  857. return s;
  858. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement