Advertisement
Domadicoof-28363

Untitled

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