Advertisement
ssssdsd1213

Untitled

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