Bdokkx

random lib

Jan 22nd, 2025
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 92.19 KB | Gaming | 0 0
  1.  
  2.  
  3. local LocalPlayer = game:GetService('Players').LocalPlayer;
  4. local Mouse = LocalPlayer:GetMouse();
  5. local InputService = game:GetService('UserInputService');
  6. local TextService = game:GetService('TextService');
  7. local TweenService = game:GetService('TweenService');
  8. local CoreGui = game:FindFirstChild('CoreGui') or LocalPlayer.PlayerGui;
  9.  
  10. local ProtectGui = protectgui or (syn and syn.protect_gui) or (function() end);
  11.  
  12. local function cretate_button(asd)
  13. local button=Instance.new('TextButton')
  14. button.Size=UDim2.new(1,0,1,0)
  15. button.BackgroundTransparency=1
  16. button.TextTransparency=1
  17. button.Text=""
  18. button.Parent=asd
  19. button.ZIndex=5000
  20. return button
  21. end
  22.  
  23.  
  24. local function ConnectButtonEffect(UIFrame:Frame&TextButton&ImageLabel,UIStroke:UIStroke,int)
  25. if not UIStroke then
  26. return
  27. end
  28.  
  29. int = int or 0.2
  30. local OldColor = UIStroke.Color
  31. local R,G,B = OldColor.R,OldColor.G,OldColor.B
  32. local MainColor = Color3.fromHSV(R,G,B + int)
  33.  
  34. UIFrame.InputBegan:Connect(function(Input)
  35. if Input.UserInputType == Enum.UserInputType.Touch or Input.UserInputType == Enum.UserInputType.MouseMovement then
  36. TweenService:Create(UIStroke,TweenInfo.new(0.2),{Color = MainColor}):Play()
  37. end
  38. end)
  39.  
  40. UIFrame.InputEnded:Connect(function(Input)
  41. if Input.UserInputType == Enum.UserInputType.Touch or Input.UserInputType == Enum.UserInputType.MouseMovement then
  42. TweenService:Create(UIStroke,TweenInfo.new(0.2),{Color = OldColor}):Play()
  43. end
  44. end)
  45. end
  46.  
  47. local function scrolling_connect(scrollframe:ScrollingFrame)
  48. task.spawn(function()
  49. local addres = 45
  50. local UIListLayout:UIListLayout = scrollframe:WaitForChild('UIListLayout',9999999)
  51. scrollframe.CanvasSize=UDim2.new(0,0,0,UIListLayout.AbsoluteContentSize.Y+addres)
  52.  
  53. UIListLayout:GetPropertyChangedSignal('AbsoluteContentSize'):Connect(function()
  54. scrollframe.CanvasSize=UDim2.new(0,0,0,UIListLayout.AbsoluteContentSize.Y+addres)
  55. end)
  56. end)
  57. end
  58.  
  59. local function GetImageData(name:string,image:ImageLabel)
  60. name = name or "ADS"
  61. name = name:lower()
  62. local NigImage = "rbxassetid://3926305904"
  63. if name == "ads" then
  64. image.Image = NigImage
  65. image.ImageRectOffset = Vector2.new(205,565)
  66. image.ImageRectSize = Vector2.new(35,35)
  67. end
  68.  
  69. if name == "list" then
  70. image.Image = NigImage
  71. image.ImageRectOffset = Vector2.new(485,205)
  72. image.ImageRectSize = Vector2.new(35,35)
  73. end
  74.  
  75. if name == "folder" then
  76. image.Image = NigImage
  77. image.ImageRectOffset = Vector2.new(805,45)
  78. image.ImageRectSize = Vector2.new(35,35)
  79. end
  80.  
  81. if name == "earth" then
  82. image.Image = NigImage
  83. image.ImageRectOffset = Vector2.new(604,324)
  84. image.ImageRectSize = Vector2.new(35,35)
  85. end
  86.  
  87. if name == "locked" then
  88. image.Image = NigImage
  89. image.ImageRectOffset = Vector2.new(524, 644)
  90. image.ImageRectSize = Vector2.new(35,35)
  91. end
  92.  
  93. if name == "home" then
  94. image.Image = NigImage
  95. image.ImageRectOffset = Vector2.new(964, 205)
  96. image.ImageRectSize = Vector2.new(35,35)
  97. end
  98.  
  99. if name == "mouse" then
  100. image.Image = "rbxassetid://3515393063"
  101. end
  102.  
  103. if name == "user" then
  104. image.Image = "rbxassetid://10494577250"
  105. end
  106. end
  107.  
  108. local NEVERLOSE = {
  109. auto_function = {},
  110. Themes = {
  111. BlackgroundColor = Color3.fromRGB(43, 43, 43),
  112. BlackColor = Color3.fromRGB(16, 16, 16),
  113. HeaderColor = Color3.fromRGB(47, 47, 47),
  114. TraceColor = Color3.fromRGB(100, 100, 100),
  115. MainColor = Color3.fromRGB(255, 140, 0),
  116. MainColorDrop = Color3.fromRGB(65, 54, 31),
  117. SectionColor = Color3.fromRGB(26, 26, 26),
  118. StrokeColor = Color3.fromRGB(50, 50, 50),
  119. ButtonBlackgroundColor = Color3.fromRGB(26, 26, 26)
  120. },
  121. _Version="10.C",
  122. _Name="NEVERLOSE",
  123. _ActiveWindow = nil,
  124. _ActiveGUI = nil,
  125.  
  126. -- Destroy method
  127. Destroy = function(self)
  128. if self._ActiveWindow then
  129. pcall(function()
  130. self._ActiveWindow:Destroy()
  131. end)
  132. self._ActiveWindow = nil
  133. end
  134.  
  135. if self._ActiveGUI then
  136. pcall(function()
  137. self._ActiveGUI:Destroy()
  138. end)
  139. self._ActiveGUI = nil
  140. end
  141.  
  142. -- Clean up any existing UI elements in CoreGui
  143. for _, gui in pairs(game:GetService("CoreGui"):GetChildren()) do
  144. if gui.Name == "NEVERLOSE_UI" then
  145. gui:Destroy()
  146. end
  147. end
  148. end
  149. }
  150.  
  151. print(NEVERLOSE._Name..":",NEVERLOSE._Version..':',[[https://neverlose.cc/]],": UI BY CAT_SUS, remake by alriceee on discord","__ui")
  152.  
  153. function NEVERLOSE:Theme(name)
  154. name = tostring(name or "original"):lower()
  155. if name == "original" then
  156. NEVERLOSE.Themes.BlackgroundColor = Color3.fromRGB(1, 17, 33)
  157. NEVERLOSE.Themes.BlackColor = Color3.fromRGB(9, 9, 19)
  158. NEVERLOSE.Themes.HeaderColor = Color3.fromRGB(7, 7, 17)
  159. NEVERLOSE.Themes.TraceColor = Color3.fromRGB(0, 34, 44)
  160. NEVERLOSE.Themes.MainColor = Color3.fromRGB(19, 176, 243)
  161. NEVERLOSE.Themes.MainColorDrop = Color3.fromRGB(3, 6, 25)
  162. NEVERLOSE.Themes.SectionColor = Color3.fromRGB(0, 17, 35)
  163. NEVERLOSE.Themes.StrokeColor = Color3.fromRGB(3, 35, 50)
  164. NEVERLOSE.Themes.ButtonBlackgroundColor = Color3.fromRGB(2, 5, 22)
  165. end
  166.  
  167. if name == "nightly" then
  168. NEVERLOSE.Themes.BlackgroundColor = Color3.fromRGB(43, 43, 43)
  169. NEVERLOSE.Themes.BlackColor = Color3.fromRGB(16, 16, 16)
  170. NEVERLOSE.Themes.HeaderColor = Color3.fromRGB(47, 47, 47)
  171. NEVERLOSE.Themes.TraceColor = Color3.fromRGB(100, 100, 100)
  172. NEVERLOSE.Themes.MainColor = Color3.fromRGB(255, 140, 0)
  173. NEVERLOSE.Themes.MainColorDrop = Color3.fromRGB(65, 54, 31)
  174. NEVERLOSE.Themes.SectionColor = Color3.fromRGB(26, 26, 26)
  175. NEVERLOSE.Themes.StrokeColor = Color3.fromRGB(50, 50, 50)
  176. NEVERLOSE.Themes.ButtonBlackgroundColor = Color3.fromRGB(26, 26, 26)
  177. end
  178.  
  179. if name == "dark" then
  180. NEVERLOSE.Themes.BlackgroundColor = Color3.fromRGB(37, 37, 37)
  181. NEVERLOSE.Themes.BlackColor = Color3.fromRGB(8, 8, 8)
  182. NEVERLOSE.Themes.HeaderColor = Color3.fromRGB(8, 8, 8)
  183. NEVERLOSE.Themes.TraceColor = Color3.fromRGB(25, 25, 25)
  184. NEVERLOSE.Themes.MainColor = Color3.fromRGB(0, 172, 247)
  185. NEVERLOSE.Themes.MainColorDrop = Color3.fromRGB(64, 65, 67)
  186. NEVERLOSE.Themes.SectionColor = Color3.fromRGB(13, 13, 13)
  187. NEVERLOSE.Themes.StrokeColor = Color3.fromRGB(28, 28, 28)
  188. NEVERLOSE.Themes.ButtonBlackgroundColor = Color3.fromRGB(13, 13, 13)
  189. end
  190.  
  191. if name == "light" then
  192. NEVERLOSE.Themes.BlackgroundColor = Color3.fromRGB(240, 240, 240)
  193. NEVERLOSE.Themes.BlackColor = Color3.fromRGB(255, 255, 255)
  194. NEVERLOSE.Themes.HeaderColor = Color3.fromRGB(230, 230, 230)
  195. NEVERLOSE.Themes.TraceColor = Color3.fromRGB(200, 200, 200)
  196. NEVERLOSE.Themes.MainColor = Color3.fromRGB(0, 120, 215)
  197. NEVERLOSE.Themes.MainColorDrop = Color3.fromRGB(220, 220, 220)
  198. NEVERLOSE.Themes.SectionColor = Color3.fromRGB(250, 250, 250)
  199. NEVERLOSE.Themes.StrokeColor = Color3.fromRGB(180, 180, 180)
  200. NEVERLOSE.Themes.ButtonBlackgroundColor = Color3.fromRGB(245, 245, 245)
  201. end
  202. end
  203.  
  204. function NEVERLOSE:AddWindow(NameScriptHub,Text,UICustomSize)
  205. -- Clean up existing UI elements
  206. if self._ActiveGUI then
  207. pcall(function()
  208. self._ActiveGUI:Destroy()
  209. end)
  210. self._ActiveGUI = nil
  211. end
  212.  
  213. -- Clean up existing window
  214. if self._ActiveWindow then
  215. pcall(function()
  216. self._ActiveWindow:Destroy()
  217. end)
  218. self._ActiveWindow = nil
  219. end
  220.  
  221. -- Clean up any existing UI elements in CoreGui
  222. for _, gui in pairs(CoreGui:GetChildren()) do
  223. if gui.Name == "NEVERLOSE_UI" then
  224. gui:Destroy()
  225. end
  226. end
  227.  
  228. local WindowFunctinos={}
  229. local ToggleUI=false
  230. local ooldsize=UICustomSize or UDim2.new(0.200000003, 210, 0.200000003, 175)
  231. local Tabs={}
  232.  
  233. local ScreenGui = Instance.new("ScreenGui")
  234. ScreenGui.Name = "NEVERLOSE_UI"
  235. -- Store reference to active GUI
  236. self._ActiveGUI = ScreenGui
  237.  
  238. local Frame = Instance.new("Frame")
  239. local UICorner = Instance.new("UICorner")
  240. local Frame_2 = Instance.new("Frame")
  241. local UICorner_2 = Instance.new("UICorner")
  242. local Frame_3 = Instance.new("Frame")
  243. local UICorner_3 = Instance.new("UICorner")
  244. local DropShadow = Instance.new("ImageLabel")
  245. local HeadName = Instance.new("TextLabel")
  246. local TabButtons = Instance.new("ScrollingFrame")
  247. local UIListLayout = Instance.new("UIListLayout")
  248. local TabHose = Instance.new("Frame")
  249. local outlo = Instance.new("Frame")
  250. local UICorner_4 = Instance.new("UICorner")
  251. local outlo_2 = Instance.new("Frame")
  252. local UICorner_5 = Instance.new("UICorner")
  253. local outlo_3 = Instance.new("Frame")
  254. local UICorner_6 = Instance.new("UICorner")
  255. local UserData = Instance.new("Frame")
  256. local UICorner_7 = Instance.new("UICorner")
  257. local UserImage = Instance.new("ImageLabel")
  258. local UICorner_8 = Instance.new("UICorner")
  259. local UserName = Instance.new("TextLabel")
  260. local headd2text
  261. local oldPositionClose
  262.  
  263. --Anti Spoofer
  264. ScreenGui:GetPropertyChangedSignal('Enabled'):Connect(function()
  265. if not ScreenGui.Enabled then
  266. ScreenGui.Enabled=true
  267. end
  268. end)
  269.  
  270. task.spawn(function()
  271. if Text then
  272. local TextLabel = Instance.new("TextLabel")
  273.  
  274. TextLabel.Parent = Frame
  275. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  276. TextLabel.BackgroundTransparency = 1.000
  277. TextLabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
  278. TextLabel.BorderSizePixel = 0
  279. TextLabel.Position = UDim2.new(0.243000001, 0, 0.0250000004, 0)
  280. TextLabel.Size = UDim2.new(0.666889787, 0, 0.0627818182, 0)
  281. TextLabel.ZIndex = 5
  282. TextLabel.Font = Enum.Font.SourceSansBold
  283. TextLabel.Text = Text or" "
  284. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  285. TextLabel.TextScaled = true
  286. TextLabel.TextSize = 14.000
  287. TextLabel.TextStrokeColor3 = Color3.fromRGB(0, 255, 255)
  288. TextLabel.TextStrokeTransparency = 0.900
  289. TextLabel.TextWrapped = true
  290. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  291. TextLabel.RichText=true
  292.  
  293. headd2text=TextLabel
  294. end
  295. end)
  296.  
  297. local toggle_valu = true
  298.  
  299. local function ui_toggleong(val)
  300. local uptime=1.4
  301. if val then
  302. TweenService:Create(Frame,TweenInfo.new(uptime,Enum.EasingStyle.Quint),{Size=ooldsize,Position=UDim2.new(0.5,0,0.5,0)}):Play()
  303. TweenService:Create(HeadName,TweenInfo.new(uptime/3,Enum.EasingStyle.Quint),{Size=UDim2.new(0.205458686, 0, 0.133462012, 0),Position=UDim2.new(0.0100000342, 0, 0.010000146, 0)}):Play()
  304.  
  305.  
  306. TweenService:Create(TabHose,TweenInfo.new(0.3),{Position=UDim2.new(.223,0,0.143,0)}):Play()
  307. TweenService:Create(TabButtons,TweenInfo.new(0.3),{Position=UDim2.new(.008,0,0.143,0)}):Play()
  308.  
  309. if headd2text then
  310. TweenService:Create(headd2text,TweenInfo.new(0.3),{TextTransparency=0,TextStrokeTransparency=0.900}):Play()
  311. end
  312.  
  313. TweenService:Create(UserName,TweenInfo.new(0.3),{TextTransparency=0,TextStrokeTransparency=1}):Play()
  314. TweenService:Create(UserImage,TweenInfo.new(0.3),{ImageTransparency=0}):Play()
  315. TweenService:Create(outlo,TweenInfo.new(0.3),{BackgroundTransparency=0.7}):Play()
  316. TweenService:Create(outlo_2,TweenInfo.new(0.3),{BackgroundTransparency=0.7}):Play()
  317. TweenService:Create(outlo_3,TweenInfo.new(0.3),{BackgroundTransparency=0.7}):Play()
  318. TweenService:Create(Frame_2,TweenInfo.new(0.3),{BackgroundTransparency=0}):Play()
  319. TweenService:Create(Frame_3,TweenInfo.new(0.3),{BackgroundTransparency=0.9}):Play()
  320. TweenService:Create(DropShadow,TweenInfo.new(0.3),{ImageTransparency=0.86}):Play()
  321.  
  322. else
  323. TweenService:Create(Frame,TweenInfo.new(uptime,Enum.EasingStyle.Quint),{Size=UDim2.new(0.14, 0,0.14, 0),Position=oldPositionClose}):Play()
  324. TweenService:Create(HeadName,TweenInfo.new(uptime/1.2,Enum.EasingStyle.Quint),{Size=UDim2.new(0.9, 0,0.5, 0),Position=UDim2.new(0.046,0,0.24,0)}):Play()
  325.  
  326. TweenService:Create(TabHose,TweenInfo.new(0.3),{Position=UDim2.new(1.5,0,0.143,0)}):Play()
  327. TweenService:Create(TabButtons,TweenInfo.new(0.3),{Position=UDim2.new(-1.25,0,0.143,0)}):Play()
  328.  
  329. if headd2text then
  330. TweenService:Create(headd2text,TweenInfo.new(0.3),{TextTransparency=1,TextStrokeTransparency=1}):Play()
  331. end
  332.  
  333. TweenService:Create(UserName,TweenInfo.new(0.3),{TextTransparency=1,TextStrokeTransparency=1}):Play()
  334. TweenService:Create(UserImage,TweenInfo.new(0.3),{ImageTransparency=1}):Play()
  335. TweenService:Create(outlo,TweenInfo.new(0.3),{BackgroundTransparency=1}):Play()
  336. TweenService:Create(outlo_2,TweenInfo.new(0.3),{BackgroundTransparency=1}):Play()
  337. TweenService:Create(outlo_3,TweenInfo.new(0.3),{BackgroundTransparency=1}):Play()
  338. TweenService:Create(Frame_2,TweenInfo.new(0.3),{BackgroundTransparency=1}):Play()
  339. TweenService:Create(Frame_3,TweenInfo.new(0.3),{BackgroundTransparency=1}):Play()
  340. TweenService:Create(DropShadow,TweenInfo.new(0.3),{ImageTransparency=1}):Play()
  341. end
  342. end
  343.  
  344. task.spawn(function()
  345. local ImageButton = Instance.new("ImageButton")
  346.  
  347. ImageButton.Parent = Frame
  348. ImageButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  349. ImageButton.BackgroundTransparency = 1.000
  350. ImageButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
  351. ImageButton.BorderSizePixel = 0
  352. ImageButton.Position = UDim2.new(0.908723712, 0, 0.0239103697, 0)
  353. ImageButton.Size = UDim2.new(0.0900000036, 0, 0.0900000036, 0)
  354. ImageButton.SizeConstraint = Enum.SizeConstraint.RelativeYY
  355. ImageButton.ZIndex = 4
  356. ImageButton.Image = "rbxassetid://10002398990"
  357. ImageButton.ScaleType = Enum.ScaleType.Fit
  358.  
  359. ImageButton.MouseButton1Click:Connect(function()
  360. toggle_valu=not toggle_valu
  361.  
  362. if toggle_valu then
  363. oldPositionClose = Frame.Position
  364. TweenService:Create(ImageButton,TweenInfo.new(0.5),{
  365. Size=UDim2.new(0.0900000036, 0, 0.0900000036, 0),
  366. Position=UDim2.new(0.908723712, 0, 0.0239103697, 0),
  367. AnchorPoint=Vector2.new(0,0)
  368. }):Play()
  369. else
  370. TweenService:Create(ImageButton,TweenInfo.new(0.5),{
  371. Size=UDim2.new(0.3, 0,0.3, 0),
  372. Position=UDim2.new(1,0,-0.009,0),
  373. AnchorPoint=Vector2.new(1,0)
  374. }):Play()
  375. end
  376.  
  377. ui_toggleong(toggle_valu)
  378. end)
  379. end)
  380.  
  381. task.spawn(function()
  382. local dragToggle = nil
  383. local dragSpeed = 0.15
  384. local dragStart = nil
  385. local startPos = nil
  386.  
  387. local function updateInput(input)
  388. local delta = input.Position - dragStart
  389. local position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X,
  390. startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  391. game:GetService('TweenService'):Create(Frame, TweenInfo.new(dragSpeed), {Position = position}):Play()
  392. end
  393.  
  394. Frame.InputBegan:Connect(function(input)
  395. if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) and not toggle_valu then
  396. dragToggle = true
  397. dragStart = input.Position
  398. startPos = Frame.Position
  399. input.Changed:Connect(function()
  400. if input.UserInputState == Enum.UserInputState.End then
  401. dragToggle = false
  402. end
  403. end)
  404. end
  405. end)
  406.  
  407. InputService.InputChanged:Connect(function(input)
  408. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  409. if dragToggle and not toggle_valu then
  410. updateInput(input)
  411. end
  412. end
  413. end)
  414. end)
  415.  
  416. ScreenGui.Parent = CoreGui
  417. ScreenGui.ResetOnSpawn = false
  418. ScreenGui.IgnoreGuiInset = true
  419. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Global
  420. ProtectGui(ScreenGui)
  421.  
  422. Frame.Parent = ScreenGui
  423. Frame.Active = true
  424. Frame.AnchorPoint = Vector2.new(0.5, 0.5)
  425. Frame.BackgroundColor3 = NEVERLOSE.Themes.BlackgroundColor
  426. Frame.BackgroundTransparency = 0.200
  427. Frame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  428. Frame.BorderSizePixel = 0
  429. Frame.Position = UDim2.new(0.5, 0, 0.5, 0)
  430. Frame.Size = UDim2.new(0,0,0,0)
  431. Frame.ZIndex = 2
  432. Frame.ClipsDescendants=true
  433.  
  434. TweenService:Create(Frame,TweenInfo.new(1,Enum.EasingStyle.Quint),{Size=ooldsize}):Play()
  435.  
  436. UICorner.Parent = Frame
  437.  
  438. Frame_2.Parent = Frame
  439. Frame_2.BackgroundColor3 = NEVERLOSE.Themes.BlackColor
  440. Frame_2.BorderColor3 = Color3.fromRGB(0, 0, 0)
  441. Frame_2.BorderSizePixel = 0
  442. Frame_2.Position = UDim2.new(0.223214373, 0, 0, 0)
  443. Frame_2.Size = UDim2.new(0.774634778, 0, 1, 0)
  444. Frame_2.ZIndex = 2
  445.  
  446. UICorner_2.CornerRadius = UDim.new(0, 4)
  447. UICorner_2.Parent = Frame_2
  448.  
  449. Frame_3.Parent = Frame
  450. Frame_3.BackgroundColor3 = NEVERLOSE.Themes.HeaderColor
  451. Frame_3.BackgroundTransparency = 0.900
  452. Frame_3.BorderColor3 = Color3.fromRGB(0, 0, 0)
  453. Frame_3.BorderSizePixel = 0
  454. Frame_3.Position = UDim2.new(0.223214373, 0, 0, 0)
  455. Frame_3.Size = UDim2.new(0.774999976, 0, 0.140000001, 0)
  456. Frame_3.ZIndex = 4
  457.  
  458. UICorner_3.CornerRadius = UDim.new(0, 4)
  459. UICorner_3.Parent = Frame_3
  460.  
  461. DropShadow.Name = "DropShadow"
  462. DropShadow.Parent = Frame
  463. DropShadow.AnchorPoint = Vector2.new(0.5, 0.5)
  464. DropShadow.BackgroundTransparency = 1.000
  465. DropShadow.BorderSizePixel = 0
  466. DropShadow.Position = UDim2.new(0.963742971, 0, 0.5, 0)
  467. DropShadow.Size = UDim2.new(-0.0510042384, 47, 0.839458942, 47)
  468. DropShadow.ZIndex = 3
  469. DropShadow.Image = "rbxassetid://6014261993"
  470. DropShadow.ImageColor3 = Color3.fromRGB(0, 0, 0)
  471. DropShadow.ImageTransparency = 0.860
  472. DropShadow.ScaleType = Enum.ScaleType.Slice
  473. DropShadow.SliceCenter = Rect.new(49, 49, 450, 450)
  474.  
  475. HeadName.Name = "HeadName"
  476. HeadName.Parent = Frame
  477. HeadName.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  478. HeadName.BackgroundTransparency = 1.000
  479. HeadName.BorderColor3 = Color3.fromRGB(0, 0, 0)
  480. HeadName.BorderSizePixel = 0
  481. HeadName.Position = UDim2.new(0.0100000342, 0, 0.010000146, 0)
  482. HeadName.Size = UDim2.new(0.205458686, 0, 0.133462012, 0)
  483. HeadName.ZIndex = 4
  484. HeadName.Font = Enum.Font.SourceSansBold
  485. HeadName.Text = NameScriptHub or "NEVERLOSE"
  486. HeadName.TextColor3 = Color3.fromRGB(255, 255, 255)
  487. HeadName.TextScaled = true
  488. HeadName.TextSize = 14.000
  489. HeadName.TextStrokeColor3 = Color3.fromRGB(0, 251, 255)
  490. HeadName.TextStrokeTransparency = 0.720
  491. HeadName.TextWrapped = true
  492.  
  493. TabButtons.Name = "TabButtons"
  494. TabButtons.Parent = Frame
  495. TabButtons.Active = true
  496. TabButtons.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  497. TabButtons.BackgroundTransparency = 1.000
  498. TabButtons.BorderColor3 = Color3.fromRGB(0, 0, 0)
  499. TabButtons.BorderSizePixel = 0
  500. TabButtons.Position = UDim2.new(0.00760957832, 0, 0.143462211, 0)
  501. TabButtons.Size = UDim2.new(0.20784913, 0, 0.753122032, 0)
  502. TabButtons.ZIndex = 5
  503. TabButtons.CanvasSize = UDim2.new(0, 0, 0, 0)
  504. TabButtons.ScrollBarThickness = 1
  505.  
  506.  
  507. UIListLayout.Parent = TabButtons
  508. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  509. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  510. UIListLayout.Padding = UDim.new(0, 4)
  511.  
  512. scrolling_connect(TabButtons)
  513.  
  514. TabHose.Name = "TabHose"
  515. TabHose.Parent = Frame
  516. TabHose.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  517. TabHose.BackgroundTransparency = 1.000
  518. TabHose.BorderColor3 = Color3.fromRGB(0, 0, 0)
  519. TabHose.BorderSizePixel = 0
  520. TabHose.Position = UDim2.new(0.223214373, 0, 0.143462211, 0)
  521. TabHose.Size = UDim2.new(0.774635077, 0, 0.856537759, 0)
  522. TabHose.ZIndex = 5
  523.  
  524. outlo.Name = "outlo"
  525. outlo.Parent = Frame
  526. outlo.AnchorPoint = Vector2.new(1, 0)
  527. outlo.BackgroundColor3 = NEVERLOSE.Themes.TraceColor
  528. outlo.BackgroundTransparency = 0.700
  529. outlo.BorderColor3 = Color3.fromRGB(0, 0, 0)
  530. outlo.BorderSizePixel = 0
  531. outlo.Position = UDim2.new(1, 0, 0.136999995, 0)
  532. outlo.Size = UDim2.new(0.774999976, 0, 0, 1)
  533. outlo.ZIndex = 4
  534.  
  535. UICorner_4.CornerRadius = UDim.new(0, 4)
  536. UICorner_4.Parent = outlo
  537.  
  538. outlo_2.Name = "outlo"
  539. outlo_2.Parent = Frame
  540. outlo_2.AnchorPoint = Vector2.new(1, 0.5)
  541. outlo_2.BackgroundColor3 = NEVERLOSE.Themes.TraceColor
  542. outlo_2.BackgroundTransparency = 0.700
  543. outlo_2.BorderColor3 = Color3.fromRGB(0, 0, 0)
  544. outlo_2.BorderSizePixel = 0
  545. outlo_2.Position = UDim2.new(0.223908007, 0, 0.5, 0)
  546. outlo_2.Size = UDim2.new(0, 1, 1, 0)
  547. outlo_2.ZIndex = 4
  548.  
  549. UICorner_5.CornerRadius = UDim.new(0, 4)
  550. UICorner_5.Parent = outlo_2
  551.  
  552. outlo_3.Name = "outlo"
  553. outlo_3.Parent = Frame
  554. outlo_3.AnchorPoint = Vector2.new(1, 0)
  555. outlo_3.BackgroundColor3 = NEVERLOSE.Themes.TraceColor
  556. outlo_3.BackgroundTransparency = 0.700
  557. outlo_3.BorderColor3 = Color3.fromRGB(0, 0, 0)
  558. outlo_3.BorderSizePixel = 0
  559. outlo_3.Position = UDim2.new(0.223908007, 0, 0.923109949, 0)
  560. outlo_3.Size = UDim2.new(0.223908007, 0, 0, 1)
  561. outlo_3.ZIndex = 4
  562.  
  563. UICorner_6.CornerRadius = UDim.new(0, 4)
  564. UICorner_6.Parent = outlo_3
  565.  
  566. UserData.Name = "UserData"
  567. UserData.Parent = Frame
  568. UserData.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  569. UserData.BackgroundTransparency = 1.000
  570. UserData.BorderColor3 = Color3.fromRGB(0, 0, 0)
  571. UserData.BorderSizePixel = 0
  572. UserData.Position = UDim2.new(-0.000179085735, 0, 0.926525652, 0)
  573. UserData.Size = UDim2.new(0.225179195, 0, 0.0718210712, 0)
  574. UserData.ZIndex = 5
  575.  
  576. UICorner_7.CornerRadius = UDim.new(0, 2)
  577. UICorner_7.Parent = UserData
  578.  
  579. UserImage.Name = "UserImage"
  580. UserImage.Parent = UserData
  581. UserImage.AnchorPoint = Vector2.new(0.5, 0.5)
  582. UserImage.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  583. UserImage.BackgroundTransparency = 1.000
  584. UserImage.BorderColor3 = Color3.fromRGB(0, 0, 0)
  585. UserImage.BorderSizePixel = 0
  586. UserImage.Position = UDim2.new(0.150000006, 0, 0.5, 0)
  587. UserImage.Size = UDim2.new(0.949999988, 0, 0.949999988, 0)
  588. UserImage.SizeConstraint = Enum.SizeConstraint.RelativeYY
  589. UserImage.ZIndex = 5
  590. UserImage.Image = game:GetService('Players'):GetUserThumbnailAsync(LocalPlayer.UserId,Enum.ThumbnailType.HeadShot,Enum.ThumbnailSize.Size150x150)
  591.  
  592. UICorner_8.CornerRadius = UDim.new(0.5, 0)
  593. UICorner_8.Parent = UserImage
  594.  
  595. UserName.Name = "UserName"
  596. UserName.Parent = UserData
  597. UserName.AnchorPoint = Vector2.new(0, 0.5)
  598. UserName.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  599. UserName.BackgroundTransparency = 1.000
  600. UserName.BorderColor3 = Color3.fromRGB(0, 0, 0)
  601. UserName.BorderSizePixel = 0
  602. UserName.Position = UDim2.new(0.31400001, 0, 0.5, 0)
  603. UserName.Size = UDim2.new(0.717000008, 0, 0.649999976, 0)
  604. UserName.ZIndex = 5
  605. UserName.Font = Enum.Font.SourceSansSemibold
  606. UserName.Text = LocalPlayer.DisplayName or "https://httpbin.org/get"
  607. UserName.TextColor3 = Color3.fromRGB(255, 255, 255)
  608. UserName.TextScaled = true
  609. UserName.TextSize = 14.000
  610. UserName.TextWrapped = true
  611. UserName.TextXAlignment = Enum.TextXAlignment.Left
  612.  
  613. -- Add system clock
  614. local SystemClock = Instance.new("TextLabel")
  615. SystemClock.Name = "SystemClock"
  616. SystemClock.Parent = Frame
  617. SystemClock.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  618. SystemClock.BackgroundTransparency = 1.000
  619. SystemClock.BorderColor3 = Color3.fromRGB(0, 0, 0)
  620. SystemClock.BorderSizePixel = 0
  621. SystemClock.Position = UDim2.new(0.75, 0, 0.95, 0)
  622. SystemClock.Size = UDim2.new(0.2, 0, 0.05, 0)
  623. SystemClock.ZIndex = 5
  624. SystemClock.Font = Enum.Font.SourceSansBold
  625. SystemClock.Text = "00:00:00"
  626. SystemClock.TextColor3 = Color3.fromRGB(255, 255, 255)
  627. SystemClock.TextScaled = true
  628. SystemClock.TextSize = 14.000
  629. SystemClock.TextWrapped = true
  630.  
  631. -- Update clock function
  632. local function updateClock()
  633. local date = os.date("*t")
  634. local hour = string.format("%02d", date.hour)
  635. local min = string.format("%02d", date.min)
  636. local sec = string.format("%02d", date.sec)
  637. SystemClock.Text = hour .. ":" .. min .. ":" .. sec
  638. end
  639.  
  640. -- Update clock every second
  641. spawn(function()
  642. while true do
  643. updateClock()
  644. wait(1)
  645. end
  646. end)
  647.  
  648. function WindowFunctinos:AddTabLabel(Label)
  649. local TabTitle = Instance.new("TextLabel")
  650. local UIAspectRatioConstraint = Instance.new("UIAspectRatioConstraint")
  651.  
  652. TabTitle.Name = "TabTitle"
  653. TabTitle.Parent = TabButtons
  654. TabTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  655. TabTitle.BackgroundTransparency = 1.000
  656. TabTitle.BorderColor3 = Color3.fromRGB(0, 0, 0)
  657. TabTitle.BorderSizePixel = 0
  658. TabTitle.Size = UDim2.new(0.949999988, 0, 0.5, 0)
  659. TabTitle.ZIndex = 5
  660. TabTitle.Font = Enum.Font.SourceSansSemibold
  661. TabTitle.Text = Label or "Home"
  662. TabTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  663. TabTitle.TextScaled = true
  664. TabTitle.TextSize = 14.000
  665. TabTitle.TextTransparency = 0.610
  666. TabTitle.TextWrapped = true
  667. TabTitle.TextXAlignment = Enum.TextXAlignment.Left
  668.  
  669. UIAspectRatioConstraint.Parent = TabTitle
  670. UIAspectRatioConstraint.AspectRatio = 7.000
  671. UIAspectRatioConstraint.AspectType = Enum.AspectType.ScaleWithParentSize
  672.  
  673. local funcs = {}
  674.  
  675. function funcs:Text(a)
  676. TabTitle.Text=tostring(a)
  677. end
  678.  
  679. function funcs:Delete()
  680. TabTitle:Destroy()
  681. end
  682.  
  683. return funcs
  684. end
  685.  
  686. function WindowFunctinos:AddTab(TabNameString,IconType)
  687. local TabFunctions ={}
  688. local TabButton = Instance.new("Frame")
  689. local UIAspectRatioConstraint = Instance.new("UIAspectRatioConstraint")
  690. local UICorner = Instance.new("UICorner")
  691. local Image = Instance.new("ImageLabel")
  692. local UICorner_2 = Instance.new("UICorner")
  693. local Label = Instance.new("TextLabel")
  694.  
  695. local cc = NEVERLOSE.Themes.MainColor
  696.  
  697. if cc == Color3.fromRGB(0, 172, 247) then
  698. cc = NEVERLOSE.Themes.BlackgroundColor
  699. end
  700.  
  701. TabButton.Name = "TabButton"
  702. TabButton.Parent = TabButtons
  703. TabButton.BackgroundColor3 = cc
  704. TabButton.BackgroundTransparency = 1
  705. TabButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
  706. TabButton.BorderSizePixel = 0
  707. TabButton.Size = UDim2.new(0.899999976, 0, 0.5, 0)
  708. TabButton.ZIndex = 5
  709.  
  710. UIAspectRatioConstraint.Parent = TabButton
  711. UIAspectRatioConstraint.AspectRatio = 4.000
  712. UIAspectRatioConstraint.AspectType = Enum.AspectType.ScaleWithParentSize
  713.  
  714. UICorner.CornerRadius = UDim.new(0, 3)
  715. UICorner.Parent = TabButton
  716.  
  717. Image.Name = "Image"
  718. Image.Parent = TabButton
  719. Image.AnchorPoint = Vector2.new(0, 0.5)
  720. Image.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  721. Image.BackgroundTransparency = 1.000
  722. Image.BorderColor3 = Color3.fromRGB(0, 0, 0)
  723. Image.BorderSizePixel = 0
  724. Image.Position = UDim2.new(0.0149999997, 0, 0.5, 0)
  725. Image.Size = UDim2.new(0.850000024, 0, 0.800000012, 0)
  726. Image.SizeConstraint = Enum.SizeConstraint.RelativeYY
  727. Image.ZIndex = 5
  728.  
  729. Image.ImageColor3 = NEVERLOSE.Themes.MainColor
  730. Image.ImageRectOffset = Vector2.new(205, 565)
  731. Image.ImageRectSize = Vector2.new(35, 35)
  732.  
  733. GetImageData(tostring(IconType),Image)
  734.  
  735. UICorner_2.CornerRadius = UDim.new(0, 3)
  736. UICorner_2.Parent = Image
  737.  
  738. Label.Name = "Label"
  739. Label.Parent = TabButton
  740. Label.AnchorPoint = Vector2.new(0.5, 0.5)
  741. Label.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  742. Label.BackgroundTransparency = 1.000
  743. Label.BorderColor3 = Color3.fromRGB(0, 0, 0)
  744. Label.BorderSizePixel = 0
  745. Label.Position = UDim2.new(0.640507042, 0, 0.500000238, 0)
  746. Label.Size = UDim2.new(0.718986034, 0, 0.600000024, 0)
  747. Label.ZIndex = 5
  748. Label.Font = Enum.Font.SourceSansBold
  749. Label.Text = TabNameString or "Index.json"
  750. Label.TextColor3 = Color3.fromRGB(255, 255, 255)
  751. Label.TextScaled = true
  752. Label.TextSize = 14.000
  753. Label.TextWrapped = true
  754. Label.TextXAlignment = Enum.TextXAlignment.Left
  755. Label.TextYAlignment = Enum.TextYAlignment.Top
  756.  
  757. local Tab = Instance.new("Frame")
  758. local Left = Instance.new("ScrollingFrame")
  759. local UIListLayout = Instance.new("UIListLayout")
  760. local Right = Instance.new("ScrollingFrame")
  761. local UIListLayout_2 = Instance.new("UIListLayout")
  762.  
  763. Tab.Name = "Tab"
  764. Tab.Parent = TabHose
  765. Tab.AnchorPoint = Vector2.new(0.5, 0.5)
  766. Tab.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  767. Tab.BackgroundTransparency = 1.000
  768. Tab.BorderColor3 = Color3.fromRGB(0, 0, 0)
  769. Tab.BorderSizePixel = 0
  770. Tab.ClipsDescendants = true
  771. Tab.Position = UDim2.new(0.5, 0, 0.5, 0)
  772. Tab.Size = UDim2.new(0.99000001, 0, 0.99000001, 0)
  773. Tab.ZIndex = 6
  774.  
  775. Left.Name = "Left"
  776. Left.Parent = Tab
  777. Left.Active = true
  778. Left.AnchorPoint = Vector2.new(0, 0.5)
  779. Left.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  780. Left.BackgroundTransparency = 1.000
  781. Left.BorderColor3 = Color3.fromRGB(0, 0, 0)
  782. Left.BorderSizePixel = 0
  783. Left.ClipsDescendants = false
  784. Left.Position = UDim2.new(0, 0, 0.5, 0)
  785. Left.Size = UDim2.new(0.499000001, 0, 0.980000019, 0)
  786. Left.ZIndex = 5
  787. Left.ScrollBarThickness = 0
  788. Left.VerticalScrollBarPosition = Enum.VerticalScrollBarPosition.Left
  789.  
  790. UIListLayout.Parent = Left
  791. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  792. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  793. UIListLayout.Padding = UDim.new(0, 5)
  794.  
  795. Right.Name = "Right"
  796. Right.Parent = Tab
  797. Right.Active = true
  798. Right.AnchorPoint = Vector2.new(1, 0.5)
  799. Right.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  800. Right.BackgroundTransparency = 1.000
  801. Right.BorderColor3 = Color3.fromRGB(0, 0, 0)
  802. Right.BorderSizePixel = 0
  803. Right.ClipsDescendants = false
  804. Right.Position = UDim2.new(1, 0, 0.5, 0)
  805. Right.Size = UDim2.new(0.499000001, 0, 0.980000019, 0)
  806. Right.ZIndex = 5
  807. Right.ScrollBarThickness = 0
  808.  
  809. UIListLayout_2.Parent = Right
  810. UIListLayout_2.HorizontalAlignment = Enum.HorizontalAlignment.Center
  811. UIListLayout_2.SortOrder = Enum.SortOrder.LayoutOrder
  812. UIListLayout_2.Padding = UDim.new(0, 5)
  813.  
  814. scrolling_connect(Right)
  815. scrolling_connect(Left)
  816.  
  817. local function bedisea()
  818. if headd2text then
  819. TweenService:Create(headd2text,TweenInfo.new(.1),{
  820. TextTransparency = 0.1,
  821. TextStrokeTransparency=.95
  822. }):Play()
  823. task.wait(.11)
  824. TweenService:Create(headd2text,TweenInfo.new(.1),{
  825. TextTransparency = 0,
  826. TextStrokeTransparency=.9
  827. }):Play()
  828. end
  829. end
  830.  
  831. local function tabcall(val,bas)
  832. if val then
  833.  
  834. if not Tab.Visible then
  835. task.spawn(bedisea)
  836. Tab.Position=UDim2.new(0.5,0,0,0)
  837. Tab.Size=UDim2.new(0.85, 0, 0, 0)
  838. end
  839.  
  840. Tab.Visible=true
  841. TweenService:Create(Tab,TweenInfo.new(.3,Enum.EasingStyle.Quint,Enum.EasingDirection.Out),{Position = UDim2.new(0.5, 0, 0.5, 0)}):Play()
  842. TweenService:Create(Tab,TweenInfo.new(.75,Enum.EasingStyle.Quint,Enum.EasingDirection.Out),{Size = UDim2.new(0.99000001, 0, 0.99000001, 0)}):Play()
  843. TweenService:Create(TabButton,TweenInfo.new(0.3),{BackgroundTransparency=0.6}):Play()
  844. else
  845. Tab.Visible=false
  846. TweenService:Create(Tab,TweenInfo.new(.5),{Position = UDim2.new(0.5, 0, 1.5, 0)}):Play()
  847. TweenService:Create(TabButton,TweenInfo.new(0.3),{BackgroundTransparency=1}):Play()
  848. end
  849. end
  850.  
  851. if #Tabs==0 then
  852. tabcall(true,0)
  853. else
  854. tabcall(false,0)
  855. end
  856.  
  857. table.insert(Tabs,{Tab,tabcall})
  858.  
  859. cretate_button(TabButton).MouseButton1Click:Connect(function()
  860. for i,v in ipairs(Tabs) do
  861. if v[1]==Tab then
  862. v[2](true,0.4)
  863. task.wait()
  864. else
  865. v[2](false,0.4)
  866. end
  867. end
  868. end)
  869.  
  870. function TabFunctions:AddSection(SectionName,parentname)
  871. parentname = parentname or "left"
  872.  
  873. local Section = Instance.new("Frame")
  874. local UICorner = Instance.new("UICorner")
  875. local UIStroke = Instance.new("UIStroke")
  876. local Header = Instance.new("TextLabel")
  877. local UIListLayout = Instance.new("UIListLayout")
  878. local lay = Instance.new("Frame")
  879. local UICorner_2 = Instance.new("UICorner")
  880.  
  881. Section.Name = "Section"
  882. Section.Parent = (parentname=="left"and Left) or (parentname=="right"and Right) or nil
  883.  
  884. Section.BackgroundColor3 = NEVERLOSE.Themes.SectionColor
  885. Section.BorderColor3 = Color3.fromRGB(0, 0, 0)
  886. Section.BorderSizePixel = 0
  887. Section.Size = UDim2.new(0.970000029, 0, 0, 0)
  888. Section.ZIndex = 5
  889.  
  890. UICorner.CornerRadius = UDim.new(0, 3)
  891. UICorner.Parent = Section
  892.  
  893. UIStroke.Color = NEVERLOSE.Themes.StrokeColor
  894. UIStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  895. UIStroke.Parent = Section
  896.  
  897. Header.Name = "Header"
  898. Header.Parent = Section
  899. Header.AnchorPoint = Vector2.new(0.5, 0)
  900. Header.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  901. Header.BackgroundTransparency = 1.000
  902. Header.BorderColor3 = Color3.fromRGB(0, 0, 0)
  903. Header.BorderSizePixel = 0
  904. Header.Position = UDim2.new(0.5, 0, 0.100000001, 0)
  905. Header.Size = UDim2.new(0.949999988, 0, 0, 15)
  906. Header.ZIndex = 5
  907. Header.Font = Enum.Font.SourceSansSemibold
  908. Header.Text = SectionName or "Section"
  909. Header.TextColor3 = Color3.fromRGB(255, 255, 255)
  910. Header.TextScaled = true
  911. Header.TextSize = 14.000
  912. Header.TextWrapped = true
  913. Header.TextXAlignment = Enum.TextXAlignment.Left
  914. Header.TextTransparency=1
  915. TweenService:Create(Header,TweenInfo.new(0.3),{TextTransparency=0}):Play()
  916.  
  917. UIListLayout.Parent = Section
  918. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  919. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  920. UIListLayout.Padding = UDim.new(0, 4)
  921.  
  922. lay.Name = "lay"
  923. lay.Parent = Section
  924. lay.BackgroundColor3 = NEVERLOSE.Themes.StrokeColor
  925. lay.BorderColor3 = Color3.fromRGB(0, 0, 0)
  926. lay.BorderSizePixel = 0
  927. lay.Size = UDim2.new(0.970000029, 0, 0, 2)
  928. lay.ZIndex = 5
  929. lay.BackgroundTransparency=1
  930. Section.BackgroundTransparency=1
  931. UIStroke.Transparency=1
  932.  
  933. TweenService:Create(lay,TweenInfo.new(1),{BackgroundTransparency=0}):Play()
  934. TweenService:Create(Section,TweenInfo.new(1),{BackgroundTransparency=0}):Play()
  935. TweenService:Create(UIStroke,TweenInfo.new(1),{Transparency=0}):Play()
  936.  
  937. local section_value = true
  938. UICorner_2.CornerRadius = UDim.new(0, 3)
  939. UICorner_2.Parent = lay
  940.  
  941. local function update_section_size(va)
  942. if not va then
  943. if Section.Visible and section_value then
  944. local a=math.ceil(1)
  945.  
  946. for i,v:Frame|TextLabel in ipairs(Section:GetChildren()) do
  947. if v:isA('Frame') or v:isA('TextLabel') then
  948. if v.Visible then
  949. pcall(function()
  950. a=a+v.AbsoluteSize.Y*1.2
  951. end)
  952. end
  953. end
  954. end
  955.  
  956. TweenService:Create(Section,TweenInfo.new(0.2),{Size=UDim2.new(0.97,0,0,15+a)}):Play()
  957. end
  958. else
  959. local a=math.ceil(1)
  960.  
  961. for i,v:Frame|TextLabel in ipairs(Section:GetChildren()) do
  962. if v:isA('Frame') or v:isA('TextLabel') then
  963. if v.Visible then
  964. pcall(function()
  965. a=a+v.AbsoluteSize.Y*1.2
  966. end)
  967. end
  968. end
  969. end
  970.  
  971. TweenService:Create(Section,TweenInfo.new(0.2),{Size=UDim2.new(0.97,0,0,15+a)}):Play()
  972. end
  973. end
  974.  
  975. table.insert(NEVERLOSE.auto_function,update_section_size)
  976.  
  977. Section:GetPropertyChangedSignal('Size'):Connect(function()
  978. if Section.Size.Y.Offset <= 1 then
  979. Section.Visible=false
  980. else
  981. Section.Visible=true
  982. end
  983. end)
  984.  
  985. Section.InputBegan:Connect(update_section_size)
  986.  
  987. update_section_size()
  988.  
  989. local sectionfunc = {}
  990.  
  991. function sectionfunc:AddButton(ButtonName,callback)
  992. callback=callback or function()
  993.  
  994. end
  995.  
  996. local Button = Instance.new("Frame")
  997. local UIAspectRatioConstraint = Instance.new("UIAspectRatioConstraint")
  998. local UICorner = Instance.new("UICorner")
  999. local LabelText = Instance.new("TextLabel")
  1000. local UIStroke = Instance.new("UIStroke")
  1001.  
  1002. Button.Name = "Button"
  1003. Button.Parent = Section
  1004. Button.BackgroundColor3 = NEVERLOSE.Themes.ButtonBlackgroundColor
  1005. Button.BackgroundTransparency = 0.550
  1006. Button.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1007. Button.BorderSizePixel = 0
  1008. Button.Position = UDim2.new(0.0500000231, 0, 0.601014614, 0)
  1009. Button.Size = UDim2.new(0.899999976, 0, -0.351014495, 0)
  1010. Button.ZIndex = 5
  1011.  
  1012. UIAspectRatioConstraint.Parent = Button
  1013. UIAspectRatioConstraint.AspectRatio = 7.000
  1014. UIAspectRatioConstraint.AspectType = Enum.AspectType.ScaleWithParentSize
  1015.  
  1016. UICorner.CornerRadius = UDim.new(0, 3)
  1017. UICorner.Parent = Button
  1018.  
  1019. LabelText.Name = "LabelText"
  1020. LabelText.Parent = Button
  1021. LabelText.AnchorPoint = Vector2.new(0.5, 0.5)
  1022. LabelText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1023. LabelText.BackgroundTransparency = 1.000
  1024. LabelText.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1025. LabelText.BorderSizePixel = 0
  1026. LabelText.Position = UDim2.new(0.5, 0, 0.5, 0)
  1027. LabelText.Size = UDim2.new(0.899999976, 0, 0.75, 0)
  1028. LabelText.ZIndex = 6
  1029. LabelText.Font = Enum.Font.SourceSansSemibold
  1030. LabelText.Text = ButtonName or"Kill all"
  1031. LabelText.TextColor3 = Color3.fromRGB(255, 255, 255)
  1032. LabelText.TextScaled = true
  1033. LabelText.TextSize = 14.000
  1034. LabelText.TextTransparency = 0.300
  1035. LabelText.TextWrapped = true
  1036.  
  1037. UIStroke.Thickness = 0.500
  1038. UIStroke.Color = NEVERLOSE.Themes.StrokeColor
  1039. UIStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  1040. UIStroke.Parent = Button
  1041.  
  1042. cretate_button(Button).MouseButton1Click:Connect(function()
  1043. callback()
  1044. end)
  1045.  
  1046. Button.MouseEnter:Connect(function()
  1047. TweenService:Create(LabelText,TweenInfo.new(0.1),{TextTransparency=0}):Play()
  1048. end)
  1049.  
  1050. Button.MouseLeave:Connect(function()
  1051. TweenService:Create(LabelText,TweenInfo.new(0.1),{TextTransparency=0.3}):Play()
  1052. end)
  1053.  
  1054. local button_func={}
  1055. function button_func:Fire(...)
  1056. callback(...)
  1057. end
  1058.  
  1059. function button_func:Text(a)
  1060. LabelText.Text=tostring(a)
  1061. end
  1062.  
  1063. return button_func
  1064. end
  1065.  
  1066. function sectionfunc:AddLabel(LabelNameString)
  1067. local Label = Instance.new("Frame")
  1068. local UIAspectRatioConstraint = Instance.new("UIAspectRatioConstraint")
  1069. local UICorner = Instance.new("UICorner")
  1070. local LabelText = Instance.new("TextLabel")
  1071.  
  1072. Label.Name = "Label"
  1073. Label.Parent = Section
  1074. Label.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1075. Label.BackgroundTransparency = 1.000
  1076. Label.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1077. Label.BorderSizePixel = 0
  1078. Label.Size = UDim2.new(0.899999976, 0, 0.5, 0)
  1079. Label.ZIndex = 5
  1080.  
  1081. UIAspectRatioConstraint.Parent = Label
  1082. UIAspectRatioConstraint.AspectRatio = 6.000
  1083. UIAspectRatioConstraint.AspectType = Enum.AspectType.ScaleWithParentSize
  1084.  
  1085. UICorner.CornerRadius = UDim.new(0, 3)
  1086. UICorner.Parent = Label
  1087.  
  1088. LabelText.Name = "LabelText"
  1089. LabelText.Parent = Label
  1090. LabelText.AnchorPoint = Vector2.new(0.5, 0.5)
  1091. LabelText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1092. LabelText.BackgroundTransparency = 1.000
  1093. LabelText.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1094. LabelText.BorderSizePixel = 0
  1095. LabelText.Position = UDim2.new(0.5, 0, 0.5, 0)
  1096. LabelText.Size = UDim2.new(1, 0, 0.649999976, 0)
  1097. LabelText.ZIndex = 6
  1098. LabelText.Font = Enum.Font.SourceSansSemibold
  1099. LabelText.Text = LabelNameString or"Label"
  1100. LabelText.TextColor3 = Color3.fromRGB(255, 255, 255)
  1101. LabelText.TextScaled = true
  1102. LabelText.TextSize = 14.000
  1103. LabelText.TextTransparency = 0.300
  1104. LabelText.TextWrapped = true
  1105. LabelText.TextXAlignment = Enum.TextXAlignment.Left
  1106. update_section_size(
  1107.  
  1108. )
  1109.  
  1110. LabelText:GetPropertyChangedSignal('TextTransparency'):Connect(function()
  1111. if LabelText.TextTransparency <= 0.99 then
  1112. Label.Visible=true
  1113. else
  1114. Label.Visible=false
  1115. end
  1116. end)
  1117.  
  1118. local button_func = {}
  1119. function button_func:Text(a)
  1120. LabelText.Text=tostring(a)
  1121. end
  1122.  
  1123. function button_func:Status(val)
  1124. if val then
  1125. TweenService:Create(Label,TweenInfo.new(1,Enum.EasingStyle.Quint),{Size = UDim2.new(0.899999976, 0, 0.5, 0)}):Play()
  1126. TweenService:Create(UIAspectRatioConstraint,TweenInfo.new(.1,Enum.EasingStyle.Quint),{AspectRatio = 6}):Play()
  1127. TweenService:Create(LabelText,TweenInfo.new(0.7,Enum.EasingStyle.Quint),{TextTransparency = 0.3}):Play()
  1128. else
  1129. TweenService:Create(Label,TweenInfo.new(.8,Enum.EasingStyle.Quint),{Size = UDim2.new(0,0,0,0)}):Play()
  1130. TweenService:Create(LabelText,TweenInfo.new(1,Enum.EasingStyle.Quint),{TextTransparency = 1}):Play()
  1131. end
  1132. end
  1133.  
  1134. return button_func
  1135. end
  1136.  
  1137. function sectionfunc:AddToggle(ToggleName,Default,callback)
  1138. callback=callback or function()
  1139.  
  1140. end
  1141.  
  1142. local Toggle = Instance.new("Frame")
  1143. local UIAspectRatioConstraint = Instance.new("UIAspectRatioConstraint")
  1144. local UICorner = Instance.new("UICorner")
  1145. local LabelText = Instance.new("TextLabel")
  1146. local Effect = Instance.new("Frame")
  1147. local UICorner_2 = Instance.new("UICorner")
  1148. local Icon = Instance.new("Frame")
  1149. local UICorner_3 = Instance.new("UICorner")
  1150.  
  1151. Toggle.Name = "Toggle"
  1152. Toggle.Parent = Section
  1153. Toggle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1154. Toggle.BackgroundTransparency = 1.000
  1155. Toggle.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1156. Toggle.BorderSizePixel = 0
  1157. Toggle.Position = UDim2.new(0.0500000231, 0, 0.601014614, 0)
  1158. Toggle.Size = UDim2.new(0.899999976, 0, -0.351014495, 0)
  1159. Toggle.ZIndex = 5
  1160.  
  1161. UIAspectRatioConstraint.Parent = Toggle
  1162. UIAspectRatioConstraint.AspectRatio = 7.000
  1163. UIAspectRatioConstraint.AspectType = Enum.AspectType.ScaleWithParentSize
  1164.  
  1165. UICorner.CornerRadius = UDim.new(0, 3)
  1166. UICorner.Parent = Toggle
  1167.  
  1168. LabelText.Name = "LabelText"
  1169. LabelText.Parent = Toggle
  1170. LabelText.AnchorPoint = Vector2.new(0.5, 0.5)
  1171. LabelText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1172. LabelText.BackgroundTransparency = 1.000
  1173. LabelText.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1174. LabelText.BorderSizePixel = 0
  1175. LabelText.Position = UDim2.new(0.38587454, 0, 0.499999583, 0)
  1176. LabelText.Size = UDim2.new(0.772000015, 0, 0.75, 0)
  1177. LabelText.ZIndex = 6
  1178. LabelText.Font = Enum.Font.SourceSansSemibold
  1179. LabelText.Text = ToggleName or "Label-Test"
  1180. LabelText.TextColor3 = Color3.fromRGB(255, 255, 255)
  1181. LabelText.TextScaled = true
  1182. LabelText.TextSize = 14.000
  1183. LabelText.TextWrapped = true
  1184. LabelText.TextXAlignment = Enum.TextXAlignment.Left
  1185.  
  1186. Effect.Name = "Effect"
  1187. Effect.Parent = Toggle
  1188. Effect.AnchorPoint = Vector2.new(0, 0.5)
  1189. Effect.BackgroundColor3 = NEVERLOSE.Themes.MainColorDrop
  1190. Effect.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1191. Effect.BorderSizePixel = 0
  1192. Effect.Position = UDim2.new(0.800000012, 0, 0.5, 0)
  1193. Effect.Size = UDim2.new(0.150000006, 0, 0.5, 0)
  1194. Effect.ZIndex = 6
  1195.  
  1196. UICorner_2.CornerRadius = UDim.new(0.5, 0)
  1197. UICorner_2.Parent = Effect
  1198.  
  1199. Icon.Name = "Icon"
  1200. Icon.Parent = Effect
  1201. Icon.AnchorPoint = Vector2.new(0.5, 0.5)
  1202. Icon.BackgroundColor3 = NEVERLOSE.Themes.MainColor
  1203. Icon.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1204. Icon.BorderSizePixel = 0
  1205. Icon.Position = UDim2.new(0.75, 0, 0.5, 0)
  1206. Icon.Size = UDim2.new(1, 0, 1, 0)
  1207. Icon.SizeConstraint = Enum.SizeConstraint.RelativeYY
  1208. Icon.ZIndex = 7
  1209.  
  1210. UICorner_3.CornerRadius = UDim.new(0.5, 0)
  1211. UICorner_3.Parent = Icon
  1212.  
  1213. local function toggleval(val,timea)
  1214. if val then
  1215. TweenService:Create(LabelText,TweenInfo.new(timea),{TextTransparency=0}):Play()
  1216. TweenService:Create(Icon,TweenInfo.new(timea),{Position=UDim2.new(0.75,0,0.5,0),BackgroundColor3=NEVERLOSE.Themes.MainColor}):Play();
  1217. else
  1218. TweenService:Create(LabelText,TweenInfo.new(timea),{TextTransparency=0.3}):Play()
  1219. TweenService:Create(Icon,TweenInfo.new(timea),{Position=UDim2.new(0.25,0,0.5,0),BackgroundColor3=Color3.fromRGB(194, 194, 194)}):Play();
  1220. end
  1221. end
  1222.  
  1223. toggleval(Default,0)
  1224.  
  1225. cretate_button(Toggle).MouseButton1Click:Connect(function()
  1226. Default=not Default
  1227. toggleval(Default,0.1)
  1228. callback(Default)
  1229. end)
  1230.  
  1231. local button_func = {}
  1232. function button_func:Text(a)
  1233. LabelText.Text=tostring(a)
  1234. end
  1235.  
  1236. function button_func:Value(a)
  1237. Default=a
  1238. toggleval(a,0.1)
  1239. callback(a)
  1240. end
  1241.  
  1242. function button_func:Status(val)
  1243. if val then
  1244. local dex = (Default==true and 0) or .3
  1245. TweenService:Create(Toggle,TweenInfo.new(.5,Enum.EasingStyle.Quint),{Size = UDim2.new(0.899999976, 0, -0.351014495, 0)}):Play()
  1246. TweenService:Create(LabelText,TweenInfo.new(1,Enum.EasingStyle.Quint),{TextTransparency = dex}):Play()
  1247.  
  1248. TweenService:Create(Effect,TweenInfo.new(0.4),{BackgroundTransparency=0}):Play()
  1249. TweenService:Create(Icon,TweenInfo.new(0.4),{BackgroundTransparency=0}):Play()
  1250.  
  1251. else
  1252. TweenService:Create(Effect,TweenInfo.new(0.4),{BackgroundTransparency=1}):Play()
  1253. TweenService:Create(Icon,TweenInfo.new(0.4),{BackgroundTransparency=1}):Play()
  1254.  
  1255. TweenService:Create(Toggle,TweenInfo.new(1.5,Enum.EasingStyle.Quint),{Size = UDim2.new(0,0,0,0)}):Play()
  1256. TweenService:Create(LabelText,TweenInfo.new(1,Enum.EasingStyle.Quint),{TextTransparency = 1}):Play()
  1257. end
  1258. end
  1259.  
  1260. return button_func
  1261.  
  1262. end
  1263.  
  1264. function sectionfunc:AddKeybind(KeybindNameString, Default, callback)
  1265. callback = callback or function() end
  1266.  
  1267. local function gt(a)
  1268. if not a then
  1269. return "None"
  1270. else
  1271. return a.Name
  1272. end
  1273. end
  1274.  
  1275. local Keybind = Instance.new("Frame")
  1276. local UIAspectRatioConstraint = Instance.new("UIAspectRatioConstraint")
  1277. local UICorner = Instance.new("UICorner")
  1278. local LabelText = Instance.new("TextLabel")
  1279. local BrindText = Instance.new("Frame")
  1280. local UICorner_2 = Instance.new("UICorner")
  1281. local UIStroke = Instance.new("UIStroke")
  1282. local ValueText = Instance.new("TextLabel")
  1283.  
  1284. Keybind.Name = "Keybind"
  1285. Keybind.Parent = Section
  1286. Keybind.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1287. Keybind.BackgroundTransparency = 1.000
  1288. Keybind.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1289. Keybind.BorderSizePixel = 0
  1290. Keybind.Position = UDim2.new(0.0500000231, 0, 0.601014614, 0)
  1291. Keybind.Size = UDim2.new(0.899999976, 0, -0.351014495, 0)
  1292. Keybind.ZIndex = 5
  1293.  
  1294. UIAspectRatioConstraint.Parent = Keybind
  1295. UIAspectRatioConstraint.AspectRatio = 7.000
  1296. UIAspectRatioConstraint.AspectType = Enum.AspectType.ScaleWithParentSize
  1297.  
  1298. UICorner.CornerRadius = UDim.new(0, 3)
  1299. UICorner.Parent = Keybind
  1300.  
  1301. LabelText.Name = "LabelText"
  1302. LabelText.Parent = Keybind
  1303. LabelText.AnchorPoint = Vector2.new(0.5, 0.5)
  1304. LabelText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1305. LabelText.BackgroundTransparency = 1.000
  1306. LabelText.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1307. LabelText.BorderSizePixel = 0
  1308. LabelText.Position = UDim2.new(0.296665907, 0, 0.499999106, 0)
  1309. LabelText.Size = UDim2.new(0.593582749, 0, 0.75, 0)
  1310. LabelText.ZIndex = 6
  1311. LabelText.Font = Enum.Font.SourceSansSemibold
  1312. LabelText.Text = KeybindNameString or ''
  1313. LabelText.TextColor3 = Color3.fromRGB(255, 255, 255)
  1314. LabelText.TextScaled = true
  1315. LabelText.TextSize = 14.000
  1316. LabelText.TextWrapped = true
  1317. LabelText.TextXAlignment = Enum.TextXAlignment.Left
  1318. LabelText.TextTransparency = .3
  1319.  
  1320. BrindText.Name = "BrindText"
  1321. BrindText.Parent = Keybind
  1322. BrindText.AnchorPoint = Vector2.new(1, 0.5)
  1323.  
  1324. BrindText.BackgroundColor3 = Color3.fromRGB(26, 26, 26)
  1325. BrindText.BackgroundTransparency = 0.500
  1326. BrindText.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1327. BrindText.BorderSizePixel = 0
  1328. BrindText.Position = UDim2.new(0.998, 0, 0.5, 0)
  1329. BrindText.Size = UDim2.new(0.150000006, 0, 0.5, 0)
  1330. BrindText.ZIndex = 6
  1331.  
  1332. UICorner_2.CornerRadius = UDim.new(0, 3)
  1333. UICorner_2.Parent = BrindText
  1334.  
  1335. UIStroke.Thickness = 0.500
  1336. UIStroke.Color = NEVERLOSE.Themes.StrokeColor
  1337. UIStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  1338. UIStroke.Parent = BrindText
  1339.  
  1340. ValueText.Name = "ValueText"
  1341. ValueText.Parent = BrindText
  1342. ValueText.AnchorPoint = Vector2.new(0.5, 0.5)
  1343. ValueText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1344. ValueText.BackgroundTransparency = 1.000
  1345. ValueText.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1346. ValueText.BorderSizePixel = 0
  1347. ValueText.Position = UDim2.new(0.5, 0, 0.5, 0)
  1348. ValueText.Size = UDim2.new(0.980000019, 0, 0.998000026, 0)
  1349. ValueText.ZIndex = 6
  1350. ValueText.Font = Enum.Font.SourceSansSemibold
  1351. ValueText.Text = gt(Default)
  1352. ValueText.TextColor3 = Color3.fromRGB(255, 255, 255)
  1353. ValueText.TextScaled = true
  1354. ValueText.TextSize = 14.000
  1355. ValueText.TextWrapped = true
  1356.  
  1357. local function UpdateText()
  1358. local size = TextService:GetTextSize(ValueText.Text, ValueText.TextSize, ValueText.Font, Vector2.new(math.huge, math.huge))
  1359. TweenService:Create(BrindText, TweenInfo.new(0.2), {Size = UDim2.new(0, size.X + 1, 0.550000012, 0)}):Play()
  1360. end
  1361.  
  1362. -- Add input detection for the keybind
  1363. local function HandleInput(input)
  1364. if not Default then return end
  1365.  
  1366. if input.UserInputType == Enum.UserInputType.Keyboard and input.KeyCode == Default then
  1367. callback(Default)
  1368. end
  1369. end
  1370.  
  1371. -- Connect the input handler
  1372. InputService.InputBegan:Connect(HandleInput)
  1373.  
  1374. local Binding = false
  1375. cretate_button(Keybind).MouseButton1Click:Connect(function()
  1376. if Binding then return end
  1377.  
  1378. Binding = true
  1379. local targetloadded = nil
  1380.  
  1381. local hook = InputService.InputBegan:Connect(function(input)
  1382. if input.UserInputType == Enum.UserInputType.Keyboard then
  1383. if input.KeyCode ~= Enum.KeyCode.Unknown and
  1384. input.KeyCode ~= Enum.KeyCode.Escape then
  1385. targetloadded = input.KeyCode
  1386. elseif input.KeyCode == Enum.KeyCode.Escape then
  1387. targetloadded = nil
  1388. end
  1389. end
  1390. end)
  1391.  
  1392. TweenService:Create(LabelText, TweenInfo.new(0.3), {TextTransparency = 0}):Play()
  1393. ValueText.Text = "..."
  1394. repeat
  1395. task.wait()
  1396. UpdateText()
  1397. until targetloadded ~= nil or not Binding
  1398.  
  1399. TweenService:Create(LabelText, TweenInfo.new(0.3), {TextTransparency = 0.3}):Play()
  1400. Binding = false
  1401.  
  1402. if hook then
  1403. hook:Disconnect()
  1404. end
  1405.  
  1406. if targetloadded then
  1407. ValueText.Text = gt(targetloadded)
  1408. Default = targetloadded
  1409. UpdateText()
  1410. callback(targetloadded)
  1411. else
  1412. ValueText.Text = gt(Default)
  1413. UpdateText()
  1414. end
  1415. end)
  1416.  
  1417. UpdateText()
  1418.  
  1419. local KeybindFunctions = {}
  1420.  
  1421. function KeybindFunctions:Text(a)
  1422. LabelText.Text = tostring(a)
  1423. UpdateText()
  1424. end
  1425.  
  1426. function KeybindFunctions:Value(l)
  1427. ValueText.Text = gt(l)
  1428. Default = l
  1429. UpdateText()
  1430. callback(l)
  1431. end
  1432.  
  1433. return KeybindFunctions
  1434. end
  1435.  
  1436. function sectionfunc:AddSlider(SliderNameString,Min,Max,Default,callback)
  1437. Min=Min or 1
  1438. Max=Max or 100
  1439. Default=Default or Min
  1440. callback=callback or function()
  1441.  
  1442. end
  1443.  
  1444. local Slider = Instance.new("Frame")
  1445. local UIAspectRatioConstraint = Instance.new("UIAspectRatioConstraint")
  1446. local UICorner = Instance.new("UICorner")
  1447. local LabelText = Instance.new("TextLabel")
  1448. local Box = Instance.new("Frame")
  1449. local UICorner_2 = Instance.new("UICorner")
  1450. local UIStroke = Instance.new("UIStroke")
  1451. local ValueText = Instance.new("TextLabel")
  1452. local MoveFrame = Instance.new("Frame")
  1453. local UICorner_3 = Instance.new("UICorner")
  1454. local Inline = Instance.new("Frame")
  1455. local UICorner_4 = Instance.new("UICorner")
  1456. local Cir = Instance.new("Frame")
  1457. local UICorner_5 = Instance.new("UICorner")
  1458. local Frame = Instance.new("Frame")
  1459.  
  1460. Slider.Name = "Slider"
  1461. Slider.Parent = Section
  1462. Slider.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1463. Slider.BackgroundTransparency = 1.000
  1464. Slider.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1465. Slider.BorderSizePixel = 0
  1466. Slider.Position = UDim2.new(0.0500000231, 0, 0.601014614, 0)
  1467. Slider.Size = UDim2.new(0.899999976, 0, -0.351014495, 0)
  1468. Slider.ZIndex = 5
  1469.  
  1470. UIAspectRatioConstraint.Parent = Slider
  1471. UIAspectRatioConstraint.AspectRatio = 7.000
  1472. UIAspectRatioConstraint.AspectType = Enum.AspectType.ScaleWithParentSize
  1473.  
  1474. UICorner.CornerRadius = UDim.new(0, 3)
  1475. UICorner.Parent = Slider
  1476.  
  1477. LabelText.Name = "LabelText"
  1478. LabelText.Parent = Slider
  1479. LabelText.AnchorPoint = Vector2.new(0.5, 0.5)
  1480. LabelText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1481. LabelText.BackgroundTransparency = 1.000
  1482. LabelText.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1483. LabelText.BorderSizePixel = 0
  1484. LabelText.Position = UDim2.new(0.238462642, 0, 0.499999374, 0)
  1485. LabelText.Size = UDim2.new(0.477176398, 0, 0.75, 0)
  1486. LabelText.ZIndex = 6
  1487. LabelText.Font = Enum.Font.SourceSansSemibold
  1488. LabelText.Text = SliderNameString or "Control"
  1489. LabelText.TextColor3 = Color3.fromRGB(255, 255, 255)
  1490. LabelText.TextScaled = true
  1491. LabelText.TextSize = 14.000
  1492. LabelText.TextWrapped = true
  1493. LabelText.TextXAlignment = Enum.TextXAlignment.Left
  1494. LabelText.TextTransparency=.3
  1495.  
  1496. Box.Name = "Box"
  1497. Box.Parent = Slider
  1498. Box.AnchorPoint = Vector2.new(0, 0.5)
  1499. Box.BackgroundColor3 = NEVERLOSE.Themes.ButtonBlackgroundColor
  1500. Box.BackgroundTransparency = 0.100
  1501. Box.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1502. Box.BorderSizePixel = 0
  1503. Box.Position = UDim2.new(0.800000012, 0, 0.5, 0)
  1504. Box.Size = UDim2.new(0.150000006, 0, 0.5, 0)
  1505. Box.ZIndex = 6
  1506.  
  1507. UICorner_2.CornerRadius = UDim.new(0, 3)
  1508. UICorner_2.Parent = Box
  1509.  
  1510. UIStroke.Thickness = 0.500
  1511. UIStroke.Color = NEVERLOSE.Themes.StrokeColor
  1512. UIStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  1513. UIStroke.Parent = Box
  1514.  
  1515. ValueText.Name = "ValueText"
  1516. ValueText.Parent = Box
  1517. ValueText.AnchorPoint = Vector2.new(0.5, 0.5)
  1518. ValueText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1519. ValueText.BackgroundTransparency = 1.000
  1520. ValueText.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1521. ValueText.BorderSizePixel = 0
  1522. ValueText.Position = UDim2.new(0.5, 0, 0.5, 0)
  1523. ValueText.Size = UDim2.new(0.99000001, 0, 0.99000001, 0)
  1524. ValueText.ZIndex = 6
  1525. ValueText.Font = Enum.Font.SourceSansSemibold
  1526. ValueText.Text = tostring(Default)
  1527. ValueText.TextColor3 = Color3.fromRGB(255, 255, 255)
  1528. ValueText.TextScaled = true
  1529. ValueText.TextSize = 14.000
  1530. ValueText.TextWrapped = true
  1531.  
  1532. MoveFrame.Name = "MoveFrame"
  1533. MoveFrame.Parent = Slider
  1534. MoveFrame.AnchorPoint = Vector2.new(0, 0.5)
  1535. MoveFrame.BackgroundColor3 = NEVERLOSE.Themes.MainColorDrop
  1536. MoveFrame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1537. MoveFrame.BorderSizePixel = 0
  1538. MoveFrame.ClipsDescendants = true
  1539. MoveFrame.Position = UDim2.new(0.477050841, 0, 0.50000006, 0)
  1540. MoveFrame.Size = UDim2.new(0.290949076, 0, 0.099999994, 0)
  1541. MoveFrame.ZIndex = 5
  1542.  
  1543. UICorner_3.CornerRadius = UDim.new(0, 3)
  1544. UICorner_3.Parent = MoveFrame
  1545.  
  1546. Inline.Name = "Inline"
  1547. Inline.Parent = MoveFrame
  1548. Inline.AnchorPoint = Vector2.new(0, 0.5)
  1549. Inline.BackgroundColor3 = NEVERLOSE.Themes.MainColor
  1550. Inline.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1551. Inline.BorderSizePixel = 0
  1552. Inline.Position = UDim2.new(0, 0, 0.5, 0)
  1553. Inline.Size = UDim2.new((Default/Max), 0, 1, 0)
  1554. Inline.ZIndex = 5
  1555.  
  1556. UICorner_4.CornerRadius = UDim.new(0, 3)
  1557. UICorner_4.Parent = Inline
  1558.  
  1559. Cir.Name = "Cir"
  1560. Cir.Parent = Inline
  1561. Cir.AnchorPoint = Vector2.new(1, 0.5)
  1562. Cir.BackgroundColor3 = NEVERLOSE.Themes.MainColor
  1563. Cir.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1564. Cir.BorderSizePixel = 0
  1565. Cir.Position = UDim2.new(1, 0, 0.5, 0)
  1566. Cir.Rotation = 0.010
  1567. Cir.Size = UDim2.new(3, 0, 3, 0)
  1568. Cir.SizeConstraint = Enum.SizeConstraint.RelativeYY
  1569. Cir.ZIndex = 5
  1570.  
  1571. UICorner_5.CornerRadius = UDim.new(0.5, 0)
  1572. UICorner_5.Parent = Cir
  1573.  
  1574. Frame.Parent = Slider
  1575. Frame.AnchorPoint = Vector2.new(0, 0.5)
  1576. Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1577. Frame.BackgroundTransparency = 1.000
  1578. Frame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1579. Frame.BorderSizePixel = 0
  1580. Frame.Position = UDim2.new(0.477050841, 0, 0.500000358, 0)
  1581. Frame.Size = UDim2.new(0.322948873, 0, 0.900000036, 0)
  1582. Frame.ZIndex = 5
  1583.  
  1584. local danger = false
  1585.  
  1586. local function update(Input)
  1587. local SizeScale = math.clamp((((Input.Position.X) - MoveFrame.AbsolutePosition.X) / MoveFrame.AbsoluteSize.X), 0, 1)
  1588. local Valuea = math.floor(((Max - Min) * SizeScale) + Min)
  1589. local Size = UDim2.fromScale(math.clamp(SizeScale+0.15,0,1), 1)
  1590. ValueText.Text = tostring(Valuea)
  1591. TweenService:Create(Inline,TweenInfo.new(0.1),{Size = Size}):Play()
  1592. callback(Valuea)
  1593. end
  1594.  
  1595. Frame.InputBegan:Connect(function(Input)
  1596. if Input.UserInputType == Enum.UserInputType.MouseButton1 or Input.UserInputType == Enum.UserInputType.Touch then
  1597. danger = true
  1598. update(Input)
  1599. TweenService:Create(LabelText,TweenInfo.new(0.1),{TextTransparency=0}):Play()
  1600. end
  1601. end)
  1602.  
  1603. Frame.InputEnded:Connect(function(Input)
  1604. if Input.UserInputType == Enum.UserInputType.MouseButton1 or Input.UserInputType == Enum.UserInputType.Touch then
  1605. danger = false
  1606. TweenService:Create(LabelText,TweenInfo.new(0.1),{TextTransparency=0.3}):Play()
  1607. end
  1608. end)
  1609.  
  1610. InputService.InputChanged:Connect(function(Input)
  1611. if danger then
  1612. if (Input.UserInputType==Enum.UserInputType.MouseMovement or Input.UserInputType==Enum.UserInputType.Touch) then
  1613. update(Input)
  1614. end
  1615. end
  1616. end)
  1617.  
  1618. local func={}
  1619.  
  1620. function func:Value(s)
  1621. ValueText.Text = tostring(s)
  1622. Inline.Size=UDim2.fromScale((s/Max),1)
  1623.  
  1624. callback(s)
  1625. end
  1626.  
  1627. function func:Text(t)
  1628. LabelText.Text=tostring(t)
  1629. end
  1630.  
  1631. update_section_size()
  1632. return func
  1633. end
  1634.  
  1635. function sectionfunc:AddDropdown(DropdownName,data,Default,callback)
  1636. data=data or {}
  1637. Default=Default or data[1]
  1638. callback=callback or function()
  1639.  
  1640. end
  1641.  
  1642. local Dropdown = Instance.new("Frame")
  1643. local UIAspectRatioConstraint = Instance.new("UIAspectRatioConstraint")
  1644. local UICorner = Instance.new("UICorner")
  1645. local LabelText = Instance.new("TextLabel")
  1646. local TopBar = Instance.new("Frame")
  1647. local UICorner_2 = Instance.new("UICorner")
  1648. local UIStroke = Instance.new("UIStroke")
  1649. local ValueText = Instance.new("TextLabel")
  1650. local Icon = Instance.new("TextLabel")
  1651. local DownBar = Instance.new("Frame")
  1652. local UICorner_3 = Instance.new("UICorner")
  1653. local UIStroke_2 = Instance.new("UIStroke")
  1654. local UIListLayout = Instance.new("UIListLayout")
  1655.  
  1656. Dropdown.Name = "Dropdown"
  1657. Dropdown.Parent = Section
  1658. Dropdown.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1659. Dropdown.BackgroundTransparency = 1.000
  1660. Dropdown.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1661. Dropdown.BorderSizePixel = 0
  1662. Dropdown.Position = UDim2.new(0.0500000231, 0, 0.601014614, 0)
  1663. Dropdown.Size = UDim2.new(0.899999976, 0, -0.351014495, 0)
  1664. Dropdown.ZIndex = 5
  1665.  
  1666. UIAspectRatioConstraint.Parent = Dropdown
  1667. UIAspectRatioConstraint.AspectRatio = 7.000
  1668. UIAspectRatioConstraint.AspectType = Enum.AspectType.ScaleWithParentSize
  1669.  
  1670. UICorner.CornerRadius = UDim.new(0, 3)
  1671. UICorner.Parent = Dropdown
  1672.  
  1673. LabelText.Name = "LabelText"
  1674. LabelText.Parent = Dropdown
  1675. LabelText.AnchorPoint = Vector2.new(0.5, 0.5)
  1676. LabelText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1677. LabelText.BackgroundTransparency = 1.000
  1678. LabelText.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1679. LabelText.BorderSizePixel = 0
  1680. LabelText.Position = UDim2.new(0.296666116, 0, 0.499999374, 0)
  1681. LabelText.Size = UDim2.new(0.593582511, 0, 0.75, 0)
  1682. LabelText.ZIndex = 6
  1683. LabelText.Font = Enum.Font.SourceSansSemibold
  1684. LabelText.Text = DropdownName or "Label-Test"
  1685. LabelText.TextColor3 = Color3.fromRGB(255, 255, 255)
  1686. LabelText.TextScaled = true
  1687. LabelText.TextSize = 14.000
  1688. LabelText.TextWrapped = true
  1689. LabelText.TextXAlignment = Enum.TextXAlignment.Left
  1690.  
  1691. TopBar.Name = "TopBar"
  1692. TopBar.Parent = Dropdown
  1693. TopBar.Active = true
  1694. TopBar.AnchorPoint = Vector2.new(1, 0.5)
  1695. TopBar.BackgroundColor3 = NEVERLOSE.Themes.ButtonBlackgroundColor
  1696. TopBar.BackgroundTransparency = 0.500
  1697. TopBar.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1698. TopBar.BorderSizePixel = 0
  1699. TopBar.Position = UDim2.new(0.950000167, 0, 0.500000715, 0)
  1700. TopBar.Size = UDim2.new(0.313529521, 0, 0.5, 0)
  1701. TopBar.ZIndex = 6
  1702.  
  1703. UICorner_2.CornerRadius = UDim.new(0, 3)
  1704. UICorner_2.Parent = TopBar
  1705.  
  1706. UIStroke.Thickness = 0.500
  1707. UIStroke.Color = NEVERLOSE.Themes.StrokeColor
  1708. UIStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  1709. UIStroke.Parent = TopBar
  1710.  
  1711. ValueText.Name = "ValueText"
  1712. ValueText.Parent = TopBar
  1713. ValueText.AnchorPoint = Vector2.new(0.5, 0.5)
  1714. ValueText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1715. ValueText.BackgroundTransparency = 1.000
  1716. ValueText.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1717. ValueText.BorderSizePixel = 0
  1718. ValueText.Position = UDim2.new(0.358571023, 0, 0.500001013, 0)
  1719. ValueText.Size = UDim2.new(0.697142839, 0, 0.998000145, 0)
  1720. ValueText.ZIndex = 6
  1721. ValueText.Font = Enum.Font.SourceSansSemibold
  1722. ValueText.Text = tostring(Default)
  1723. ValueText.TextColor3 = Color3.fromRGB(255, 255, 255)
  1724. ValueText.TextScaled = true
  1725. ValueText.TextSize = 14.000
  1726. ValueText.TextWrapped = true
  1727.  
  1728. Icon.Name = "Icon"
  1729. Icon.Parent = TopBar
  1730. Icon.AnchorPoint = Vector2.new(1, 0.5)
  1731. Icon.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1732. Icon.BackgroundTransparency = 1.000
  1733. Icon.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1734. Icon.BorderSizePixel = 0
  1735. Icon.Position = UDim2.new(1, 0, 0.5, 0)
  1736. Icon.Rotation = 90.000
  1737. Icon.Size = UDim2.new(0.949999988, 0, 0.949999988, 0)
  1738. Icon.SizeConstraint = Enum.SizeConstraint.RelativeYY
  1739. Icon.ZIndex = 6
  1740. Icon.Font = Enum.Font.SourceSans
  1741. Icon.Text = "<"
  1742. Icon.TextColor3 = Color3.fromRGB(255, 255, 255)
  1743. Icon.TextScaled = true
  1744. Icon.TextSize = 14.000
  1745. Icon.TextWrapped = true
  1746.  
  1747. DownBar.Name = "DownBar"
  1748. DownBar.Parent = Dropdown
  1749. DownBar.Active = true
  1750. DownBar.AnchorPoint = Vector2.new(1, 0)
  1751. DownBar.BackgroundColor3 = NEVERLOSE.Themes.ButtonBlackgroundColor
  1752. DownBar.BackgroundTransparency = 0.100
  1753. DownBar.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1754. DownBar.BorderSizePixel = 0
  1755. DownBar.Position = UDim2.new(0.948214233, 0, 0.873961239, 0)
  1756. DownBar.Size = UDim2.new(0.308999985, 0, 0, 0)
  1757. DownBar.Visible = false
  1758. DownBar.ZIndex = 10
  1759.  
  1760. UICorner_3.CornerRadius = UDim.new(0, 3)
  1761. UICorner_3.Parent = DownBar
  1762.  
  1763. UIStroke_2.Thickness = 0.500
  1764. UIStroke_2.Color = NEVERLOSE.Themes.StrokeColor
  1765. UIStroke_2.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  1766. UIStroke_2.Parent = DownBar
  1767.  
  1768. UIListLayout.Parent = DownBar
  1769. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  1770. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  1771. UIListLayout.Padding = UDim.new(0, 2)
  1772.  
  1773. local choose = Default
  1774. local DropdownToggle = false
  1775.  
  1776. DownBar:GetPropertyChangedSignal('Size'):Connect(function()
  1777. if DownBar.Size.Y.Offset<4 then
  1778. DownBar.Visible=false
  1779. else
  1780. DownBar.Visible=true
  1781. end
  1782. end)
  1783.  
  1784. local function get_list_size()
  1785. local a=0
  1786.  
  1787. for i,v:TextButton in ipairs(DownBar:GetChildren()) do
  1788. if v:isA('TextButton') then
  1789. a=a + 9
  1790. end
  1791. end
  1792.  
  1793. return a + 15
  1794. end
  1795.  
  1796. local function get_list_v4()
  1797. local a=0
  1798.  
  1799. for i,v:TextButton in ipairs(DownBar:GetChildren()) do
  1800. if v:isA('TextButton') then
  1801. a=a + v.AbsoluteSize.Y
  1802. end
  1803. end
  1804.  
  1805. return a + 15
  1806. end
  1807.  
  1808. local function auto_updatea()
  1809. if DropdownToggle then
  1810. TweenService:Create(DownBar,TweenInfo.new(0.1),{Size=UDim2.new(0.4,0,0,get_list_v4())}):Play()
  1811. else
  1812. TweenService:Create(DownBar,TweenInfo.new(0.1),{Size=UDim2.new(0.4,0,0,0)}):Play()
  1813. end
  1814. end
  1815.  
  1816. local function DropdownToggleEffect(val)
  1817. if val then
  1818. Dropdown.Visible=true
  1819. TweenService:Create(Icon,TweenInfo.new(0.15),{Rotation=90}):Play()
  1820. TweenService:Create(LabelText,TweenInfo.new(0.4),{TextTransparency=0}):Play()
  1821.  
  1822. TweenService:Create(DownBar,TweenInfo.new(0.1),{Size=UDim2.new(0.4,0,0,get_list_size())}):Play()
  1823.  
  1824. auto_updatea()
  1825.  
  1826. for i,v:TextButton in ipairs(DownBar:GetChildren()) do
  1827. if v:isA('TextButton') then
  1828. v.Size=UDim2.new(0,0,0,0)
  1829. v.TextTransparency=1
  1830. TweenService:Create(v,TweenInfo.new(0.01+(i/100)),{
  1831. Size = UDim2.new(0.99000001, 0, 0.5, 0),
  1832. TextTransparency=0.3
  1833. }):Play()
  1834. end
  1835. end
  1836. else
  1837. for i,v:TextButton in ipairs(DownBar:GetChildren()) do
  1838. if v:isA('TextButton') then
  1839. v.TextTransparency=.3
  1840. TweenService:Create(v,TweenInfo.new(0.04),{
  1841. Size = UDim2.new(0,0,0,0),
  1842. TextTransparency=1
  1843. }):Play()
  1844. end
  1845. end
  1846.  
  1847. TweenService:Create(Icon,TweenInfo.new(0.15),{Rotation=-90}):Play()
  1848. TweenService:Create(LabelText,TweenInfo.new(0.4),{TextTransparency=0.3}):Play()
  1849.  
  1850. TweenService:Create(DownBar,TweenInfo.new(0.1),{Size=UDim2.new(0.4,0,0,0)}):Play()
  1851. end
  1852. end
  1853.  
  1854. DropdownToggleEffect(DropdownToggle)
  1855.  
  1856. cretate_button(Dropdown).MouseButton1Click:Connect(function()
  1857. DropdownToggle=not DropdownToggle
  1858. DropdownToggleEffect(DropdownToggle)
  1859. end)
  1860.  
  1861. local function newbutton()
  1862. local Dropdown = Instance.new("TextButton")
  1863. local UIAspectRatioConstraint = Instance.new("UIAspectRatioConstraint")
  1864.  
  1865. Dropdown.Name = "Dropdown"
  1866. Dropdown.Parent = DownBar
  1867. Dropdown.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1868. Dropdown.BackgroundTransparency = 1.000
  1869. Dropdown.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1870. Dropdown.BorderSizePixel = 0
  1871. Dropdown.Size = UDim2.new(0.99000001, 0, 0.5, 0)
  1872. Dropdown.ZIndex = 1000
  1873. Dropdown.Font = Enum.Font.SourceSansSemibold
  1874. Dropdown.Text = "List"
  1875. Dropdown.TextColor3 = Color3.fromRGB(255, 255, 255)
  1876. Dropdown.TextScaled = true
  1877. Dropdown.TextSize = 14.000
  1878. Dropdown.TextWrapped = true
  1879. TweenService:Create(Dropdown,TweenInfo.new(0.1),{TextTransparency=0.3}):Play()
  1880. Dropdown.ZIndex = 10000
  1881. UIAspectRatioConstraint.Parent = Dropdown
  1882. UIAspectRatioConstraint.AspectRatio = 4.5
  1883. UIAspectRatioConstraint.AspectType = Enum.AspectType.ScaleWithParentSize
  1884.  
  1885. Dropdown.MouseEnter:Connect(function()
  1886. TweenService:Create(Dropdown,TweenInfo.new(0.1),{TextTransparency=0}):Play()
  1887. end)
  1888.  
  1889. Dropdown.MouseLeave:Connect(function()
  1890. TweenService:Create(Dropdown,TweenInfo.new(0.1),{TextTransparency=0.3}):Play()
  1891. end)
  1892. local function createDropdownButton(text, callback)
  1893. local button = Instance.new("TextButton")
  1894. button.Size = UDim2.new(1, 0, 0, 30)
  1895. button.Text = text
  1896. button.TextColor3 = Color3.fromRGB(255, 255, 255)
  1897. button.TextScaled = true
  1898. button.BackgroundTransparency = 1
  1899. button.Font = Enum.Font.SourceSans
  1900. button.TextSize = 14
  1901. button.MouseButton1Click:Connect(function()
  1902. callback(text)
  1903. ValueText.Text = text
  1904. DropdownToggle = not DropdownToggle
  1905. DropdownToggleEffect(DropdownToggle)
  1906. end)
  1907. button.Parent = DownBar
  1908. end
  1909.  
  1910. function sectionfunc:AddItem(itemName)
  1911. createDropdownButton(itemName, function(selected)
  1912. selectedPositionLabel = string.match(selected, "^(.-) %(")
  1913. print("Selected position: " .. selectedPositionLabel)
  1914. end)
  1915. end
  1916.  
  1917. local function addPositionToDropdown()
  1918.  
  1919. DownBar:ClearAllChildren()
  1920.  
  1921.  
  1922. for label, posData in pairs(savedPositions) do
  1923. local positionLabel = label .. " (" .. math.floor(posData.Position.X) .. ", " .. math.floor(posData.Position.Y) .. ", " .. math.floor(posData.Position.Z) .. ")"
  1924. sectionfunc:AddItem(positionLabel)
  1925. end
  1926. end
  1927.  
  1928. return Dropdown
  1929. end
  1930.  
  1931. local function refresh()
  1932. for i,v:TextButton in ipairs(DownBar:GetChildren()) do
  1933. if v:isA('TextButton') then
  1934. v:Destroy()
  1935. end
  1936. end
  1937.  
  1938. for i,v in ipairs(data) do
  1939. local button=newbutton()
  1940. button.Text=tostring(v)
  1941. button.MouseButton1Click:Connect(function()
  1942. ValueText.Text=tostring(v)
  1943. choose=v
  1944. callback(v)
  1945. end)
  1946.  
  1947. end
  1948. end
  1949.  
  1950. table.insert(NEVERLOSE.auto_function,auto_updatea)
  1951. refresh()
  1952.  
  1953. local func={}
  1954.  
  1955. function func:Refresh(new)
  1956. data=new or data
  1957. refresh()
  1958. end
  1959.  
  1960. update_section_size()
  1961.  
  1962. function func:Text(a)
  1963. LabelText.Text=tostring(a)
  1964. end
  1965.  
  1966. function func:Get()
  1967. return choose
  1968. end
  1969. return func
  1970. end
  1971.  
  1972. function sectionfunc:Hide()
  1973. TweenService:Create(Section,TweenInfo.new(0.2),{Size=UDim2.new(0.97,0,0,1)}):Play()
  1974. section_value=false
  1975. TweenService:Create(lay,TweenInfo.new(1),{BackgroundTransparency=1}):Play()
  1976. TweenService:Create(Section,TweenInfo.new(1),{BackgroundTransparency=1}):Play()
  1977. TweenService:Create(UIStroke,TweenInfo.new(1),{Transparency=1}):Play()
  1978. TweenService:Create(Header,TweenInfo.new(0.3),{TextTransparency=1}):Play()
  1979. end
  1980.  
  1981. function sectionfunc:Show()
  1982. update_section_size(true)section_value=true
  1983. TweenService:Create(Header,TweenInfo.new(0.3),{TextTransparency=0}):Play()
  1984. TweenService:Create(lay,TweenInfo.new(1),{BackgroundTransparency=0}):Play()
  1985. TweenService:Create(Section,TweenInfo.new(1),{BackgroundTransparency=0}):Play()
  1986. TweenService:Create(UIStroke,TweenInfo.new(1),{Transparency=0}):Play()
  1987. end
  1988.  
  1989. function sectionfunc:AddColorPicker(Text, default, callback)
  1990. default = default or Color3.fromRGB(255, 255, 255)
  1991. callback = callback or function() end
  1992.  
  1993. local ColorPicker = Instance.new("Frame")
  1994. local UICorner = Instance.new("UICorner")
  1995. local Title = Instance.new("TextLabel")
  1996. local ColorDisplay = Instance.new("Frame")
  1997. local UICorner_2 = Instance.new("UICorner")
  1998. local UIStroke = Instance.new("UIStroke")
  1999. local ColorPickerFrame = Instance.new("Frame")
  2000. local UICorner_3 = Instance.new("UICorner")
  2001. local ColorWheel = Instance.new("ImageButton")
  2002. local UICorner_4 = Instance.new("UICorner")
  2003. local UIStroke_2 = Instance.new("UIStroke")
  2004. local Darkness = Instance.new("ImageButton")
  2005. local UIGradient = Instance.new("UIGradient")
  2006. local UICorner_5 = Instance.new("UICorner")
  2007. local UIStroke_3 = Instance.new("UIStroke")
  2008. local ColorPreview = Instance.new("Frame")
  2009. local UICorner_6 = Instance.new("UICorner")
  2010.  
  2011. ColorPicker.Name = "ColorPicker"
  2012. ColorPicker.Parent = Section
  2013. ColorPicker.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2014. ColorPicker.BackgroundTransparency = 1
  2015. ColorPicker.Size = UDim2.new(0.899999976, 0, 0.0799999991, 0) -- Made taller
  2016. ColorPicker.ZIndex = 5
  2017.  
  2018. UICorner.CornerRadius = UDim.new(0, 3)
  2019. UICorner.Parent = ColorPicker
  2020.  
  2021.  
  2022. Title.Name = "Title"
  2023. Title.Parent = ColorPicker
  2024. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2025. Title.BackgroundTransparency = 1
  2026. Title.Position = UDim2.new(0, 5, 0, 0)
  2027. Title.Size = UDim2.new(0.75, 0, 1, 0)
  2028. Title.ZIndex = 5
  2029. Title.Font = Enum.Font.SourceSansSemibold
  2030. Title.Text = Text
  2031. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  2032. Title.TextSize = 14
  2033. Title.TextXAlignment = Enum.TextXAlignment.Left
  2034.  
  2035. ColorDisplay.Name = "ColorDisplay"
  2036. ColorDisplay.Parent = ColorPicker
  2037. ColorDisplay.AnchorPoint = Vector2.new(1, 0.5)
  2038. ColorDisplay.BackgroundColor3 = default
  2039. ColorDisplay.Position = UDim2.new(1, -5, 0.5, 0)
  2040. ColorDisplay.Size = UDim2.new(0.15, 0, 0.8, 0)
  2041. ColorDisplay.ZIndex = 5
  2042.  
  2043. UICorner_2.CornerRadius = UDim.new(0, 3)
  2044. UICorner_2.Parent = ColorDisplay
  2045.  
  2046. UIStroke.Color = NEVERLOSE.Themes.StrokeColor
  2047. UIStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  2048. UIStroke.Parent = ColorDisplay
  2049.  
  2050. ColorPickerFrame.Name = "ColorPickerFrame"
  2051. ColorPickerFrame.Parent = ColorPicker
  2052. ColorPickerFrame.BackgroundColor3 = NEVERLOSE.Themes.SectionColor
  2053. ColorPickerFrame.Position = UDim2.new(1.1, 0, 0, 0)
  2054. ColorPickerFrame.Size = UDim2.new(0, 200, 0, 200)
  2055. ColorPickerFrame.ZIndex = 15
  2056. ColorPickerFrame.Visible = false
  2057.  
  2058. UICorner_3.CornerRadius = UDim.new(0, 3)
  2059. UICorner_3.Parent = ColorPickerFrame
  2060.  
  2061. ColorWheel.Name = "ColorWheel"
  2062. ColorWheel.Parent = ColorPickerFrame
  2063. ColorWheel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2064. ColorWheel.BackgroundTransparency = 1
  2065. ColorWheel.Position = UDim2.new(0.0500000007, 0, 0.0500000007, 0)
  2066. ColorWheel.Size = UDim2.new(0.600000024, 0, 0.600000024, 0)
  2067. ColorWheel.ZIndex = 16
  2068. ColorWheel.Image = "rbxassetid://6020299385"
  2069.  
  2070. UICorner_4.CornerRadius = UDim.new(1, 0)
  2071. UICorner_4.Parent = ColorWheel
  2072.  
  2073. Darkness.Name = "Darkness"
  2074. Darkness.Parent = ColorPickerFrame
  2075. Darkness.AnchorPoint = Vector2.new(1, 0)
  2076. Darkness.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2077. Darkness.Position = UDim2.new(0.949999988, 0, 0.0500000007, 0)
  2078. Darkness.Size = UDim2.new(0.150000006, 0, 0.600000024, 0)
  2079. Darkness.ZIndex = 16
  2080. Darkness.Image = "rbxassetid://359311684"
  2081.  
  2082. UIGradient.Color = ColorSequence.new{
  2083. ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 255, 255)),
  2084. ColorSequenceKeypoint.new(1.00, Color3.fromRGB(0, 0, 0))
  2085. }
  2086. UIGradient.Rotation = 90
  2087. UIGradient.Parent = Darkness
  2088.  
  2089. UICorner_5.CornerRadius = UDim.new(0, 3)
  2090. UICorner_5.Parent = Darkness
  2091.  
  2092. ColorPreview.Name = "ColorPreview"
  2093. ColorPreview.Parent = ColorPickerFrame
  2094. ColorPreview.BackgroundColor3 = default
  2095. ColorPreview.Position = UDim2.new(0.0500000007, 0, 0.699999988, 0)
  2096. ColorPreview.Size = UDim2.new(0.899999976, 0, 0.25, 0)
  2097. ColorPreview.ZIndex = 16
  2098.  
  2099. UICorner_6.CornerRadius = UDim.new(0, 3)
  2100. UICorner_6.Parent = ColorPreview
  2101.  
  2102. local function updateColor()
  2103. local hue, saturation = 0, 0
  2104. local isHolding = false
  2105. local isDarknessHolding = false
  2106. local darkness = 0
  2107.  
  2108. local function updateHueSaturation(input)
  2109. local center = ColorWheel.AbsolutePosition + ColorWheel.AbsoluteSize/2
  2110. local radius = ColorWheel.AbsoluteSize.X/2
  2111. local delta = Vector2.new(input.Position.X - center.X, input.Position.Y - center.Y)
  2112. local distance = delta.Magnitude
  2113.  
  2114. if distance <= radius then
  2115. local angle = math.atan2(delta.Y, delta.X)
  2116. hue = (angle / (math.pi * 2)) + 0.5
  2117. if hue < 0 then hue += 1 end
  2118. saturation = math.clamp(distance/radius, 0, 1)
  2119. return true
  2120. end
  2121. return false
  2122. end
  2123.  
  2124. local function updateDarkness(input)
  2125. local relative = input.Position.Y - Darkness.AbsolutePosition.Y
  2126. darkness = math.clamp(relative/Darkness.AbsoluteSize.Y, 0, 1)
  2127. return true
  2128. end
  2129.  
  2130. local function updateFinal()
  2131. local color = Color3.fromHSV(hue, saturation, 1-darkness)
  2132. ColorDisplay.BackgroundColor3 = color
  2133. ColorPreview.BackgroundColor3 = color
  2134. callback(color)
  2135. end
  2136.  
  2137. ColorWheel.MouseButton1Down:Connect(function()
  2138. isHolding = true
  2139. end)
  2140.  
  2141. ColorWheel.MouseButton1Up:Connect(function()
  2142. isHolding = false
  2143. end)
  2144.  
  2145. Darkness.MouseButton1Down:Connect(function()
  2146. isDarknessHolding = true
  2147. end)
  2148.  
  2149. Darkness.MouseButton1Up:Connect(function()
  2150. isDarknessHolding = false
  2151. end)
  2152.  
  2153. InputService.InputChanged:Connect(function(input)
  2154. if input.UserInputType == Enum.UserInputType.MouseMovement then
  2155. if isHolding then
  2156. if updateHueSaturation(input) then
  2157. updateFinal()
  2158. end
  2159. end
  2160. if isDarknessHolding then
  2161. if updateDarkness(input) then
  2162. updateFinal()
  2163. end
  2164. end
  2165. end
  2166. end)
  2167.  
  2168. game:GetService("UserInputService").InputEnded:Connect(function(input)
  2169. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  2170. isHolding = false
  2171. isDarknessHolding = false
  2172. end
  2173. end)
  2174. end
  2175.  
  2176. local colorPickerOpen = false
  2177. ColorDisplay.InputBegan:Connect(function(input)
  2178. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  2179. colorPickerOpen = not colorPickerOpen
  2180. ColorPickerFrame.Visible = colorPickerOpen
  2181. end
  2182. end)
  2183.  
  2184. updateColor()
  2185. update_section_size()
  2186.  
  2187. local funcs = {}
  2188.  
  2189. function funcs:Set(color)
  2190. ColorDisplay.BackgroundColor3 = color
  2191. ColorPreview.BackgroundColor3 = color
  2192. callback(color)
  2193. end
  2194.  
  2195. return funcs
  2196. end
  2197.  
  2198. return sectionfunc
  2199. end
  2200.  
  2201.  
  2202. return TabFunctions
  2203. end
  2204.  
  2205. function WindowFunctinos:Delete()
  2206. if NEVERLOSE then
  2207. NEVERLOSE:Destroy()
  2208. end
  2209. end
  2210.  
  2211. local dragToggle = nil
  2212. local dragSpeed = 0.1
  2213. local dragStart = nil
  2214. local startPos = nil
  2215.  
  2216. local function updateInput(input)
  2217. local delta = input.Position - dragStart
  2218. local position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X,
  2219. startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  2220. game:GetService('TweenService'):Create(Frame, TweenInfo.new(dragSpeed), {Position = position}):Play()
  2221. end
  2222.  
  2223. Frame_3.InputBegan:Connect(function(input)
  2224. if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) then
  2225. dragToggle = true
  2226. dragStart = input.Position
  2227. startPos = Frame.Position
  2228. input.Changed:Connect(function()
  2229. if input.UserInputState == Enum.UserInputState.End then
  2230. dragToggle = false
  2231. end
  2232. end)
  2233. end
  2234. end)
  2235.  
  2236. InputService.InputChanged:Connect(function(input)
  2237. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  2238. if dragToggle then
  2239. updateInput(input)
  2240. end
  2241. end
  2242. end)
  2243.  
  2244. -- Store reference to current window
  2245. self._ActiveWindow = ScreenGui
  2246.  
  2247. return WindowFunctinos
  2248. end
  2249.  
  2250. function NEVERLOSE:KeySystem(TitleName,LinkKey,callback)
  2251. local Functions = {}
  2252.  
  2253. local ScreenGui = Instance.new("ScreenGui")
  2254. local Frame = Instance.new("Frame")
  2255. local UICorner = Instance.new("UICorner")
  2256. local Frame_2 = Instance.new("Frame")
  2257. local UICorner_2 = Instance.new("UICorner")
  2258. local Title = Instance.new("TextLabel")
  2259. local PasteKey = Instance.new("TextBox")
  2260. local UIStroke = Instance.new("UIStroke")
  2261. local UICorner_3 = Instance.new("UICorner")
  2262. local CopyKey = Instance.new("TextButton")
  2263. local UIStroke_2 = Instance.new("UIStroke")
  2264. local UICorner_4 = Instance.new("UICorner")
  2265. local Submit = Instance.new("TextButton")
  2266. local UIStroke_3 = Instance.new("UIStroke")
  2267. local UICorner_5 = Instance.new("UICorner")
  2268.  
  2269. ScreenGui.Parent = CoreGui
  2270. ScreenGui.ResetOnSpawn = false
  2271. ScreenGui.IgnoreGuiInset=true
  2272. ScreenGui.ZIndexBehavior=Enum.ZIndexBehavior.Global
  2273.  
  2274. Frame.Parent = ScreenGui
  2275. Frame.AnchorPoint = Vector2.new(0.5, 0.5)
  2276. Frame.BackgroundColor3 = NEVERLOSE.Themes.BlackgroundColor
  2277. Frame.BackgroundTransparency = 0.100
  2278. Frame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  2279. Frame.BorderSizePixel = 0
  2280. Frame.Position = UDim2.new(0.5, 0, 0.5, 0)
  2281. Frame.Size = UDim2.new(0, 0, 0, 0)
  2282.  
  2283. UICorner.Parent = Frame
  2284.  
  2285. Frame_2.Parent = Frame
  2286. Frame_2.BackgroundColor3 = NEVERLOSE.Themes.BlackColor
  2287. Frame_2.BorderColor3 = Color3.fromRGB(0, 0, 0)
  2288. Frame_2.BorderSizePixel = 0
  2289. Frame_2.Position = UDim2.new(-0.00109238492, 0, 0.081521742, 0)
  2290. Frame_2.Size = UDim2.new(1, 0, 0.913586974, 0)
  2291. Frame_2.ZIndex = 2
  2292.  
  2293. UICorner_2.CornerRadius = UDim.new(0, 2)
  2294. UICorner_2.Parent = Frame_2
  2295.  
  2296. Title.Name = "Title"
  2297. Title.Parent = Frame
  2298. Title.AnchorPoint = Vector2.new(0.5, 0)
  2299. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2300. Title.BackgroundTransparency = 1.000
  2301. Title.BorderColor3 = Color3.fromRGB(0, 0, 0)
  2302. Title.BorderSizePixel = 0
  2303. Title.Position = UDim2.new(0.5, 0, 0.143000007, 0)
  2304. Title.Size = UDim2.new(0.899999976, 0, 0.150000006, 0)
  2305. Title.ZIndex = 4
  2306. Title.Font = Enum.Font.SourceSansBold
  2307. Title.Text = TitleName or "Key System"
  2308. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  2309. Title.TextScaled = true
  2310. Title.TextSize = 14.000
  2311. Title.TextStrokeColor3 = Color3.fromRGB(0, 255, 255)
  2312. Title.TextStrokeTransparency = 0.860
  2313. Title.TextWrapped = true
  2314.  
  2315. PasteKey.Name = "PasteKey"
  2316. PasteKey.Parent = Frame
  2317. PasteKey.AnchorPoint = Vector2.new(0.5, 0)
  2318. PasteKey.BackgroundColor3 = NEVERLOSE.Themes.ButtonBlackgroundColor
  2319. PasteKey.BorderColor3 = Color3.fromRGB(0, 0, 0)
  2320. PasteKey.BorderSizePixel = 0
  2321. PasteKey.Position = UDim2.new(0.50000006, 0, 0.373641312, 0)
  2322. PasteKey.Size = UDim2.new(0.899999976, 0, 0.25, 0)
  2323. PasteKey.ZIndex = 4
  2324. PasteKey.ClearTextOnFocus = false
  2325. PasteKey.Font = Enum.Font.SourceSansSemibold
  2326. PasteKey.Text = ""
  2327. PasteKey.TextColor3 = Color3.fromRGB(255, 255, 255)
  2328. PasteKey.TextScaled = true
  2329. PasteKey.TextSize = 14.000
  2330. PasteKey.TextTransparency = 0.390
  2331. PasteKey.TextWrapped = true
  2332.  
  2333. UIStroke.Color = NEVERLOSE.Themes.StrokeColor
  2334. UIStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  2335. UIStroke.Parent = PasteKey
  2336.  
  2337. UICorner_3.CornerRadius = UDim.new(0, 3)
  2338. UICorner_3.Parent = PasteKey
  2339.  
  2340. CopyKey.Name = "CopyKey"
  2341. CopyKey.Parent = Frame
  2342. CopyKey.BackgroundColor3 = NEVERLOSE.Themes.ButtonBlackgroundColor
  2343. CopyKey.BackgroundTransparency = 0.200
  2344. CopyKey.BorderColor3 = Color3.fromRGB(0, 0, 0)
  2345. CopyKey.BorderSizePixel = 0
  2346. CopyKey.Position = UDim2.new(0.0489396416, 0, 0.754076123, 0)
  2347. CopyKey.Size = UDim2.new(0.42039147, 0, 0.182608709, 0)
  2348. CopyKey.ZIndex = 5
  2349. CopyKey.Font = Enum.Font.SourceSansBold
  2350. CopyKey.Text = "Get Key"
  2351. CopyKey.TextColor3 = Color3.fromRGB(255, 255, 255)
  2352. CopyKey.TextScaled = true
  2353. CopyKey.TextSize = 14.000
  2354. CopyKey.TextStrokeColor3 = Color3.fromRGB(0, 255, 247)
  2355. CopyKey.TextStrokeTransparency = 0.760
  2356. CopyKey.TextWrapped = true
  2357.  
  2358. UIStroke_2.Color = NEVERLOSE.Themes.StrokeColor
  2359. UIStroke_2.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  2360. UIStroke_2.Parent = CopyKey
  2361.  
  2362. UICorner_4.CornerRadius = UDim.new(0, 3)
  2363. UICorner_4.Parent = CopyKey
  2364.  
  2365. Submit.Name = "Submit"
  2366. Submit.Parent = Frame
  2367. Submit.BackgroundColor3 = NEVERLOSE.Themes.ButtonBlackgroundColor
  2368. Submit.BackgroundTransparency = 0.200
  2369. Submit.BorderColor3 = Color3.fromRGB(0, 0, 0)
  2370. Submit.BorderSizePixel = 0
  2371. Submit.Position = UDim2.new(0.517944396, 0, 0.754076123, 0)
  2372. Submit.Size = UDim2.new(0.428548098, 0, 0.182608709, 0)
  2373. Submit.ZIndex = 5
  2374. Submit.Font = Enum.Font.SourceSansBold
  2375. Submit.Text = "Submit"
  2376. Submit.TextColor3 = Color3.fromRGB(255, 255, 255)
  2377. Submit.TextScaled = true
  2378. Submit.TextSize = 14.000
  2379. Submit.TextStrokeColor3 = Color3.fromRGB(0, 255, 247)
  2380. Submit.TextStrokeTransparency = 0.760
  2381. Submit.TextWrapped = true
  2382.  
  2383. UIStroke_3.Color = NEVERLOSE.Themes.StrokeColor
  2384. UIStroke_3.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  2385. UIStroke_3.Parent = Submit
  2386.  
  2387. UICorner_5.CornerRadius = UDim.new(0, 3)
  2388. UICorner_5.Parent = Submit
  2389.  
  2390. TweenService:Create(Frame,TweenInfo.new(0.4,Enum.EasingStyle.Quint),{Size=UDim2.new(0.25, 0, 0.25, 0)}):Play()
  2391.  
  2392. CopyKey.MouseButton1Click:Connect(function()
  2393. pcall(function()
  2394. setclipboard(tostring(LinkKey))
  2395. end)
  2396.  
  2397. pcall(function()
  2398. toclipboard(tostring(LinkKey))
  2399. end)
  2400. end)
  2401.  
  2402. local asd=false
  2403.  
  2404. local function_call
  2405.  
  2406. Submit.MouseButton1Click:Connect(function()
  2407. if asd then
  2408. return
  2409. end
  2410.  
  2411. asd=true
  2412. if callback(PasteKey.Text) then
  2413. TweenService:Create(Frame,TweenInfo.new(0.4,Enum.EasingStyle.Quint,Enum.EasingDirection.InOut),{Size=UDim2.new(0,0,0,0)}):Play()
  2414. function_call=function_call or function()
  2415.  
  2416. end
  2417.  
  2418. task.spawn(function()
  2419. task.wait(.45)
  2420. ScreenGui:Destroy()
  2421. end)
  2422.  
  2423. function_call(PasteKey.Text)
  2424.  
  2425. return
  2426.  
  2427. else
  2428. PasteKey.Text=''
  2429.  
  2430. end
  2431.  
  2432. asd=false
  2433. end)
  2434.  
  2435. task.spawn(function()
  2436. local dragToggle = nil
  2437. local dragSpeed = 0.2
  2438. local dragStart = nil
  2439. local startPos = nil
  2440.  
  2441. local function updateInput(input)
  2442. local delta = input.Position - dragStart
  2443. local position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X,
  2444. startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  2445. game:GetService('TweenService'):Create(Frame, TweenInfo.new(dragSpeed), {Position = position}):Play()
  2446. end
  2447.  
  2448. Frame.InputBegan:Connect(function(input)
  2449. if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) and not toggle_valu then
  2450. dragToggle = true
  2451. dragStart = input.Position
  2452. startPos = Frame.Position
  2453. input.Changed:Connect(function()
  2454. if input.UserInputState == Enum.UserInputState.End then
  2455. dragToggle = false
  2456. end
  2457. end)
  2458. end
  2459. end)
  2460.  
  2461. InputService.InputChanged:Connect(function(input)
  2462. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  2463. if dragToggle then
  2464. updateInput(input)
  2465. end
  2466. end
  2467. end)
  2468. end)
  2469.  
  2470. function Functions:Callback(func)
  2471. function_call=func
  2472. end
  2473.  
  2474. return Functions
  2475. end
  2476.  
  2477. function NEVERLOSE:Notification()
  2478. local Notification_ = {
  2479. MaxNotifications = 5
  2480. }
  2481.  
  2482. local Notification = Instance.new("ScreenGui")
  2483. local MainFrame = Instance.new("Frame")
  2484. local UIListLayout = Instance.new("UIListLayout")
  2485.  
  2486. Notification.Name = "Notification"
  2487. Notification.Parent = CoreGui
  2488. Notification.ResetOnSpawn = false
  2489. Notification.ZIndexBehavior=Enum.ZIndexBehavior.Global
  2490. Notification.IgnoreGuiInset=true
  2491. ProtectGui(Notification)
  2492.  
  2493. MainFrame.Name = "MainFrame"
  2494. MainFrame.Parent = Notification
  2495. MainFrame.AnchorPoint = Vector2.new(1, 1)
  2496. MainFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2497. MainFrame.BackgroundTransparency = 1.000
  2498. MainFrame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  2499. MainFrame.BorderSizePixel = 0
  2500. MainFrame.Position = UDim2.new(0.99000001, 0, 0.99000001, 0)
  2501. MainFrame.Size = UDim2.new(0.35, 0, 0.100000001, 0)
  2502.  
  2503. UIListLayout.Parent = MainFrame
  2504. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Right
  2505. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  2506. UIListLayout.VerticalAlignment = Enum.VerticalAlignment.Bottom
  2507. UIListLayout.Padding = UDim.new(0, 4)
  2508. function Notification_:Notify(Type,Head,Body,countdown)
  2509. if (#MainFrame:GetChildren()) > Notification_.MaxNotifications then
  2510. return false
  2511. end
  2512.  
  2513. local typeicon = {
  2514. ['error'] = "9072920609",
  2515. ['success'] = "9073052584",
  2516. ['warning'] = "9072448788",
  2517. ['info'] = "9072944922"
  2518. }
  2519.  
  2520. local iconId = typeicon[tostring(Type or "error"):lower()]
  2521.  
  2522. local Notify = Instance.new("Frame")
  2523. local UICorner = Instance.new("UICorner")
  2524. local UIStroke = Instance.new("UIStroke")
  2525. local IconImage = Instance.new("ImageLabel")
  2526. local HeadTitle = Instance.new("TextLabel")
  2527. local BodyTitle = Instance.new("TextLabel")
  2528. local Countdown = Instance.new("Frame")
  2529. local CloseButton = Instance.new("ImageButton")
  2530.  
  2531. Notify.Name = "Notify"
  2532. Notify.Parent = MainFrame
  2533. Notify.BackgroundColor3 = NEVERLOSE.Themes.SectionColor
  2534. Notify.BackgroundTransparency = 0.100
  2535. Notify.BorderColor3 = Color3.fromRGB(0, 0, 0)
  2536. Notify.BorderSizePixel = 0
  2537. Notify.ClipsDescendants = true
  2538. Notify.Size = UDim2.new(0.75,0,0,0)
  2539.  
  2540. UICorner.CornerRadius = UDim.new(0, 3)
  2541. UICorner.Parent = Notify
  2542.  
  2543. UIStroke.Color = NEVERLOSE.Themes.StrokeColor
  2544. UIStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  2545. UIStroke.Parent = Notify
  2546.  
  2547. IconImage.Name = "IconImage"
  2548. IconImage.Parent = Notify
  2549. IconImage.AnchorPoint = Vector2.new(0.5, 0.5)
  2550. IconImage.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2551. IconImage.BackgroundTransparency = 1.000
  2552. IconImage.BorderColor3 = Color3.fromRGB(0, 0, 0)
  2553. IconImage.BorderSizePixel = 0
  2554. IconImage.Position = UDim2.new(0.0549999997, 0, 0.5, 0)
  2555. IconImage.Size = UDim2.new(0.850000024, 0, 0.850000024, 0)
  2556. IconImage.SizeConstraint = Enum.SizeConstraint.RelativeYY
  2557. IconImage.ZIndex = 5
  2558. IconImage.Image = "rbxassetid://"..tostring(iconId)
  2559. IconImage.ImageTransparency=1
  2560. IconImage.ImageColor3=NEVERLOSE.Themes.MainColor
  2561.  
  2562. HeadTitle.Name = "HeadTitle"
  2563. HeadTitle.Parent = Notify
  2564. HeadTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2565. HeadTitle.BackgroundTransparency = 1.000
  2566. HeadTitle.BorderColor3 = Color3.fromRGB(0, 0, 0)
  2567. HeadTitle.BorderSizePixel = 0
  2568. HeadTitle.Position = UDim2.new(0.130612239, 0, 0.0750002638, 0)
  2569. HeadTitle.Size = UDim2.new(0.738775492, 0, 0.369384199, 0)
  2570. HeadTitle.ZIndex = 7
  2571. HeadTitle.Font = Enum.Font.SourceSansSemibold
  2572. HeadTitle.Text = Head or "Head"
  2573. HeadTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  2574. HeadTitle.TextScaled = true
  2575. HeadTitle.TextSize = 14.000
  2576. HeadTitle.TextWrapped = true
  2577. HeadTitle.TextXAlignment = Enum.TextXAlignment.Left
  2578. HeadTitle.TextTransparency=1
  2579. BodyTitle.Name = "BodyTitle"
  2580. BodyTitle.Parent = Notify
  2581. BodyTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2582. BodyTitle.BackgroundTransparency = 1.000
  2583. BodyTitle.BorderColor3 = Color3.fromRGB(0, 0, 0)
  2584. BodyTitle.BorderSizePixel = 0
  2585. BodyTitle.Position = UDim2.new(0.130612239, 0, 0.444384605, 0)
  2586. BodyTitle.Size = UDim2.new(0.738775492, 0, 0.47554332, 0)
  2587. BodyTitle.ZIndex = 7
  2588. BodyTitle.Font = Enum.Font.SourceSansSemibold
  2589. BodyTitle.Text = Body or "Body"
  2590. BodyTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  2591. BodyTitle.TextScaled = true
  2592. BodyTitle.TextSize = 14.000
  2593. BodyTitle.TextTransparency = 1
  2594. BodyTitle.TextWrapped = true
  2595. BodyTitle.TextXAlignment = Enum.TextXAlignment.Left
  2596.  
  2597. Countdown.Name = "Countdown"
  2598. Countdown.Parent = Notify
  2599. Countdown.AnchorPoint = Vector2.new(0, 1)
  2600. Countdown.BackgroundColor3 = NEVERLOSE.Themes.MainColor
  2601. Countdown.BorderColor3 = Color3.fromRGB(0, 0, 0)
  2602. Countdown.BorderSizePixel = 0
  2603. Countdown.Position = UDim2.new(0, 0, 1.07500005, 0)
  2604. Countdown.Size = UDim2.new(0, 0, 0.100000001, 0)
  2605. Countdown.ZIndex = 6
  2606. Countdown.BackgroundTransparency=1
  2607.  
  2608. CloseButton.Name = "CloseButton"
  2609. CloseButton.Parent = Notify
  2610. CloseButton.AnchorPoint = Vector2.new(0.5, 0.5)
  2611. CloseButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2612. CloseButton.BackgroundTransparency = 1.000
  2613. CloseButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
  2614. CloseButton.BorderSizePixel = 0
  2615. CloseButton.Position = UDim2.new(0.939999998, 0, 0.5, 0)
  2616. CloseButton.Size = UDim2.new(0.550000012, 0, 0.550000012, 0)
  2617. CloseButton.SizeConstraint = Enum.SizeConstraint.RelativeYY
  2618. CloseButton.ZIndex = 5
  2619. CloseButton.Image = "rbxassetid://9127564477"
  2620. CloseButton.ScaleType = Enum.ScaleType.Fit
  2621. CloseButton.ImageTransparency=1
  2622.  
  2623. local currenttime = 0.3
  2624. local function start_vu()
  2625. TweenService:Create(Notify,TweenInfo.new(currenttime/2,Enum.EasingStyle.Quint),{Size=UDim2.new(0.99,0,0.75,0)}):Play()
  2626. TweenService:Create(UIStroke,TweenInfo.new(currenttime,Enum.EasingStyle.Quint,Enum.EasingDirection.In),{Transparency=0}):Play()
  2627. TweenService:Create(HeadTitle,TweenInfo.new(currenttime,Enum.EasingStyle.Quint,Enum.EasingDirection.In),{TextTransparency=0}):Play()
  2628. TweenService:Create(BodyTitle,TweenInfo.new(currenttime,Enum.EasingStyle.Quint,Enum.EasingDirection.In),{TextTransparency=0.3}):Play()
  2629. TweenService:Create(Countdown,TweenInfo.new(currenttime,Enum.EasingStyle.Quint,Enum.EasingDirection.In),{BackgroundTransparency=0}):Play()
  2630. TweenService:Create(IconImage,TweenInfo.new(currenttime,Enum.EasingStyle.Quint,Enum.EasingDirection.In),{ImageTransparency=0}):Play()
  2631. TweenService:Create(CloseButton,TweenInfo.new(currenttime,Enum.EasingStyle.Quint,Enum.EasingDirection.In),{ImageTransparency=0}):Play()
  2632. end
  2633.  
  2634.  
  2635. local function end_vu()
  2636. local trantween = TweenService:Create(Notify,TweenInfo.new(currenttime,Enum.EasingStyle.Quint,Enum.EasingDirection.In),{Size=UDim2.new(0.75,0,0,0)})
  2637. TweenService:Create(UIStroke,TweenInfo.new(currenttime/2,Enum.EasingStyle.Quad),{Transparency=1}):Play()
  2638. TweenService:Create(HeadTitle,TweenInfo.new(currenttime/2,Enum.EasingStyle.Quad),{TextTransparency=1}):Play()
  2639. TweenService:Create(BodyTitle,TweenInfo.new(currenttime/2,Enum.EasingStyle.Quad),{TextTransparency=1}):Play()
  2640. TweenService:Create(Countdown,TweenInfo.new(currenttime/2,Enum.EasingStyle.Quad),{BackgroundTransparency=1}):Play()
  2641. TweenService:Create(IconImage,TweenInfo.new(currenttime/2,Enum.EasingStyle.Quad),{ImageTransparency=1}):Play()
  2642. TweenService:Create(CloseButton,TweenInfo.new(currenttime/2,Enum.EasingStyle.Quad),{ImageTransparency=1}):Play()
  2643. trantween:Play()
  2644.  
  2645. trantween.Completed:Connect(function()
  2646. Notify:Destroy()
  2647. end)
  2648. end
  2649.  
  2650. start_vu()
  2651.  
  2652. task.spawn(function()
  2653. CloseButton.MouseButton1Click:Connect(end_vu)
  2654.  
  2655. if countdown then
  2656.  
  2657. pcall(function()
  2658. task.wait(1.3)
  2659. local tween = TweenService:Create(Countdown,TweenInfo.new(tonumber(countdown) or 3,Enum.EasingStyle.Linear),{Size=UDim2.new(1,0,0.1,0)
  2660. })
  2661.  
  2662. tween:Play()
  2663.  
  2664. tween.Completed:Wait()
  2665. task.wait(0.5)
  2666. end_vu()
  2667. end)
  2668. end
  2669. end)
  2670. end
  2671.  
  2672. return Notification_
  2673. end
  2674.  
  2675. task.spawn(function()
  2676. _G.index_neverlose=true
  2677. while _G.index_neverlose do task.wait(0)
  2678. pcall(function()
  2679. for i,v in ipairs(NEVERLOSE.auto_function) do task.wait()
  2680. pcall(function()
  2681. task.spawn(v)
  2682. end)
  2683. end
  2684. end)
  2685. end
  2686. end)
  2687.  
  2688. -- Add reload function
  2689. function NEVERLOSE:ReloadUI()
  2690. if self._ActiveWindow then
  2691. local oldWindow = self._ActiveWindow
  2692. local properties = {
  2693. NameScriptHub = oldWindow:FindFirstChild("HeadName") and oldWindow.HeadName.Text,
  2694. Text = oldWindow:FindFirstChild("headd2text") and oldWindow.headd2text.Text,
  2695. Size = oldWindow:FindFirstChild("Frame") and oldWindow.Frame.Size
  2696. }
  2697.  
  2698. -- Recreate window with same properties
  2699. self:AddWindow(properties.NameScriptHub, properties.Text, properties.Size)
  2700. end
  2701. end
  2702.  
  2703. return NEVERLOSE
Tags: Bro
Advertisement
Add Comment
Please, Sign In to add comment