Advertisement
NightGolden

lib

Feb 16th, 2023 (edited)
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 33.48 KB | None | 0 0
  1.  
  2. local PlaceName = game:GetService("MarketplaceService"):GetProductInfo(game.PlaceId)
  3.  
  4. if not game:IsLoaded() then repeat game.Loaded:Wait() until game:IsLoaded() end
  5.  
  6. repeat wait() until game:GetService("Players")
  7.  
  8. if not game:GetService("Players").LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then repeat wait() until game:GetService("Players").LocalPlayer.Character:FindFirstChild("HumanoidRootPart") end
  9.  
  10. wait(1)
  11.  
  12. do local GUI = game.CoreGui:FindFirstChild("Darkrai");if GUI then GUI:Destroy();end;if _G.Color == nil then
  13. _G.Color = Color3.fromRGB(147,112,219)
  14. end
  15. end
  16.  
  17. local UserInputService = game:GetService("UserInputService")
  18. local TweenService = game:GetService("TweenService")
  19.  
  20. local function MakeDraggable(topbarobject, object)
  21. local Dragging = nil
  22. local DragInput = nil
  23. local DragStart = nil
  24. local StartPosition = nil
  25.  
  26. local function Update(input)
  27. local Delta = input.Position - DragStart
  28. local pos = UDim2.new(StartPosition.X.Scale, StartPosition.X.Offset + Delta.X, StartPosition.Y.Scale, StartPosition.Y.Offset + Delta.Y)
  29. local Tween = TweenService:Create(object, TweenInfo.new(0.15), {Position = pos})
  30. Tween:Play()
  31. end
  32.  
  33. topbarobject.InputBegan:Connect(
  34. function(input)
  35. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  36. Dragging = true
  37. DragStart = input.Position
  38. StartPosition = object.Position
  39.  
  40. input.Changed:Connect(
  41. function()
  42. if input.UserInputState == Enum.UserInputState.End then
  43. Dragging = false
  44. end
  45. end
  46. )
  47. end
  48. end
  49. )
  50.  
  51. topbarobject.InputChanged:Connect(
  52. function(input)
  53. if
  54. input.UserInputType == Enum.UserInputType.MouseMovement or
  55. input.UserInputType == Enum.UserInputType.Touch
  56. then
  57. DragInput = input
  58. end
  59. end
  60. )
  61.  
  62. UserInputService.InputChanged:Connect(
  63. function(input)
  64. if input == DragInput and Dragging then
  65. Update(input)
  66. end
  67. end
  68. )
  69. end
  70.  
  71. local DarkraiX = {}
  72.  
  73. function DarkraiX:ToggleUi()
  74. if game.CoreGui:FindFirstChild("Darkrai").Enabled == true then -- oh am dumb
  75. game.CoreGui:FindFirstChild("Darkrai").Enabled = false
  76. else
  77. game.CoreGui:FindFirstChild("Darkrai").Enabled = true
  78. end
  79. end
  80.  
  81. function DarkraiX:Window(text,gamenme,logo,keybind)
  82. local hubname = text
  83. local gamename = gamenme
  84. local uihide = false
  85. local abc = false
  86. local logo = logo or 0
  87. local currentpage = ""
  88. local keybind = keybind or Enum.KeyCode.RightControl
  89. local yoo = string.gsub(tostring(keybind),"Enum.KeyCode.","")
  90. if gamename == "" then
  91. gamename = ""..PlaceName.Name
  92. end
  93.  
  94. local Darkrai = Instance.new("ScreenGui") -- guess i am using hubname wrong
  95. Darkrai.Name = "Darkrai" -- wait
  96. Darkrai.Parent = game.CoreGui
  97. Darkrai.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  98.  
  99. local Main = Instance.new("Frame")
  100. Main.Name = "Main"
  101. Main.Parent = Darkrai
  102. Main.ClipsDescendants = true
  103. Main.AnchorPoint = Vector2.new(0.5,0.5)
  104. Main.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  105. Main.Position = UDim2.new(0.5, 0, 0.5, 0)
  106. Main.Size = UDim2.new(0, 0, 0, 0)
  107.  
  108. Main:TweenSize(UDim2.new(0, 656, 0, 400),"Out","Quad",0.4,true)
  109.  
  110. local MCNR = Instance.new("UICorner")
  111. MCNR.Name = "MCNR"
  112. MCNR.Parent = Main
  113.  
  114. local Top = Instance.new("Frame")
  115. Top.Name = "Top"
  116. Top.Parent = Main
  117. Top.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  118. Top.Size = UDim2.new(0, 656, 0, 27)
  119.  
  120. local TCNR = Instance.new("UICorner")
  121. TCNR.Name = "TCNR"
  122. TCNR.Parent = Top
  123.  
  124. local Logo = Instance.new("ImageLabel")
  125. Logo.Name = "Logo"
  126. Logo.Parent = Top
  127. Logo.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  128. Logo.BackgroundTransparency = 1.000
  129. Logo.Position = UDim2.new(0, 10, 0, 1)
  130. Logo.Size = UDim2.new(0, 25, 0, 25)
  131. Logo.Image = ""
  132.  
  133. local Name = Instance.new("TextLabel")
  134. Name.Name = "Name"
  135. Name.Parent = Top
  136. Name.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  137. Name.BackgroundTransparency = 1.000
  138. Name.Position = UDim2.new(0.0609756112, 0, 0, 0)
  139. Name.Size = UDim2.new(0, 61, 0, 27)
  140. Name.Font = Enum.Font.GothamSemibold
  141. Name.Text = hubname
  142. Name.TextColor3 = Color3.fromRGB(147,112,219)
  143. Name.TextSize = 17.000
  144.  
  145. local Hub = Instance.new("TextLabel")
  146. Hub.Name = "Hub"
  147. Hub.Parent = Top
  148. Hub.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  149. Hub.BackgroundTransparency = 1.000
  150. Hub.Position = UDim2.new(0, 110, 0, 0)
  151. Hub.Size = UDim2.new(0, 81, 0, 27)
  152. Hub.Font = Enum.Font.GothamSemibold
  153. Hub.Text = " | "..gamename
  154. Hub.TextColor3 = Color3.fromRGB(147,112,219)
  155. Hub.TextSize = 17.000
  156. Hub.TextXAlignment = Enum.TextXAlignment.Left
  157.  
  158. local BindButton = Instance.new("TextButton")
  159. BindButton.Name = "BindButton"
  160. BindButton.Parent = Top
  161. BindButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  162. BindButton.BackgroundTransparency = 1.000
  163. BindButton.Position = UDim2.new(0.847561002, 0, 0, 0)
  164. BindButton.Size = UDim2.new(0, 100, 0, 27)
  165. BindButton.Font = Enum.Font.GothamSemibold
  166. BindButton.Text = "[RightControl]"
  167. BindButton.TextColor3 = Color3.fromRGB(147,112,219)
  168. BindButton.TextSize = 13.000
  169.  
  170. local Tab = Instance.new("Frame")
  171. Tab.Name = "Tab"
  172. Tab.Parent = Main
  173. Tab.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  174. Tab.Position = UDim2.new(0, 5, 0, 30)
  175. Tab.Size = UDim2.new(0, 150, 0, 365)
  176.  
  177. local TCNR = Instance.new("UICorner")
  178. TCNR.Name = "TCNR"
  179. TCNR.Parent = Tab
  180.  
  181. local ScrollTab = Instance.new("ScrollingFrame")
  182. ScrollTab.Name = "ScrollTab"
  183. ScrollTab.Parent = Tab
  184. ScrollTab.Active = true
  185. ScrollTab.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  186. ScrollTab.BackgroundTransparency = 1.000
  187. ScrollTab.Size = UDim2.new(0, 150, 0, 365)
  188. ScrollTab.CanvasSize = UDim2.new(0, 0, 0, 0)
  189. ScrollTab.ScrollBarThickness = 0
  190.  
  191. local PLL = Instance.new("UIListLayout")
  192. PLL.Name = "PLL"
  193. PLL.Parent = ScrollTab
  194. PLL.SortOrder = Enum.SortOrder.LayoutOrder
  195. PLL.Padding = UDim.new(0, 15)
  196.  
  197. local PPD = Instance.new("UIPadding")
  198. PPD.Name = "PPD"
  199. PPD.Parent = ScrollTab
  200. PPD.PaddingLeft = UDim.new(0, 10)
  201. PPD.PaddingTop = UDim.new(0, 10)
  202.  
  203. local Page = Instance.new("Frame")
  204. Page.Name = "Page"
  205. Page.Parent = Main
  206. Page.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  207. Page.Position = UDim2.new(0.245426834, 0, 0.075000003, 0)
  208. Page.Size = UDim2.new(0, 490, 0, 365)
  209.  
  210. local PCNR = Instance.new("UICorner")
  211. PCNR.Name = "PCNR"
  212. PCNR.Parent = Page
  213.  
  214. local MainPage = Instance.new("Frame")
  215. MainPage.Name = "MainPage"
  216. MainPage.Parent = Page
  217. MainPage.ClipsDescendants = true
  218. MainPage.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  219. MainPage.BackgroundTransparency = 1.000
  220. MainPage.Size = UDim2.new(0, 490, 0, 365)
  221.  
  222. local PageList = Instance.new("Folder")
  223. PageList.Name = "PageList"
  224. PageList.Parent = MainPage
  225.  
  226. local UIPageLayout = Instance.new("UIPageLayout")
  227.  
  228. UIPageLayout.Parent = PageList
  229. UIPageLayout.SortOrder = Enum.SortOrder.LayoutOrder
  230. UIPageLayout.EasingDirection = Enum.EasingDirection.InOut
  231. UIPageLayout.EasingStyle = Enum.EasingStyle.Quad
  232. UIPageLayout.FillDirection = Enum.FillDirection.Vertical
  233. UIPageLayout.Padding = UDim.new(0, 15)
  234. UIPageLayout.TweenTime = 0.400
  235. UIPageLayout.GamepadInputEnabled = false
  236. UIPageLayout.ScrollWheelInputEnabled = false
  237. UIPageLayout.TouchInputEnabled = false
  238.  
  239. MakeDraggable(Top,Main)
  240.  
  241. UserInputService.InputBegan:Connect(function(input)
  242. if input.KeyCode == Enum.KeyCode[yoo] then
  243. if uihide == false then
  244. uihide = true
  245. Main:TweenSize(UDim2.new(0, 0, 0, 0),"In","Quad",0.4,true)
  246. else
  247. uihide = false
  248. Main:TweenSize(UDim2.new(0, 656, 0, 400),"Out","Quad",0.4,true)
  249. end
  250. end
  251. end)
  252.  
  253. local uitab = {}
  254. local TabButton = Instance.new("TextButton")
  255. function uitab:Tab(text)
  256. TabButton.Parent = ScrollTab
  257. TabButton.Name = text.."Server"
  258. TabButton.Text = text
  259. TabButton.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  260. TabButton.BorderColor3 = Color3.fromHSV(tick()%5/5,1,1)
  261. TabButton.BorderSizePixel = 3
  262. TabButton.Size = UDim2.new(0, 130, 0, 23)
  263. TabButton.Font = Enum.Font.GothamSemibold
  264. TabButton.TextColor3 = Color3.fromRGB(225, 225, 225)
  265. TabButton.TextSize = 15.000
  266. TabButton.TextTransparency = 0.500
  267.  
  268. local MainFramePage = Instance.new("ScrollingFrame")
  269. MainFramePage.Name = text.."_Page"
  270. MainFramePage.Parent = PageList
  271. MainFramePage.Active = true
  272. MainFramePage.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  273. MainFramePage.BackgroundTransparency = 1.000
  274. MainFramePage.BorderSizePixel = 0
  275. MainFramePage.Size = UDim2.new(0, 490, 0, 365)
  276. MainFramePage.CanvasSize = UDim2.new(0, 0, 0, 0)
  277. MainFramePage.ScrollBarThickness = 0
  278.  
  279. local UIPadding = Instance.new("UIPadding")
  280. local UIListLayout = Instance.new("UIListLayout")
  281.  
  282. UIPadding.Parent = MainFramePage
  283. UIPadding.PaddingLeft = UDim.new(0, 10)
  284. UIPadding.PaddingTop = UDim.new(0, 10)
  285.  
  286. UIListLayout.Padding = UDim.new(0,15)
  287. UIListLayout.Parent = MainFramePage
  288. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  289.  
  290. TabButton.MouseButton1Click:Connect(function()
  291. for i,v in next, ScrollTab:GetChildren() do
  292. if v:IsA("TextButton") then
  293. TweenService:Create(
  294. v,
  295. TweenInfo.new(0.3,Enum.EasingStyle.Quad,Enum.EasingDirection.Out),
  296. {TextTransparency = 0.5}
  297. ):Play()
  298. end
  299. TweenService:Create(
  300. TabButton,
  301. TweenInfo.new(0.3,Enum.EasingStyle.Quad,Enum.EasingDirection.Out),
  302. {TextTransparency = 0}
  303. ):Play()
  304. end
  305. for i,v in next, PageList:GetChildren() do
  306. currentpage = string.gsub(TabButton.Name,"Server","").."_Page"
  307. if v.Name == currentpage then
  308. UIPageLayout:JumpTo(v)
  309. end
  310. end
  311. end)
  312.  
  313. if abc == false then
  314. for i,v in next, ScrollTab:GetChildren() do
  315. if v:IsA("TextButton") then
  316. TweenService:Create(
  317. v,
  318. TweenInfo.new(0.3,Enum.EasingStyle.Quad,Enum.EasingDirection.Out),
  319. {TextTransparency = 0.5}
  320. ):Play()
  321. end
  322. TweenService:Create(
  323. TabButton,
  324. TweenInfo.new(0.3,Enum.EasingStyle.Quad,Enum.EasingDirection.Out),
  325. {TextTransparency = 0}
  326. ):Play()
  327. end
  328. UIPageLayout:JumpToIndex(1)
  329. abc = true
  330. end
  331.  
  332. game:GetService("RunService").Stepped:Connect(function()
  333. pcall(function()
  334. MainFramePage.CanvasSize = UDim2.new(0,0,0,UIListLayout.AbsoluteContentSize.Y + 20)
  335. ScrollTab.CanvasSize = UDim2.new(0,0,0,PLL.AbsoluteContentSize.Y + 20)
  336. end)
  337. end)
  338.  
  339. local main = {}
  340. function main:Button(text,callback)
  341. local Button = Instance.new("Frame")
  342. local UICorner = Instance.new("UICorner")
  343. local TextBtn = Instance.new("TextButton")
  344. local UICorner_2 = Instance.new("UICorner")
  345. local Black = Instance.new("Frame")
  346. local UICorner_3 = Instance.new("UICorner")
  347.  
  348. Button.Name = "Button"
  349. Button.Parent = MainFramePage
  350. Button.BackgroundColor3 = _G.Color
  351. Button.Size = UDim2.new(0, 470, 0, 31)
  352.  
  353. UICorner.CornerRadius = UDim.new(0, 5)
  354. UICorner.Parent = Button
  355.  
  356. TextBtn.Name = "TextBtn"
  357. TextBtn.Parent = Button
  358. TextBtn.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  359. TextBtn.Position = UDim2.new(0, 1, 0, 1)
  360. TextBtn.Size = UDim2.new(0, 468, 0, 29)
  361. TextBtn.AutoButtonColor = false
  362. TextBtn.Font = Enum.Font.GothamSemibold
  363. TextBtn.Text = text
  364. TextBtn.TextColor3 = Color3.fromRGB(225, 225, 225)
  365. TextBtn.TextSize = 15.000
  366.  
  367. UICorner_2.CornerRadius = UDim.new(0, 5)
  368. UICorner_2.Parent = TextBtn
  369.  
  370. Black.Name = "Black"
  371. Black.Parent = Button
  372. Black.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  373. Black.BackgroundTransparency = 1.000
  374. Black.BorderSizePixel = 0
  375. Black.Position = UDim2.new(0, 1, 0, 1)
  376. Black.Size = UDim2.new(0, 468, 0, 29)
  377.  
  378. UICorner_3.CornerRadius = UDim.new(0, 5)
  379. UICorner_3.Parent = Black
  380.  
  381. TextBtn.MouseEnter:Connect(function()
  382. TweenService:Create(
  383. Black,
  384. TweenInfo.new(0.4,Enum.EasingStyle.Quad,Enum.EasingDirection.Out),
  385. {BackgroundTransparency = 0.7}
  386. ):Play()
  387. end)
  388. TextBtn.MouseLeave:Connect(function()
  389. TweenService:Create(
  390. Black,
  391. TweenInfo.new(0.4,Enum.EasingStyle.Quad,Enum.EasingDirection.Out),
  392. {BackgroundTransparency = 1}
  393. ):Play()
  394. end)
  395. TextBtn.MouseButton1Click:Connect(function()
  396. TextBtn.TextSize = 0
  397. TweenService:Create(
  398. TextBtn,
  399. TweenInfo.new(0.4,Enum.EasingStyle.Quad,Enum.EasingDirection.Out),
  400. {TextSize = 15}
  401. ):Play()
  402. callback()
  403. end)
  404. end
  405. function main:Toggle(text,config,callback)
  406. config = config or false
  407. local toggled = config
  408. local Toggle = Instance.new("Frame")
  409. local UICorner = Instance.new("UICorner")
  410. local Button = Instance.new("TextButton")
  411. local UICorner_2 = Instance.new("UICorner")
  412. local Label = Instance.new("TextLabel")
  413. local ToggleImage = Instance.new("Frame")
  414. local UICorner_3 = Instance.new("UICorner")
  415. local Circle = Instance.new("Frame")
  416. local UICorner_4 = Instance.new("UICorner")
  417.  
  418. Toggle.Name = "Toggle"
  419. Toggle.Parent = MainFramePage
  420. Toggle.BackgroundColor3 = _G.Color
  421. Toggle.Size = UDim2.new(0, 470, 0, 31)
  422.  
  423. UICorner.CornerRadius = UDim.new(0, 5)
  424. UICorner.Parent = Toggle
  425.  
  426. Button.Name = "Button"
  427. Button.Parent = Toggle
  428. Button.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  429. Button.Position = UDim2.new(0, 1, 0, 1)
  430. Button.Size = UDim2.new(0, 468, 0, 29)
  431. Button.AutoButtonColor = false
  432. Button.Font = Enum.Font.SourceSans
  433. Button.Text = ""
  434. Button.TextColor3 = Color3.fromRGB(0, 0, 0)
  435. Button.TextSize = 11.000
  436.  
  437. UICorner_2.CornerRadius = UDim.new(0, 5)
  438. UICorner_2.Parent = Button
  439.  
  440. Label.Name = "Label"
  441. Label.Parent = Toggle
  442. Label.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  443. Label.BackgroundTransparency = 1.000
  444. Label.Position = UDim2.new(0, 1, 0, 1)
  445. Label.Size = UDim2.new(0, 468, 0, 29)
  446. Label.Font = Enum.Font.GothamSemibold
  447. Label.Text = text
  448. Label.TextColor3 = Color3.fromRGB(225, 225, 225)
  449. Label.TextSize = 15.000
  450.  
  451. ToggleImage.Name = "ToggleImage"
  452. ToggleImage.Parent = Toggle
  453. ToggleImage.BackgroundColor3 = Color3.fromRGB(225, 225, 225)
  454. ToggleImage.Position = UDim2.new(0, 415, 0, 5)
  455. ToggleImage.Size = UDim2.new(0, 45, 0, 20)
  456.  
  457. UICorner_3.CornerRadius = UDim.new(0, 10)
  458. UICorner_3.Parent = ToggleImage
  459.  
  460. Circle.Name = "Circle"
  461. Circle.Parent = ToggleImage
  462. Circle.BackgroundColor3 = Color3.fromRGB(227, 60, 60)
  463. Circle.Position = UDim2.new(0, 2, 0, 2)
  464. Circle.Size = UDim2.new(0, 16, 0, 16)
  465.  
  466. UICorner_4.CornerRadius = UDim.new(0, 10)
  467. UICorner_4.Parent = Circle
  468.  
  469. Button.MouseButton1Click:Connect(function()
  470. if toggled == false then
  471. toggled = true
  472. Circle:TweenPosition(UDim2.new(0,27,0,2),"Out","Sine",0.2,true)
  473. TweenService:Create(
  474. Circle,
  475. TweenInfo.new(0.4,Enum.EasingStyle.Quad,Enum.EasingDirection.Out),
  476. {BackgroundColor3 = _G.Color}
  477. ):Play()
  478. else
  479. toggled = false
  480. Circle:TweenPosition(UDim2.new(0,2,0,2),"Out","Sine",0.2,true)
  481. TweenService:Create(
  482. Circle,
  483. TweenInfo.new(0.4,Enum.EasingStyle.Quad,Enum.EasingDirection.Out),
  484. {BackgroundColor3 = Color3.fromRGB(227, 60, 110)}
  485. ):Play()
  486. end
  487. pcall(callback,toggled)
  488. end)
  489.  
  490. if config == true then
  491. toggled = true
  492. Circle:TweenPosition(UDim2.new(0,27,0,2),"Out","Sine",0.4,true)
  493. TweenService:Create(
  494. Circle,
  495. TweenInfo.new(0.4,Enum.EasingStyle.Quad,Enum.EasingDirection.Out),
  496. {BackgroundColor3 = _G.Color}
  497. ):Play()
  498. pcall(callback,toggled)
  499. end
  500. end
  501. function main:Dropdown(text,option,callback)
  502. local isdropping = false
  503. local Dropdown = Instance.new("Frame")
  504. local UICorner = Instance.new("UICorner")
  505. local DropTitle = Instance.new("TextLabel")
  506. local DropScroll = Instance.new("ScrollingFrame")
  507. local UIListLayout = Instance.new("UIListLayout")
  508. local UIPadding = Instance.new("UIPadding")
  509. local DropButton = Instance.new("TextButton")
  510. local DropImage = Instance.new("ImageLabel")
  511.  
  512. Dropdown.Name = "Dropdown"
  513. Dropdown.Parent = MainFramePage
  514. Dropdown.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  515. Dropdown.ClipsDescendants = true
  516. Dropdown.Size = UDim2.new(0, 470, 0, 31)
  517.  
  518. UICorner.CornerRadius = UDim.new(0, 5)
  519. UICorner.Parent = Dropdown
  520.  
  521. DropTitle.Name = "DropTitle"
  522. DropTitle.Parent = Dropdown
  523. DropTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  524. DropTitle.BackgroundTransparency = 1.000
  525. DropTitle.Size = UDim2.new(0, 470, 0, 31)
  526. DropTitle.Font = Enum.Font.GothamSemibold
  527. DropTitle.Text = text.. " : "
  528. DropTitle.TextColor3 = Color3.fromRGB(225, 225, 225)
  529. DropTitle.TextSize = 15.000
  530.  
  531. DropScroll.Name = "DropScroll"
  532. DropScroll.Parent = DropTitle
  533. DropScroll.Active = true
  534. DropScroll.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  535. DropScroll.BackgroundTransparency = 1.000
  536. DropScroll.BorderSizePixel = 0
  537. DropScroll.Position = UDim2.new(0, 0, 0, 31)
  538. DropScroll.Size = UDim2.new(0, 470, 0, 100)
  539. DropScroll.CanvasSize = UDim2.new(0, 0, 0, 0)
  540. DropScroll.ScrollBarThickness = 3
  541.  
  542. UIListLayout.Parent = DropScroll
  543. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  544. UIListLayout.Padding = UDim.new(0, 5)
  545.  
  546. UIPadding.Parent = DropScroll
  547. UIPadding.PaddingLeft = UDim.new(0, 5)
  548. UIPadding.PaddingTop = UDim.new(0, 5)
  549.  
  550. DropImage.Name = "DropImage"
  551. DropImage.Parent = Dropdown
  552. DropImage.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  553. DropImage.BackgroundTransparency = 1.000
  554. DropImage.Position = UDim2.new(0, 445, 0, 6)
  555. DropImage.Rotation = 180.000
  556. DropImage.Size = UDim2.new(0, 20, 0, 20)
  557. DropImage.Image = "rbxassetid://6031090990"
  558.  
  559. DropButton.Name = "DropButton"
  560. DropButton.Parent = Dropdown
  561. DropButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  562. DropButton.BackgroundTransparency = 1.000
  563. DropButton.Size = UDim2.new(0, 470, 0, 31)
  564. DropButton.Font = Enum.Font.SourceSans
  565. DropButton.Text = ""
  566. DropButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  567. DropButton.TextSize = 14.000
  568.  
  569. for i,v in next,option do
  570. local Item = Instance.new("TextButton")
  571.  
  572. Item.Name = "Item"
  573. Item.Parent = DropScroll
  574. Item.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  575. Item.BackgroundTransparency = 1.000
  576. Item.Size = UDim2.new(0, 460, 0, 26)
  577. Item.Font = Enum.Font.GothamSemibold
  578. Item.Text = tostring(v)
  579. Item.TextColor3 = Color3.fromRGB(225, 225, 225)
  580. Item.TextSize = 13.000
  581. Item.TextTransparency = 0.500
  582.  
  583. Item.MouseEnter:Connect(function()
  584. TweenService:Create(
  585. Item,
  586. TweenInfo.new(0.3,Enum.EasingStyle.Quad,Enum.EasingDirection.Out),
  587. {TextTransparency = 0}
  588. ):Play()
  589. end)
  590.  
  591. Item.MouseLeave:Connect(function()
  592. TweenService:Create(
  593. Item,
  594. TweenInfo.new(0.3,Enum.EasingStyle.Quad,Enum.EasingDirection.Out),
  595. {TextTransparency = 0.5}
  596. ):Play()
  597. end)
  598.  
  599. Item.MouseButton1Click:Connect(function()
  600. isdropping = false
  601. Dropdown:TweenSize(UDim2.new(0,470,0,31),"Out","Quad",0.3,true)
  602. TweenService:Create(
  603. DropImage,
  604. TweenInfo.new(0.3,Enum.EasingStyle.Quad,Enum.EasingDirection.Out),
  605. {Rotation = 180}
  606. ):Play()
  607. callback(Item.Text)
  608. DropTitle.Text = text.." : "..Item.Text
  609. end)
  610. end
  611.  
  612. DropScroll.CanvasSize = UDim2.new(0,0,0,UIListLayout.AbsoluteContentSize.Y + 10)
  613.  
  614. DropButton.MouseButton1Click:Connect(function()
  615. if isdropping == false then
  616. isdropping = true
  617. Dropdown:TweenSize(UDim2.new(0,470,0,131),"Out","Quad",0.3,true)
  618. TweenService:Create(
  619. DropImage,
  620. TweenInfo.new(0.3,Enum.EasingStyle.Quad,Enum.EasingDirection.Out),
  621. {Rotation = 0}
  622. ):Play()
  623. else
  624. isdropping = false
  625. Dropdown:TweenSize(UDim2.new(0,470,0,31),"Out","Quad",0.3,true)
  626. TweenService:Create(
  627. DropImage,
  628. TweenInfo.new(0.3,Enum.EasingStyle.Quad,Enum.EasingDirection.Out),
  629. {Rotation = 180}
  630. ):Play()
  631. end
  632. end)
  633.  
  634. local dropfunc = {}
  635. function dropfunc:Add(t)
  636. local Item = Instance.new("TextButton")
  637. Item.Name = "Item"
  638. Item.Parent = DropScroll
  639. Item.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  640. Item.BackgroundTransparency = 1.000
  641. Item.Size = UDim2.new(0, 470, 0, 26)
  642. Item.Font = Enum.Font.GothamSemibold
  643. Item.Text = tostring(t)
  644. Item.TextColor3 = Color3.fromRGB(225, 225, 225)
  645. Item.TextSize = 13.000
  646. Item.TextTransparency = 0.500
  647.  
  648. Item.MouseEnter:Connect(function()
  649. TweenService:Create(
  650. Item,
  651. TweenInfo.new(0.3,Enum.EasingStyle.Quad,Enum.EasingDirection.Out),
  652. {TextTransparency = 0}
  653. ):Play()
  654. end)
  655.  
  656. Item.MouseLeave:Connect(function()
  657. TweenService:Create(
  658. Item,
  659. TweenInfo.new(0.3,Enum.EasingStyle.Quad,Enum.EasingDirection.Out),
  660. {TextTransparency = 0.5}
  661. ):Play()
  662. end)
  663.  
  664. Item.MouseButton1Click:Connect(function()
  665. isdropping = false
  666. Dropdown:TweenSize(UDim2.new(0,470,0,31),"Out","Quad",0.3,true)
  667. TweenService:Create(
  668. DropImage,
  669. TweenInfo.new(0.3,Enum.EasingStyle.Quad,Enum.EasingDirection.Out),
  670. {Rotation = 180}
  671. ):Play()
  672. callback(Item.Text)
  673. DropTitle.Text = text.." : "..Item.Text
  674. end)
  675. end
  676. function dropfunc:Clear()
  677. DropTitle.Text = tostring(text).." : "
  678. isdropping = false
  679. Dropdown:TweenSize(UDim2.new(0,470,0,31),"Out","Quad",0.3,true)
  680. TweenService:Create(
  681. DropImage,
  682. TweenInfo.new(0.3,Enum.EasingStyle.Quad,Enum.EasingDirection.Out),
  683. {Rotation = 180}
  684. ):Play()
  685. for i,v in next, DropScroll:GetChildren() do
  686. if v:IsA("TextButton") then
  687. v:Destroy()
  688. end
  689. end
  690. end
  691. return dropfunc
  692. end
  693.  
  694. function main:Slider(text,min,max,set,callback)
  695. local Slider = Instance.new("Frame")
  696. local slidercorner = Instance.new("UICorner")
  697. local sliderr = Instance.new("Frame")
  698. local sliderrcorner = Instance.new("UICorner")
  699. local SliderLabel = Instance.new("TextLabel")
  700. local HAHA = Instance.new("Frame")
  701. local AHEHE = Instance.new("TextButton")
  702. local bar = Instance.new("Frame")
  703. local bar1 = Instance.new("Frame")
  704. local bar1corner = Instance.new("UICorner")
  705. local barcorner = Instance.new("UICorner")
  706. local circlebar = Instance.new("Frame")
  707. local UICorner = Instance.new("UICorner")
  708. local slidervalue = Instance.new("Frame")
  709. local valuecorner = Instance.new("UICorner")
  710. local TextBox = Instance.new("TextBox")
  711. local UICorner_2 = Instance.new("UICorner")
  712.  
  713. Slider.Name = "Slider"
  714. Slider.Parent = MainFramePage
  715. Slider.BackgroundColor3 = _G.Color
  716. Slider.BackgroundTransparency = 0
  717. Slider.Size = UDim2.new(0, 470, 0, 51)
  718.  
  719. slidercorner.CornerRadius = UDim.new(0, 5)
  720. slidercorner.Name = "slidercorner"
  721. slidercorner.Parent = Slider
  722.  
  723. sliderr.Name = "sliderr"
  724. sliderr.Parent = Slider
  725. sliderr.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  726. sliderr.Position = UDim2.new(0, 1, 0, 1)
  727. sliderr.Size = UDim2.new(0, 468, 0, 49)
  728.  
  729. sliderrcorner.CornerRadius = UDim.new(0, 5)
  730. sliderrcorner.Name = "sliderrcorner"
  731. sliderrcorner.Parent = sliderr
  732.  
  733. SliderLabel.Name = "SliderLabel"
  734. SliderLabel.Parent = sliderr
  735. SliderLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  736. SliderLabel.BackgroundTransparency = 1.000
  737. SliderLabel.Position = UDim2.new(0, 15, 0, 0)
  738. SliderLabel.Size = UDim2.new(0, 180, 0, 26)
  739. SliderLabel.Font = Enum.Font.GothamSemibold
  740. SliderLabel.Text = text
  741. SliderLabel.TextColor3 = Color3.fromRGB(225, 225, 225)
  742. SliderLabel.TextSize = 16.000
  743. SliderLabel.TextTransparency = 0
  744. SliderLabel.TextXAlignment = Enum.TextXAlignment.Left
  745.  
  746. HAHA.Name = "HAHA"
  747. HAHA.Parent = sliderr
  748. HAHA.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  749. HAHA.BackgroundTransparency = 1.000
  750. HAHA.Size = UDim2.new(0, 468, 0, 29)
  751.  
  752. AHEHE.Name = "AHEHE"
  753. AHEHE.Parent = sliderr
  754. AHEHE.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  755. AHEHE.BackgroundTransparency = 1.000
  756. AHEHE.Position = UDim2.new(0, 10, 0, 35)
  757. AHEHE.Size = UDim2.new(0, 448, 0, 5)
  758. AHEHE.Font = Enum.Font.SourceSans
  759. AHEHE.Text = ""
  760. AHEHE.TextColor3 = Color3.fromRGB(0, 0, 0)
  761. AHEHE.TextSize = 14.000
  762.  
  763. bar.Name = "bar"
  764. bar.Parent = AHEHE
  765. bar.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  766. bar.Size = UDim2.new(0, 448, 0, 5)
  767.  
  768. bar1.Name = "bar1"
  769. bar1.Parent = bar
  770. bar1.BackgroundColor3 = _G.Color
  771. bar1.BackgroundTransparency = 0
  772. bar1.Size = UDim2.new(set/max, 0, 0, 5)
  773.  
  774. bar1corner.CornerRadius = UDim.new(0, 5)
  775. bar1corner.Name = "bar1corner"
  776. bar1corner.Parent = bar1
  777.  
  778. barcorner.CornerRadius = UDim.new(0, 5)
  779. barcorner.Name = "barcorner"
  780. barcorner.Parent = bar
  781.  
  782. circlebar.Name = "circlebar"
  783. circlebar.Parent = bar1
  784. circlebar.BackgroundColor3 = Color3.fromRGB(225, 225, 225)
  785. circlebar.Position = UDim2.new(1, -2, 0, -3)
  786. circlebar.Size = UDim2.new(0, 10, 0, 10)
  787.  
  788. UICorner.CornerRadius = UDim.new(0, 100)
  789. UICorner.Parent = circlebar
  790.  
  791. slidervalue.Name = "slidervalue"
  792. slidervalue.Parent = sliderr
  793. slidervalue.BackgroundColor3 = _G.Color
  794. slidervalue.BackgroundTransparency = 0
  795. slidervalue.Position = UDim2.new(0, 395, 0, 5)
  796. slidervalue.Size = UDim2.new(0, 65, 0, 18)
  797.  
  798. valuecorner.CornerRadius = UDim.new(0, 5)
  799. valuecorner.Name = "valuecorner"
  800. valuecorner.Parent = slidervalue
  801.  
  802. TextBox.Parent = slidervalue
  803. TextBox.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  804. TextBox.Position = UDim2.new(0, 1, 0, 1)
  805. TextBox.Size = UDim2.new(0, 63, 0, 16)
  806. TextBox.Font = Enum.Font.GothamSemibold
  807. TextBox.TextColor3 = Color3.fromRGB(225, 225, 225)
  808. TextBox.TextSize = 9.000
  809. TextBox.Text = set
  810. TextBox.TextTransparency = 0
  811.  
  812. UICorner_2.CornerRadius = UDim.new(0, 5)
  813. UICorner_2.Parent = TextBox
  814.  
  815. local mouse = game.Players.LocalPlayer:GetMouse()
  816. local uis = game:GetService("UserInputService")
  817.  
  818. if Value == nil then
  819. Value = set
  820. pcall(function()
  821. callback(Value)
  822. end)
  823. end
  824.  
  825. AHEHE.MouseButton1Down:Connect(function()
  826. Value = math.floor((((tonumber(max) - tonumber(min)) / 448) * bar1.AbsoluteSize.X) + tonumber(min)) or 0
  827. pcall(function()
  828. callback(Value)
  829. end)
  830. bar1.Size = UDim2.new(0, math.clamp(mouse.X - bar1.AbsolutePosition.X, 0, 448), 0, 5)
  831. circlebar.Position = UDim2.new(0, math.clamp(mouse.X - bar1.AbsolutePosition.X - 2, 0, 438), 0, -3)
  832. moveconnection = mouse.Move:Connect(function()
  833. TextBox.Text = Value
  834. Value = math.floor((((tonumber(max) - tonumber(min)) / 448) * bar1.AbsoluteSize.X) + tonumber(min))
  835. pcall(function()
  836. callback(Value)
  837. end)
  838. bar1.Size = UDim2.new(0, math.clamp(mouse.X - bar1.AbsolutePosition.X, 0, 448), 0, 5)
  839. circlebar.Position = UDim2.new(0, math.clamp(mouse.X - bar1.AbsolutePosition.X - 2, 0, 438), 0, -3)
  840. end)
  841. releaseconnection = uis.InputEnded:Connect(function(Mouse)
  842. if Mouse.UserInputType == Enum.UserInputType.MouseButton1 or Mouse.UserInputType == Enum.UserInputType.Touch then
  843. Value = math.floor((((tonumber(max) - tonumber(min)) / 448) * bar1.AbsoluteSize.X) + tonumber(min))
  844. pcall(function()
  845. callback(Value)
  846. end)
  847. bar1.Size = UDim2.new(0, math.clamp(mouse.X - bar1.AbsolutePosition.X, 0, 448), 0, 5)
  848. circlebar.Position = UDim2.new(0, math.clamp(mouse.X - bar1.AbsolutePosition.X - 2, 0, 438), 0, -3)
  849. moveconnection:Disconnect()
  850. releaseconnection:Disconnect()
  851. end
  852. end)
  853. end)
  854. releaseconnection = uis.InputEnded:Connect(function(Mouse)
  855. if Mouse.UserInputType == Enum.UserInputType.MouseButton1 or Mouse.UserInputType == Enum.UserInputType.Touch then
  856. Value = math.floor((((tonumber(max) - tonumber(min)) / 448) * bar1.AbsoluteSize.X) + tonumber(min))
  857. TextBox.Text = Value
  858. end
  859. end)
  860.  
  861. TextBox.FocusLost:Connect(function()
  862. if tonumber(TextBox.Text) > max then
  863. TextBox.Text = max
  864. end
  865. bar1.Size = UDim2.new((TextBox.Text or 0) / max, 0, 0, 5)
  866. circlebar.Position = UDim2.new(1, -2, 0, -3)
  867. TextBox.Text = tostring(TextBox.Text and math.floor( (TextBox.Text / max) * (max - min) + min) )
  868. pcall(callback, TextBox.Text)
  869. end)
  870. end
  871.  
  872. function main:Textbox(text,disappear,callback)
  873. local Textbox = Instance.new("Frame")
  874. local TextboxCorner = Instance.new("UICorner")
  875. local Textboxx = Instance.new("Frame")
  876. local TextboxxCorner = Instance.new("UICorner")
  877. local TextboxLabel = Instance.new("TextLabel")
  878. local txtbtn = Instance.new("TextButton")
  879. local RealTextbox = Instance.new("TextBox")
  880. local UICorner = Instance.new("UICorner")
  881.  
  882. Textbox.Name = "Textbox"
  883. Textbox.Parent = MainFramePage
  884. Textbox.BackgroundColor3 = _G.Color
  885. Textbox.BackgroundTransparency = 0
  886. Textbox.Size = UDim2.new(0, 470, 0, 31)
  887.  
  888. TextboxCorner.CornerRadius = UDim.new(0, 5)
  889. TextboxCorner.Name = "TextboxCorner"
  890. TextboxCorner.Parent = Textbox
  891.  
  892. Textboxx.Name = "Textboxx"
  893. Textboxx.Parent = Textbox
  894. Textboxx.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  895. Textboxx.Position = UDim2.new(0, 1, 0, 1)
  896. Textboxx.Size = UDim2.new(0, 468, 0, 29)
  897.  
  898. TextboxxCorner.CornerRadius = UDim.new(0, 5)
  899. TextboxxCorner.Name = "TextboxxCorner"
  900. TextboxxCorner.Parent = Textboxx
  901.  
  902. TextboxLabel.Name = "TextboxLabel"
  903. TextboxLabel.Parent = Textbox
  904. TextboxLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  905. TextboxLabel.BackgroundTransparency = 1.000
  906. TextboxLabel.Position = UDim2.new(0, 15, 0, 0)
  907. TextboxLabel.Text = text
  908. TextboxLabel.Size = UDim2.new(0, 145, 0, 31)
  909. TextboxLabel.Font = Enum.Font.GothamSemibold
  910. TextboxLabel.TextColor3 = Color3.fromRGB(225, 225, 225)
  911. TextboxLabel.TextSize = 16.000
  912. TextboxLabel.TextTransparency = 0
  913. TextboxLabel.TextXAlignment = Enum.TextXAlignment.Left
  914.  
  915. txtbtn.Name = "txtbtn"
  916. txtbtn.Parent = Textbox
  917. txtbtn.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  918. txtbtn.BackgroundTransparency = 1.000
  919. txtbtn.Position = UDim2.new(0, 1, 0, 1)
  920. txtbtn.Size = UDim2.new(0, 468, 0, 29)
  921. txtbtn.Font = Enum.Font.SourceSans
  922. txtbtn.Text = ""
  923. txtbtn.TextColor3 = Color3.fromRGB(0, 0, 0)
  924. txtbtn.TextSize = 14.000
  925.  
  926. RealTextbox.Name = "RealTextbox"
  927. RealTextbox.Parent = Textbox
  928. RealTextbox.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  929. RealTextbox.BackgroundTransparency = 0
  930. RealTextbox.Position = UDim2.new(0, 360, 0, 4)
  931. RealTextbox.Size = UDim2.new(0, 100, 0, 24)
  932. RealTextbox.Font = Enum.Font.GothamSemibold
  933. RealTextbox.Text = ""
  934. RealTextbox.TextColor3 = Color3.fromRGB(225, 225, 225)
  935. RealTextbox.TextSize = 11.000
  936. RealTextbox.TextTransparency = 0
  937.  
  938. RealTextbox.FocusLost:Connect(function()
  939. callback(RealTextbox.Text)
  940. if disappear then
  941. RealTextbox.Text = ""
  942. end
  943. end)
  944.  
  945. UICorner.CornerRadius = UDim.new(0, 5)
  946. UICorner.Parent = RealTextbox
  947. end
  948. function main:Label(text)
  949. local Label = Instance.new("TextLabel")
  950. local PaddingLabel = Instance.new("UIPadding")
  951. local labelfunc = {}
  952.  
  953. Label.Name = "Label"
  954. Label.Parent = MainFramePage
  955. Label.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  956. Label.BackgroundTransparency = 1.000
  957. Label.Size = UDim2.new(0, 470, 0, 20)
  958. Label.Font = Enum.Font.GothamSemibold
  959. Label.TextColor3 = Color3.fromRGB(225, 225, 225)
  960. Label.TextSize = 16.000
  961. Label.Text = text
  962. Label.TextXAlignment = Enum.TextXAlignment.Left
  963.  
  964. PaddingLabel.PaddingLeft = UDim.new(0,15)
  965. PaddingLabel.Parent = Label
  966. PaddingLabel.Name = "PaddingLabel"
  967.  
  968. function labelfunc:Set(newtext)
  969. Label.Text = newtext
  970. end
  971. return labelfunc
  972. end
  973.  
  974. function main:Seperator(text)
  975. local Seperator = Instance.new("Frame")
  976. local Sep1 = Instance.new("Frame")
  977. local Sep2 = Instance.new("TextLabel")
  978. local Sep3 = Instance.new("Frame")
  979.  
  980. Seperator.Name = "Seperator"
  981. Seperator.Parent = MainFramePage
  982. Seperator.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  983. Seperator.BackgroundTransparency = 1.000
  984. Seperator.Size = UDim2.new(0, 470, 0, 20)
  985.  
  986. Sep1.Name = "Sep1"
  987. Sep1.Parent = Seperator
  988. Sep1.BackgroundColor3 = _G.Color
  989. Sep1.BorderSizePixel = 0
  990. Sep1.Position = UDim2.new(0, 0, 0, 10)
  991. Sep1.Size = UDim2.new(0, 80, 0, 1)
  992.  
  993. Sep2.Name = "Sep2"
  994. Sep2.Parent = Seperator
  995. Sep2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  996. Sep2.BackgroundTransparency = 1.000
  997. Sep2.Position = UDim2.new(0, 185, 0, 0)
  998. Sep2.Size = UDim2.new(0, 100, 0, 20)
  999. Sep2.Font = Enum.Font.GothamSemibold
  1000. Sep2.Text = text
  1001. Sep2.TextColor3 = Color3.fromRGB(255, 255, 255)
  1002. Sep2.TextSize = 14.000
  1003.  
  1004. Sep3.Name = "Sep3"
  1005. Sep3.Parent = Seperator
  1006. Sep3.BackgroundColor3 = _G.Color
  1007. Sep3.BorderSizePixel = 0
  1008. Sep3.Position = UDim2.new(0, 390, 0, 10)
  1009. Sep3.Size = UDim2.new(0, 80, 0, 1)
  1010. end
  1011.  
  1012. function main:Line()
  1013. local Linee = Instance.new("Frame")
  1014. local Line = Instance.new("Frame")
  1015.  
  1016. Linee.Name = "Linee"
  1017. Linee.Parent = MainFramePage
  1018. Linee.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1019. Linee.BackgroundTransparency = 1.000
  1020. Linee.Position = UDim2.new(0, 0, 0.119999997, 0)
  1021. Linee.Size = UDim2.new(0, 470, 0, 20)
  1022.  
  1023. Line.Name = "Line"
  1024. Line.Parent = Linee
  1025. Line.BackgroundColor3 = _G.Color
  1026. Line.BorderSizePixel = 0
  1027. Line.Position = UDim2.new(0, 0, 0, 10)
  1028. Line.Size = UDim2.new(0, 470, 0, 1)
  1029. end
  1030. return main
  1031. end
  1032. return uitab
  1033. end
  1034. while true do
  1035. TabButton.BorderColor3 = Color3.fromHSV(tick()%5/5,1,1)
  1036. wait()
  1037. end
  1038. return DarkraiX
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement