· last year · Feb 09, 2024, 09:20 AM
1-- // EngoUI V2
2local mouse = game.Players.LocalPlayer:GetMouse()
3local TS = game:GetService("TweenService")
4local RS = game:GetService("RunService")
5local UIS = game:GetService("UserInputService")
6local rainbowvalue = 0.01
7
8-- Themes
9EngoThemes = {
10 Engo = {
11 TextColor = Color3.fromRGB(255, 255, 255),
12 DescriptionTextColor = Color3.fromRGB(150, 150, 150),
13 DarkTextColor = Color3.fromRGB(100, 100, 100),
14 DarkContrast = Color3.fromRGB(4, 4, 22),
15 LightContrast = Color3.fromRGB(15, 16, 41),
16 BackgroundGradient = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(3, 5, 16)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(4, 4, 22))},
17 Darkness = Color3.fromRGB(0, 0, 0),
18 },
19 Swamp = {
20 TextColor = Color3.fromRGB(255, 255, 255),
21 DescriptionTextColor = Color3.fromRGB(150, 150, 150),
22 DarkTextColor = Color3.fromRGB(100, 100, 100),
23 DarkContrast = Color3.fromRGB(10, 29, 6),
24 LightContrast = Color3.fromRGB(28, 80, 43),
25 BackgroundGradient = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(5, 27, 10)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(6, 37, 17))},
26 Darkness = Color3.fromRGB(0, 0, 0),
27 },
28 Sky = {
29 TextColor = Color3.fromRGB(255, 255, 255),
30 DescriptionTextColor = Color3.fromRGB(212, 212, 212),
31 DarkTextColor = Color3.fromRGB(161, 161, 161),
32 DarkContrast = Color3.fromRGB(32, 119, 177),
33 LightContrast = Color3.fromRGB(56, 137, 175),
34 BackgroundGradient = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(63, 127, 153)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(25, 118, 155))},
35 Darkness = Color3.fromRGB(0, 0, 0),
36 },
37 Crimson = {
38 TextColor = Color3.fromRGB(255, 255, 255),
39 DescriptionTextColor = Color3.fromRGB(212, 212, 212),
40 DarkTextColor = Color3.fromRGB(161, 161, 161),
41 DarkContrast = Color3.fromRGB(54, 11, 11),
42 LightContrast = Color3.fromRGB(167, 50, 50),
43 BackgroundGradient = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(83, 30, 30)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(138, 45, 45))},
44 Darkness = Color3.fromRGB(0, 0, 0),
45 },
46 Gray = {
47 TextColor = Color3.fromRGB(255, 255, 255),
48 DescriptionTextColor = Color3.fromRGB(212, 212, 212),
49 DarkTextColor = Color3.fromRGB(161, 161, 161),
50 DarkContrast = Color3.fromRGB(24, 24, 24),
51 LightContrast = Color3.fromRGB(58, 58, 58),
52 BackgroundGradient = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(29, 29, 29)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(39, 39, 39))},
53 Darkness = Color3.fromRGB(0, 0, 0),
54 },
55 Discord = {
56 TextColor = Color3.fromRGB(255, 255, 255),
57 DescriptionTextColor = Color3.fromRGB(212, 212, 212),
58 DarkTextColor = Color3.fromRGB(161, 161, 161),
59 DarkContrast = Color3.fromRGB(41, 43, 47),
60 LightContrast = Color3.fromRGB(54, 57, 63),
61 BackgroundGradient = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(64, 68, 75)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(64, 68, 75))},
62 Darkness = Color3.fromRGB(0, 0, 0),
63 },
64}
65local theme = EngoThemes.Engo
66
67-- Functions
68local old_err = error
69local function error(message)
70 old_err("[EngoUILib] "..tostring(message))
71end
72
73local function RelativeXY(GuiObject, location)
74 local x, y = location.X - GuiObject.AbsolutePosition.X, location.Y - GuiObject.AbsolutePosition.Y
75 local x2 = 0
76 local xm, ym = GuiObject.AbsoluteSize.X, GuiObject.AbsoluteSize.Y
77 x2 = math.clamp(x, 4, xm - 6)
78 x = math.clamp(x, 0, xm)
79 y = math.clamp(y, 0, ym)
80 return x, y, x/xm, y/ym, x2/xm
81end
82
83spawn(function()
84 repeat
85 for i = 0, 1, 0.01 do
86 wait(0.01)
87 rainbowvalue = i
88 end
89 until true == false
90end)
91
92local library = {}
93function library:SetTheme(themeSel)
94 if EngoThemes[themeSel] then
95 theme = EngoThemes[themeSel]
96 elseif typeof(themeSel) == "table" then
97 for i,v in pairs(EngoThemes.Engo) do
98 if not themeSel[i] then
99 error("Custom themes needs "..tostring(i).." to work properly!")
100 end
101 end
102 theme = themeSel
103 else
104 error("Invalid theme!, please use correct name or custom theme.")
105 end
106end
107function library:CreateMain(title, description, keycode)
108 library["OriginalBind"] = keycode
109 library["Bind"] = keycode
110 local closeconnection
111 function onSelfDestroy()
112 if getgenv().userInputConnection then
113 getgenv().userInputConnection:Disconnect()
114 getgenv().userInputConnection = nil
115 end
116 if closeconnection then
117 closeconnection:Disconnect()
118 end
119 end
120 if getgenv().EngoUILib then
121 getgenv().EngoUILib:Destroy()
122 onSelfDestroy()
123 end
124 local firstTab
125 local EngoUI = Instance.new("ScreenGui")
126 if syn then
127 syn.protect_gui(EngoUI)
128 end
129 EngoUI.Parent = gethui and gethui() or game.CoreGui
130 getgenv().EngoUILib = EngoUI
131 closeconnection = UIS.InputEnded:Connect(function(input,yes)
132 local TextBoxFocused = UIS:GetFocusedTextBox()
133 if TextBoxFocused then return end
134 if input.KeyCode == library["Bind"] and not yes and not library["IsBinding"] then
135 EngoUI.Enabled = not EngoUI.Enabled
136 end
137 end)
138
139 local Main = Instance.new("Frame")
140 local UIGradient = Instance.new("UIGradient")
141 local UICorner = Instance.new("UICorner")
142 local Sidebar = Instance.new("ScrollingFrame")
143 local UIListLayout = Instance.new("UIListLayout")
144 local Topbar = Instance.new("Frame")
145 local Info = Instance.new("Frame")
146 local Title = Instance.new("TextLabel")
147 local Description = Instance.new("TextLabel")
148
149 EngoUI.Name = "EngoUI"
150 EngoUI.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
151
152 Main.Name = "Main"
153 Main.Parent = EngoUI
154 Main.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
155 Main.Position = UDim2.new(0.54207927, 0, 0.307602346, 0)
156 Main.Size = UDim2.new(0, 550, 0, 397)
157 Main.Active = true
158 Main.Draggable = true
159
160 UIGradient.Color = theme.BackgroundGradient
161 UIGradient.Offset = Vector2.new(-0.25, 0)
162 UIGradient.Parent = Main
163
164 UICorner.CornerRadius = UDim.new(0, 6)
165 UICorner.Parent = Main
166
167 Sidebar.Name = "Sidebar"
168 Sidebar.Parent = Main
169 Sidebar.Active = true
170 Sidebar.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
171 Sidebar.BackgroundTransparency = 1.000
172 Sidebar.Position = UDim2.new(0.043636363, 0, 0.158690169, 0)
173 Sidebar.Size = UDim2.new(0, 93, 0, 314)
174 Sidebar.CanvasSize = UDim2.new(0, 0, 0, 0)
175 Sidebar.ScrollBarThickness = 0
176 Sidebar.AutomaticCanvasSize = Enum.AutomaticSize.Y
177
178 UIListLayout.Parent = Sidebar
179 UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
180 UIListLayout.Padding = UDim.new(0, 15)
181
182 Topbar.Name = "Topbar"
183 Topbar.Parent = Main
184 Topbar.BackgroundColor3 = Color3.fromRGB(1, 1, 1)
185 Topbar.BackgroundTransparency = 1.000
186 Topbar.Size = UDim2.new(0, 550, 0, 53)
187
188 Info.Name = "Info"
189 Info.Parent = Topbar
190 Info.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
191 Info.BackgroundTransparency = 1.000
192 Info.Position = UDim2.new(0, 0, 0.113207549, 0)
193 Info.Size = UDim2.new(0, 151, 0, 47)
194
195 Title.Name = "Title"
196 Title.Parent = Info
197 Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
198 Title.BackgroundTransparency = 1.000
199 Title.Position = UDim2.new(0.158940405, 0, 0.132075474, 0)
200 Title.Size = UDim2.new(0, 116, 0, 21)
201 Title.Font = Enum.Font.GothamBold
202 Title.Text = title
203 Title.TextColor3 = theme.TextColor
204 Title.TextSize = 18.000
205 Title.TextXAlignment = Enum.TextXAlignment.Left
206
207 Description.Name = "Description"
208 Description.Parent = Info
209 Description.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
210 Description.BackgroundTransparency = 1.000
211 Description.Position = UDim2.new(0.158940405, 0, 0.528301895, 0)
212 Description.Size = UDim2.new(0, 116, 0, 16)
213 Description.Font = Enum.Font.Gotham
214 Description.Text = description
215 Description.TextColor3 = theme.DescriptionTextColor
216 Description.TextSize = 11.000
217 Description.TextXAlignment = Enum.TextXAlignment.Left
218
219 local library2 = {}
220 library2["Tabs"] = {}
221 function library2:CreateTab(name)
222
223 local library3 = {}
224
225 local UIListLayout_2 = Instance.new("UIListLayout")
226 local TabButton = Instance.new("TextButton")
227 local Tab = Instance.new("ScrollingFrame")
228
229 TabButton.Parent = Sidebar
230 TabButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
231 TabButton.BackgroundTransparency = 1.000
232 TabButton.Size = UDim2.new(0, 121, 0, 26)
233 TabButton.Font = Enum.Font.Gotham
234 TabButton.Text = name
235 TabButton.TextColor3 = theme.DarkTextColor
236 TabButton.TextSize = 14.000
237 TabButton.TextWrapped = true
238 TabButton.TextXAlignment = Enum.TextXAlignment.Left
239 TabButton.Name = name.."TabButton"
240
241 Tab.Name = name.."Tab"
242 Tab.Parent = Main
243 Tab.Active = true
244 Tab.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
245 Tab.BackgroundTransparency = 1.000
246 Tab.BorderSizePixel = 0
247 Tab.Position = UDim2.new(0.289090902, 0, 0.151133507, 0)
248 Tab.Size = UDim2.new(0, 375, 0, 309)
249 Tab.CanvasSize = UDim2.new(0, 0, 0, 0)
250 Tab.ScrollBarThickness = 0
251 Tab.TopImage = ""
252 Tab.AutomaticCanvasSize = Enum.AutomaticSize.Y
253
254 UIListLayout_2.Parent = Tab
255 UIListLayout_2.HorizontalAlignment = Enum.HorizontalAlignment.Center
256 UIListLayout_2.SortOrder = Enum.SortOrder.LayoutOrder
257 UIListLayout_2.Padding = UDim.new(0, 3)
258
259 library2["Tabs"][name] = {
260 Instance = Tab,
261 Button = TabButton,
262 }
263
264 if not firstTab then
265 firstTab = library2["Tabs"][name]
266 TabButton.TextColor3 = theme.TextColor
267 else
268 Tab.Visible = false
269 TabButton.TextColor3 = theme.DarkTextColor
270 end
271
272 function library2:OpenTab(tab)
273 for i,v in pairs(library2["Tabs"]) do
274 if i ~= tab then
275 v.Instance.Visible = false
276 v.Button.TextColor3 = theme.DarkTextColor
277 else
278 v.Instance.Visible = true
279 v.Button.TextColor3 = theme.TextColor
280 end
281 end
282 end
283
284 TabButton.MouseButton1Click:Connect(function()
285 library2:OpenTab(name)
286 end)
287
288 function library3:CreateButton(text, callback)
289 callback = callback or function() end
290 local Button = Instance.new("TextButton")
291 local UICorner_2 = Instance.new("UICorner")
292 local Title_2 = Instance.new("TextLabel")
293 local Icon = Instance.new("ImageLabel")
294
295 Button.Name = text.."Button"
296 Button.Parent = Tab
297 Button.BackgroundColor3 = theme.LightContrast
298 Button.BackgroundTransparency = 0
299 Button.Size = UDim2.new(0, 375, 0, 49)
300 Button.Font = Enum.Font.SourceSans
301 Button.Text = ""
302 Button.TextColor3 = Color3.fromRGB(0, 0, 0)
303 Button.TextSize = 14.000
304
305 UICorner_2.CornerRadius = UDim.new(0, 6)
306 UICorner_2.Parent = Button
307
308 Title_2.Name = "Title"
309 Title_2.Parent = Button
310 Title_2.AnchorPoint = Vector2.new(0, 0.5)
311 Title_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
312 Title_2.BackgroundTransparency = 1.000
313 Title_2.Position = UDim2.new(0.141000003, 0, 0.5, 0)
314 Title_2.Size = UDim2.new(0, 263, 0, 21)
315 Title_2.Font = Enum.Font.GothamSemibold
316 Title_2.Text = text
317 Title_2.TextColor3 = theme.TextColor
318 Title_2.TextSize = 14.000
319 Title_2.TextXAlignment = Enum.TextXAlignment.Left
320
321 Icon.Name = "Icon"
322 Icon.Parent = Button
323 Icon.AnchorPoint = Vector2.new(0, 0.5)
324 Icon.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
325 Icon.BackgroundTransparency = 1.000
326 Icon.ClipsDescendants = true
327 Icon.Position = UDim2.new(0.0400000028, 0, 0.5, 0)
328 Icon.Size = UDim2.new(0, 19, 0, 24)
329 Icon.Image = "rbxassetid://8284791761"
330 Icon.ScaleType = Enum.ScaleType.Stretch
331 Icon.ImageColor3 = theme.TextColor
332
333 Button.MouseButton1Click:Connect(function()
334 spawn(function() pcall(callback) end)
335 end)
336 local obj = {
337 ["Type"] = "Button",
338 ["Instance"] = Button,
339 ["Api"] = nil
340 }
341 table.insert(library2["Tabs"][name], obj)
342 end
343
344 function library3:CreateToggle(text, callback)
345 local library4 = {}
346 library4["Enabled"] = false
347 callback = callback or function() end
348 local Toggle = Instance.new("TextButton")
349 local UICorner_3 = Instance.new("UICorner")
350 local Title_3 = Instance.new("TextLabel")
351 local Icon = Instance.new("ImageLabel")
352
353 Toggle.Name = text.."Toggle"
354 Toggle.Parent = Tab
355 Toggle.BackgroundColor3 = theme.LightContrast
356 Toggle.BackgroundTransparency = 0
357 Toggle.Size = UDim2.new(0, 375, 0, 49)
358 Toggle.Font = Enum.Font.SourceSans
359 Toggle.Text = ""
360 Toggle.TextColor3 = Color3.fromRGB(0, 0, 0)
361 Toggle.TextSize = 14.000
362
363 UICorner_3.CornerRadius = UDim.new(0, 6)
364 UICorner_3.Parent = Toggle
365
366 Title_3.Name = "Title"
367 Title_3.Parent = Toggle
368 Title_3.AnchorPoint = Vector2.new(0, 0.5)
369 Title_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
370 Title_3.BackgroundTransparency = 1.000
371 Title_3.Position = UDim2.new(0.138999999, 0, 0.520408154, 0)
372 Title_3.Size = UDim2.new(0, 264, 0, 21)
373 Title_3.Font = Enum.Font.GothamSemibold
374 Title_3.Text = text
375 Title_3.TextColor3 = theme.TextColor
376 Title_3.TextSize = 14.000
377 Title_3.TextXAlignment = Enum.TextXAlignment.Left
378
379 Icon.Name = "Icon"
380 Icon.Parent = Toggle
381 Icon.AnchorPoint = Vector2.new(0, 0.5)
382 Icon.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
383 Icon.BackgroundTransparency = 1.000
384 Icon.ClipsDescendants = true
385 Icon.Position = UDim2.new(0.0320000015, 0, 0.5, 0)
386 Icon.Size = UDim2.new(0, 26, 0, 26)
387 Icon.ImageColor3 = theme.TextColor
388 Icon.Image = "rbxassetid://3926311105"
389 Icon.ImageRectOffset = Vector2.new(940, 784)
390 Icon.ImageRectSize = Vector2.new(48, 48)
391 Icon.SliceScale = 0.500
392
393 function library4:Toggle(bool)
394 bool = bool or (not library4["Enabled"])
395 library4["Enabled"] = bool
396 if not bool then
397 Icon.ImageRectOffset = Vector2.new(940, 784)
398 Icon.ImageRectSize = Vector2.new(48, 48)
399 spawn(function() callback(false) end)
400 else
401 spawn(function() callback(true) end)
402 Icon.ImageRectOffset = Vector2.new(4, 836)
403 Icon.ImageRectSize = Vector2.new(48, 48)
404 end
405 end
406
407 Toggle.MouseButton1Click:Connect(function()
408 library4:Toggle()
409 end)
410
411 local obj = {
412 ["Type"] = "Toggle",
413 ["Instance"] = Toggle,
414 ["Api"] = library4
415 }
416 table.insert(library2["Tabs"][name], obj)
417 library4["Object"] = obj
418 return library4
419 end
420
421 function library3:CreateTextbox(text, callback)
422 local library4 = {}
423 library4["Text"] = ""
424
425 local Textbox = Instance.new("TextLabel")
426 local UICorner = Instance.new("UICorner")
427 local Icon = Instance.new("ImageLabel")
428 local Title = Instance.new("TextLabel")
429 local Textbox_2 = Instance.new("TextBox")
430 local UICorner_2 = Instance.new("UICorner")
431
432 Textbox.Name = text.."Textbox"
433 Textbox.Parent = Tab
434 Textbox.BackgroundColor3 = theme.LightContrast
435 Textbox.BackgroundTransparency = 0
436 Textbox.Position = UDim2.new(0, 0, 0.326860845, 0)
437 Textbox.Size = UDim2.new(0, 375, 0, 50)
438 Textbox.Font = Enum.Font.SourceSans
439 Textbox.Text = ""
440 Textbox.TextColor3 = Color3.fromRGB(0, 0, 0)
441 Textbox.TextSize = 14.000
442
443 UICorner.CornerRadius = UDim.new(0, 6)
444 UICorner.Parent = Textbox
445
446 Icon.Name = "Icon"
447 Icon.Parent = Textbox
448 Icon.AnchorPoint = Vector2.new(0, 0.5)
449 Icon.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
450 Icon.BackgroundTransparency = 1.000
451 Icon.ClipsDescendants = true
452 Icon.Position = UDim2.new(0.032333333, 0, 0.5, 0)
453 Icon.Size = UDim2.new(0, 25, 0, 24)
454 Icon.Image = "rbxassetid://3926305904"
455 Icon.ImageRectOffset = Vector2.new(244, 44)
456 Icon.ImageRectSize = Vector2.new(36, 36)
457 Icon.ScaleType = Enum.ScaleType.Crop
458 Icon.SliceScale = 0.500
459 Icon.ImageColor3 = theme.TextColor
460
461 Title.Name = "Title"
462 Title.Parent = Textbox
463 Title.AnchorPoint = Vector2.new(0, 0.5)
464 Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
465 Title.BackgroundTransparency = 1.000
466 Title.Position = UDim2.new(0.141000003, 0, 0.5, 0)
467 Title.Size = UDim2.new(0, 101, 0, 21)
468 Title.Font = Enum.Font.GothamSemibold
469 Title.Text = text
470 Title.TextColor3 = theme.TextColor
471 Title.TextSize = 14.000
472 Title.TextXAlignment = Enum.TextXAlignment.Left
473
474 Textbox_2.Name = "Textbox"
475 Textbox_2.Parent = Textbox
476 Textbox_2.AnchorPoint = Vector2.new(0, 0.5)
477 Textbox_2.BackgroundColor3 = theme.DarkContrast
478 Textbox_2.BorderSizePixel = 0
479 Textbox_2.Position = UDim2.new(0.43233332, 0, 0.5, 0)
480 Textbox_2.Size = UDim2.new(0, 201, 0, 20)
481 Textbox_2.Font = Enum.Font.Gotham
482 Textbox_2.PlaceholderColor3 = theme.DarkTextColor
483 Textbox_2.PlaceholderText = "Value"
484 Textbox_2.Text = ""
485 Textbox_2.TextColor3 = theme.DescriptionTextColor
486 Textbox_2.TextSize = 14.000
487 Textbox_2.TextWrapped = true
488 Textbox_2.FocusLost:Connect(function()
489 spawn(function() callback(Textbox_2.Text) end)
490 library4["Text"] = Textbox_2.Text
491 end)
492
493 UICorner_2.CornerRadius = UDim.new(0, 6)
494 UICorner_2.Parent = Textbox_2
495 local obj = {
496 ["Type"] = "Textbox",
497 ["Instance"] = Textbox,
498 ["Api"] = library4
499 }
500 table.insert(library2["Tabs"][name], obj)
501 library4["Object"] = obj
502 return library4
503 end
504
505 function library3:CreateSlider(text, min, max, callback)
506 local library4 = {}
507 library4["Value"] = nil
508 callback = callback or function() end
509
510 local Slider = Instance.new("TextButton")
511 local UICorner_4 = Instance.new("UICorner")
512 local Icon_3 = Instance.new("ImageLabel")
513 local Title_4 = Instance.new("TextLabel")
514 local SliderBar = Instance.new("Frame")
515 local UICorner_5 = Instance.new("UICorner")
516 local Value = Instance.new("TextLabel")
517 local Slider_2 = Instance.new("Frame")
518 local UICorner_6 = Instance.new("UICorner")
519
520 Slider.Name = text.."Slider"
521 Slider.Parent = Tab
522 Slider.BackgroundColor3 = theme.LightContrast
523 Slider.BackgroundTransparency = 0
524 Slider.Position = UDim2.new(0, 0, 0.336569577, 0)
525 Slider.Size = UDim2.new(0, 375, 0, 50)
526 Slider.Font = Enum.Font.SourceSans
527 Slider.Text = ""
528 Slider.TextColor3 = Color3.fromRGB(0, 0, 0)
529 Slider.TextSize = 14.000
530 Slider.AutoButtonColor = false
531
532 UICorner_4.CornerRadius = UDim.new(0, 6)
533 UICorner_4.Parent = Slider
534
535 Icon_3.Name = "Icon"
536 Icon_3.Parent = Slider
537 Icon_3.AnchorPoint = Vector2.new(0, 0.5)
538 Icon_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
539 Icon_3.BackgroundTransparency = 1.000
540 Icon_3.ClipsDescendants = true
541 Icon_3.Position = UDim2.new(0.032333333, 0, 0.5, 0)
542 Icon_3.Size = UDim2.new(0, 25, 0, 24)
543 Icon_3.Image = "rbxassetid://3926305904"
544 Icon_3.ImageRectOffset = Vector2.new(4, 124)
545 Icon_3.ImageRectSize = Vector2.new(36, 36)
546 Icon_3.SliceScale = 0.500
547 Icon_3.ImageColor3 = theme.TextColor
548
549 Title_4.Name = "Title"
550 Title_4.Parent = Slider
551 Title_4.AnchorPoint = Vector2.new(0, 0.5)
552 Title_4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
553 Title_4.BackgroundTransparency = 1.000
554 Title_4.Position = UDim2.new(0.141000003, 0, 0.5, 0)
555 Title_4.Size = UDim2.new(0, 101, 0, 21)
556 Title_4.Font = Enum.Font.GothamSemibold
557 Title_4.Text = text
558 Title_4.TextColor3 = theme.TextColor
559 Title_4.TextSize = 14.000
560 Title_4.TextXAlignment = Enum.TextXAlignment.Left
561
562 SliderBar.Name = "SliderBar"
563 SliderBar.Parent = Slider
564 SliderBar.AnchorPoint = Vector2.new(0, 0.5)
565 SliderBar.BackgroundColor3 = theme.DarkContrast
566 SliderBar.BorderSizePixel = 0
567 SliderBar.Position = UDim2.new(-0.0666666701, 170, 0.5, 0)
568 SliderBar.Size = UDim2.new(0, 219, 0, 15)
569
570 UICorner_5.CornerRadius = UDim.new(0, 6)
571 UICorner_5.Parent = SliderBar
572
573 Value.Name = "Value"
574 Value.Parent = SliderBar
575 Value.AnchorPoint = Vector2.new(0.5, 0.5)
576 Value.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
577 Value.BackgroundTransparency = 1.000
578 Value.Position = UDim2.new(0.5, 0, 0.5, 0)
579 Value.Size = UDim2.new(0, 37, 0, 16)
580 Value.ZIndex = 2
581 Value.Font = Enum.Font.GothamSemibold
582 Value.Text = ""
583 Value.TextColor3 = theme.TextColor
584 Value.TextSize = 10.000
585 Value.TextStrokeTransparency = 0.000
586 Value.TextStrokeColor3 = theme.Darkness
587 Value.TextXAlignment = Enum.TextXAlignment.Left
588
589 Slider_2.Name = "Slider"
590 Slider_2.Parent = SliderBar
591 Slider_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
592 Slider_2.Size = UDim2.new(0, 53, 0, 15)
593
594 UICorner_6.CornerRadius = UDim.new(0, 6)
595 UICorner_6.Parent = Slider_2
596
597 local value
598 local dragging
599 function library4:SetValue(input)
600 local pos = UDim2.new(math.clamp((input.Position.X - SliderBar.AbsolutePosition.X) / SliderBar.AbsoluteSize.X, 0, 1), 0, 0, (SliderBar.AbsoluteSize.Y))
601 Slider_2:TweenSize(pos, Enum.EasingDirection.Out, Enum.EasingStyle.Quad, 0.2, true)
602 local value = math.floor(( ((pos.X.Scale * max) / max) * (max - min) + min ) * 100) / 100
603 Value.Text = tostring(value)
604 library4["Value"] = value
605 spawn(function() callback(value) end)
606 end;
607
608 SliderBar.InputBegan:Connect(function(input)
609 if input.UserInputType == Enum.UserInputType.MouseButton1 then
610 dragging = true
611 end
612 end)
613
614 SliderBar.InputEnded:Connect(function(input)
615 if input.UserInputType == Enum.UserInputType.MouseButton1 then
616 dragging = false
617 end
618 end)
619
620 SliderBar.InputBegan:Connect(function(input)
621 if input.UserInputType == Enum.UserInputType.MouseButton1 then
622 library4:SetValue(input)
623 end
624 end)
625
626 UIS.InputChanged:Connect(function(input)
627 if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then
628 library4:SetValue(input)
629 end
630 end)
631
632 local obj = {
633 ["Type"] = "Slider",
634 ["Instance"] = Slider,
635 ["Api"] = library4
636 }
637 table.insert(library2["Tabs"][name], obj)
638 library4["Object"] = obj
639 return library4
640 end
641
642 function library3:CreateLabel(text)
643 local library4 = {}
644 local Label = Instance.new("TextLabel")
645 local UICorner_7 = Instance.new("UICorner")
646 local Icon_4 = Instance.new("ImageLabel")
647 local Title_5 = Instance.new("TextLabel")
648
649 Label.Name = text.."Label"
650 Label.Parent = Tab
651 Label.BackgroundColor3 = theme.LightContrast
652 Label.BackgroundTransparency = 0
653 Label.Position = UDim2.new(0, 0, 0.336569577, 0)
654 Label.Size = UDim2.new(0, 375, 0, 50)
655 Label.Font = Enum.Font.SourceSans
656 Label.Text = ""
657 Label.TextColor3 = Color3.fromRGB(0, 0, 0)
658 Label.TextSize = 14.000
659
660 UICorner_7.CornerRadius = UDim.new(0, 6)
661 UICorner_7.Parent = Label
662
663 Icon_4.Name = "Icon"
664 Icon_4.Parent = Label
665 Icon_4.AnchorPoint = Vector2.new(0, 0.5)
666 Icon_4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
667 Icon_4.BackgroundTransparency = 1.000
668 Icon_4.ClipsDescendants = true
669 Icon_4.Position = UDim2.new(0.032333333, 0, 0.5, 0)
670 Icon_4.Size = UDim2.new(0, 25, 0, 24)
671 Icon_4.Image = "rbxassetid://3926305904"
672 Icon_4.ImageRectOffset = Vector2.new(584, 4)
673 Icon_4.ImageRectSize = Vector2.new(36, 36)
674 Icon_4.ScaleType = Enum.ScaleType.Crop
675 Icon_4.SliceScale = 0.500
676 Icon_4.ImageColor3 = theme.TextColor
677
678 Title_5.Name = "Title"
679 Title_5.Parent = Label
680 Title_5.AnchorPoint = Vector2.new(0, 0.5)
681 Title_5.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
682 Title_5.BackgroundTransparency = 1.000
683 Title_5.Position = UDim2.new(0.141000003, 0, 0.5, 0)
684 Title_5.Size = UDim2.new(0, 101, 0, 21)
685 Title_5.Font = Enum.Font.GothamSemibold
686 Title_5.TextColor3 = theme.TextColor
687 Title_5.TextSize = 14.000
688 Title_5.TextXAlignment = Enum.TextXAlignment.Left
689 Title_5.Text = text
690
691 function library4:Update(textnew)
692 Title_5.Text = textnew
693 end
694
695 local obj = {
696 ["Type"] = "Label",
697 ["Instance"] = Label,
698 ["Api"] = library4
699 }
700 table.insert(library2["Tabs"][name], obj)
701 library4["Object"] = obj
702 return library4
703 end
704
705 function library3:CreateBind(text, originalBind, callback)
706 local library4 = {}
707 library["IsBinding"] = false
708 library4["IsBinding"] = false
709 library4["Bind"] = originalBind
710 callback = callback or function() end
711
712 local Keybind = Instance.new("TextLabel")
713 local UICorner_8 = Instance.new("UICorner")
714 local Title_6 = Instance.new("TextLabel")
715 local Icon_5 = Instance.new("TextLabel")
716 local UICorner_9 = Instance.new("UICorner")
717 local Edit = Instance.new("ImageButton")
718 local BindText = Instance.new("TextLabel")
719
720 Keybind.Name = text.."Bind"
721 Keybind.Parent = Tab
722 Keybind.BackgroundColor3 = theme.LightContrast
723 Keybind.BackgroundTransparency = 0
724 Keybind.Position = UDim2.new(0, 0, 0.336569577, 0)
725 Keybind.Size = UDim2.new(0, 375, 0, 50)
726 Keybind.Font = Enum.Font.SourceSans
727 Keybind.Text = ""
728 Keybind.TextColor3 = Color3.fromRGB(0, 0, 0)
729 Keybind.TextSize = 14.000
730
731 UICorner_8.CornerRadius = UDim.new(0, 6)
732 UICorner_8.Parent = Keybind
733
734 Title_6.Name = "Title"
735 Title_6.Parent = Keybind
736 Title_6.AnchorPoint = Vector2.new(0, 0.5)
737 Title_6.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
738 Title_6.BackgroundTransparency = 1.000
739 Title_6.Position = UDim2.new(0.141000003, 0, 0.5, 0)
740 Title_6.Size = UDim2.new(0, 101, 0, 21)
741 Title_6.Font = Enum.Font.GothamSemibold
742 Title_6.Text = text
743 Title_6.TextColor3 = theme.TextColor
744 Title_6.TextSize = 14.000
745 Title_6.TextXAlignment = Enum.TextXAlignment.Left
746
747 Icon_5.Name = "Icon"
748 Icon_5.Parent = Keybind
749 Icon_5.AnchorPoint = Vector2.new(0, 0.5)
750 Icon_5.Position = UDim2.new(0.0320000015, 0, 0.5, 0)
751 Icon_5.Size = UDim2.new(0, 25, 0, 24)
752 Icon_5.Font = Enum.Font.GothamBold
753 Icon_5.Text = a and o or "�"
754 Icon_5.TextColor3 = theme.Darkness
755 Icon_5.TextSize = 14.000
756 Icon_5.BackgroundColor3 = theme.TextColor
757
758 UICorner_9.CornerRadius = UDim.new(0, 4)
759 UICorner_9.Parent = Icon_5
760
761 Edit.Name = "Edit"
762 Edit.Parent = Keybind
763 Edit.BackgroundTransparency = 1.000
764 Edit.LayoutOrder = 5
765 Edit.Position = UDim2.new(0.903674901, 0, 0.248771951, 0)
766 Edit.Size = UDim2.new(0, 25, 0, 25)
767 Edit.ZIndex = 2
768 Edit.Image = "rbxassetid://3926305904"
769 Edit.ImageRectOffset = Vector2.new(284, 644)
770 Edit.ImageRectSize = Vector2.new(36, 36)
771 Edit.ImageColor3 = theme.TextColor
772
773 BindText.Name = "BindText"
774 BindText.Parent = Keybind
775 BindText.AnchorPoint = Vector2.new(0, 0.5)
776 BindText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
777 BindText.BackgroundTransparency = 1.000
778 BindText.Position = UDim2.new(0.594333351, 0, 0.5, 0)
779 BindText.Size = UDim2.new(0, 93, 0, 21)
780 BindText.Font = Enum.Font.GothamSemibold
781 BindText.Text = o
782 BindText.TextColor3 = theme.TextColor
783 BindText.TextSize = 14.000
784 BindText.TextXAlignment = Enum.TextXAlignment.Right
785 Edit.MouseButton1Click:Connect(function()
786 library4["IsBinding"] = true
787 library["IsBinding"] = true
788 BindText.Text = "Press a key..."
789 end)
790
791 getgenv().userInputConnection = UIS.InputEnded:Connect(function(input)
792 if input.KeyCode == Enum.KeyCode.Unknown then return end
793 local TextBoxFocused = UIS:GetFocusedTextBox()
794 if TextBoxFocused then return end
795 if input.KeyCode == Enum.KeyCode.Backspace then
796 library4["IsBinding"] = false
797 library["IsBinding"] = false
798 library4["Bind"] = nil
799 Icon_5.Text = "␀"
800 end
801 if library4["IsBinding"] then
802 library4["Bind"] = input.KeyCode
803 library4["IsBinding"] = false
804 library["IsBinding"] = false
805 else
806 if input.KeyCode == library4["Bind"] then
807 spawn(function() callback(library4["Bind"]) end)
808 end
809 end
810 end)
811 local obj = {
812 ["Type"] = "Bind",
813 ["Instance"] = Keybind,
814 ["Api"] = library4
815 }
816 table.insert(library2["Tabs"][name], obj)
817 library4["Object"] = obj
818 return library4
819 end
820
821 function library3:CreateDropdown(text, list, callback)
822 local library4 = {}
823 library4["Options"] = {}
824 library4["Expanded"] = false
825
826 local Dropdown = Instance.new("TextButton")
827 local UICorner_10 = Instance.new("UICorner")
828 local Title_7 = Instance.new("TextLabel")
829 local Icon_6 = Instance.new("ImageLabel")
830
831 Dropdown.Name = text.."Dropdown"
832 Dropdown.Parent = Tab
833 Dropdown.BackgroundColor3 = theme.LightContrast
834 Dropdown.BackgroundTransparency = 0
835 Dropdown.Position = UDim2.new(0, 0, 0.158576056, 0)
836 Dropdown.Size = UDim2.new(0, 375, 0, 50)
837 Dropdown.Font = Enum.Font.SourceSans
838 Dropdown.Text = ""
839 Dropdown.TextColor3 = Color3.fromRGB(0, 0, 0)
840 Dropdown.TextSize = 14.000
841
842 UICorner_10.CornerRadius = UDim.new(0, 6)
843 UICorner_10.Parent = Dropdown
844
845 Title_7.Name = "Title"
846 Title_7.Parent = Dropdown
847 Title_7.AnchorPoint = Vector2.new(0, 0.5)
848 Title_7.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
849 Title_7.BackgroundTransparency = 1.000
850 Title_7.Position = UDim2.new(0.141000003, 0, 0.5, 0)
851 Title_7.Size = UDim2.new(0, 263, 0, 21)
852 Title_7.Font = Enum.Font.GothamSemibold
853 Title_7.Text = text
854 Title_7.TextColor3 = theme.TextColor
855 Title_7.TextSize = 14.000
856 Title_7.TextXAlignment = Enum.TextXAlignment.Left
857
858 Icon_6.Name = "Icon"
859 Icon_6.Parent = Dropdown
860 Icon_6.AnchorPoint = Vector2.new(0, 0.5)
861 Icon_6.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
862 Icon_6.BackgroundTransparency = 1.000
863 Icon_6.ClipsDescendants = true
864 Icon_6.Position = UDim2.new(0.031, 0 ,0.5, 0)
865 Icon_6.Size = UDim2.new(0, 27, 0, 27)
866 Icon_6.Image = "rbxassetid://3926305904"
867 Icon_6.ImageRectOffset = Vector2.new(484, 204)
868 Icon_6.ImageRectSize = Vector2.new(36, 36)
869 Icon_6.ImageColor3 = theme.TextColor
870
871 function library4:CreateOption(text)
872 local Option = Instance.new("TextButton")
873 local UICorner_11 = Instance.new("UICorner")
874 local Title_8 = Instance.new("TextLabel")
875
876 local ending = "Option"
877 for i = 1,100 do
878 if i == 1 then i = "" end
879 if not Tab:FindFirstChild(tostring(text).."Option"..tostring(i)) then
880 ending = "Option"..tostring(i)
881 break
882 end
883 end
884 library4["Options"][tostring(text)..ending] = {
885 ["Value"] = text,
886 ["Instance"] = Option
887 }
888 library4["Connections"] = {}
889 Option.Name = tostring(text)..ending
890 Option.Parent = Tab
891 Option.BackgroundColor3 = theme.LightContrast
892 Option.BackgroundTransparency = 0
893 Option.Position = UDim2.new(0, 0, 0.666666687, 0)
894 Option.Size = UDim2.new(0, 354, 0, 50)
895 Option.Font = Enum.Font.SourceSans
896 Option.Text = ""
897 Option.TextColor3 = Color3.fromRGB(0, 0, 0)
898 Option.TextSize = 14.000
899 Option.Visible = false
900
901 UICorner_11.CornerRadius = UDim.new(0, 6)
902 UICorner_11.Parent = Option
903
904 Title_8.Name = "Title"
905 Title_8.Parent = Option
906 Title_8.AnchorPoint = Vector2.new(0, 0.5)
907 Title_8.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
908 Title_8.BackgroundTransparency = 1.000
909 Title_8.Position = UDim2.new(0.0441919193, 0, 0.5, 0)
910 Title_8.Size = UDim2.new(0, 291, 0, 21)
911 Title_8.Font = Enum.Font.GothamSemibold
912 Title_8.Text = "• "..tostring(text)
913 Title_8.TextColor3 = theme.TextColor
914 Title_8.TextSize = 14.000
915 Title_8.TextXAlignment = Enum.TextXAlignment.Left
916
917 local isFound = false
918 for i,v in pairs(library2["Tabs"][name]) do
919 if type(v) == "table" then
920 if v.Instance == Option then
921 isFound = true
922 end
923 if isFound and v.Instance ~= Option then
924 spawn(function()
925 local old = v.Instance.Parent
926 v.Instance.Parent = nil
927 v.Instance.Parent = old
928 end)
929 end
930 end
931 end
932
933 return Option
934 end
935
936 function library4:CreateOptions(options)
937 for i,v in pairs(options) do
938 local option = library4:CreateOption(v)
939 end
940 end
941 function library4:RefreshOptions(options)
942 options = options or {}
943 for i,v in pairs(library4["Options"]) do
944 v.Instance:Destroy()
945 end
946 Tab.CanvasSize = UDim2.new(0, Tab.AbsoluteSize.X, 0, UIListLayout_2.AbsoluteContentSize.Y)
947 library4["Expanded"] = false
948 library4:CreateOptions(options)
949 end
950 library4:CreateOptions(list)
951 Dropdown.MouseButton1Click:Connect(function()
952 if library4["Expanded"] then
953 for i,v in pairs(library4["Options"]) do
954 v.Instance.Visible = false
955 end
956 for i,v in pairs(library4["Connections"]) do
957 v:Disconnect()
958 end
959 else
960 for i,v in pairs(library4["Options"]) do
961 v.Instance.Visible = true
962 library4["Connections"][i] = v.Instance.MouseButton1Click:Connect(function()
963 spawn(function() callback(v.Value) end)
964 library4["Value"] = v.Value
965 library4["Expanded"] = false
966 for i,v in pairs(library4["Connections"]) do
967 v:Disconnect()
968 end
969 Dropdown.Title.Text = text.." - "..tostring(v.Value)
970 for i2, v2 in pairs(library4["Options"]) do
971 v2.Instance.Visible = false
972 end
973 Tab.CanvasSize = UDim2.new(0, Tab.AbsoluteSize.X, 0, UIListLayout_2.AbsoluteContentSize.Y)
974 end)
975 end
976 end
977 library4["Expanded"] = not library4["Expanded"]
978 Tab.CanvasSize = UDim2.new(0, Tab.AbsoluteSize.X, 0, UIListLayout_2.AbsoluteContentSize.Y)
979 end)
980 local obj = {
981 ["Type"] = "Dropdown",
982 ["Instance"] = Dropdown,
983 ["Api"] = library4
984 }
985 table.insert(library2["Tabs"][name], obj)
986 library4["Object"] = obj
987 return library4
988 end
989
990 function library3:CreateTextList(text, callback)
991 local library4 = {}
992 library4["List"] = {}
993 library4["ListValues"] = {}
994 library4["Expanded"] = true
995
996 local Textlist = Instance.new("TextButton")
997 local UICorner = Instance.new("UICorner")
998 local Title = Instance.new("TextLabel")
999 local Icon = Instance.new("ImageLabel")
1000 local Add = Instance.new("ImageButton")
1001
1002 Textlist.Name = text.."Textlist"
1003 Textlist.Parent = Tab
1004 Textlist.BackgroundColor3 = theme.LightContrast
1005 Textlist.BackgroundTransparency = 0
1006 Textlist.Position = UDim2.new(0, 0, 0.158576056, 0)
1007 Textlist.Size = UDim2.new(0, 375, 0, 50)
1008 Textlist.Font = Enum.Font.SourceSans
1009 Textlist.Text = ""
1010 Textlist.TextColor3 = Color3.fromRGB(0, 0, 0)
1011 Textlist.TextSize = 14.000
1012
1013 UICorner.CornerRadius = UDim.new(0, 6)
1014 UICorner.Parent = Textlist
1015
1016 Title.Name = "Title"
1017 Title.Parent = Textlist
1018 Title.AnchorPoint = Vector2.new(0, 0.5)
1019 Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
1020 Title.BackgroundTransparency = 1.000
1021 Title.Position = UDim2.new(0.141000003, 0, 0.5, 0)
1022 Title.Size = UDim2.new(0, 263, 0, 21)
1023 Title.Font = Enum.Font.GothamSemibold
1024 Title.Text = text
1025 Title.TextColor3 = theme.TextColor
1026 Title.TextSize = 14.000
1027 Title.TextXAlignment = Enum.TextXAlignment.Left
1028
1029 Icon.Name = "Icon"
1030 Icon.Parent = Textlist
1031 Icon.AnchorPoint = Vector2.new(0, 0.5)
1032 Icon.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
1033 Icon.BackgroundTransparency = 1.000
1034 Icon.ClipsDescendants = true
1035 Icon.Position = UDim2.new(0.032333333, 0, 0.5, 0)
1036 Icon.Size = UDim2.new(0, 25, 0, 24)
1037 Icon.Image = "rbxassetid://3926305904"
1038 Icon.ImageRectOffset = Vector2.new(44, 204)
1039 Icon.ImageRectSize = Vector2.new(36, 36)
1040 Icon.ScaleType = Enum.ScaleType.Crop
1041 Icon.SliceScale = 0.500
1042 Icon.ImageColor3 = theme.TextColor
1043
1044 Add.Name = "Add"
1045 Add.Parent = Textlist
1046 Add.AnchorPoint = Vector2.new(0.5, 0.5)
1047 Add.BackgroundTransparency = 1.000
1048 Add.LayoutOrder = 3
1049 Add.Position = UDim2.new(0.934666634, 0, 0.5, 0)
1050 Add.Size = UDim2.new(0, 25, 0, 25)
1051 Add.ZIndex = 2
1052 Add.Image = "rbxassetid://3926307971"
1053 Add.ImageRectOffset = Vector2.new(324, 364)
1054 Add.ImageRectSize = Vector2.new(36, 36)
1055
1056 function library4:CreateTextOption()
1057 local TextOption = Instance.new("TextLabel")
1058 local UICorner_2 = Instance.new("UICorner")
1059 local Textbox6 = Instance.new("TextBox")
1060 local UICorner_3 = Instance.new("UICorner")
1061 local Remove = Instance.new("TextButton")
1062
1063 local ending = "TextOption"
1064 for i = 1,100 do
1065 if i == 1 then i = "" end
1066 if not Tab:FindFirstChild(tostring(text).."TextOption"..tostring(i)) then
1067 ending = "TextOption"..tostring(i)
1068 break
1069 end
1070 end
1071 library4["List"][text..ending] = TextOption
1072 TextOption.Name = text..ending
1073 TextOption.Parent = Tab
1074 TextOption.BackgroundColor3 = theme.LightContrast
1075 TextOption.BackgroundTransparency = 0
1076 TextOption.Position = UDim2.new(0.0506666675, 0, 0.514563084, 0)
1077 TextOption.Size = UDim2.new(0, 356, 0, 50)
1078 TextOption.Font = Enum.Font.SourceSans
1079 TextOption.Text = ""
1080 TextOption.TextColor3 = Color3.fromRGB(0, 0, 0)
1081 TextOption.TextSize = 14.000
1082
1083 UICorner_2.CornerRadius = UDim.new(0, 6)
1084 UICorner_2.Parent = TextOption
1085
1086 Textbox6.Name = "Textbox"
1087 Textbox6.Parent = TextOption
1088 Textbox6.AnchorPoint = Vector2.new(0.5, 0.5)
1089 Textbox6.BackgroundColor3 = theme.DarkContrast
1090 Textbox6.BorderSizePixel = 0
1091 Textbox6.Position = UDim2.new(0.5, 0, 0.5, 0)
1092 Textbox6.Size = UDim2.new(0, 288, 0, 20)
1093 Textbox6.Font = Enum.Font.Gotham
1094 Textbox6.PlaceholderColor3 = theme.DarkTextColor
1095 Textbox6.PlaceholderText = "Value"
1096 Textbox6.Text = ""
1097 Textbox6.TextColor3 = theme.DescriptionTextColor
1098 Textbox6.TextSize = 14.000
1099 Textbox6.TextWrapped = true
1100 Textbox6.FocusLost:Connect(function()
1101 local text = Textbox6.Text
1102 library4["ListValues"][TextOption.Name] = text
1103 spawn(function() callback(library4["ListValues"]) end)
1104 end)
1105 Textbox6.Focused:Connect(function()
1106 if library4["ListValues"][TextOption.Name] then library4["ListValues"][TextOption.Name] = nil end
1107 end)
1108
1109 Remove.Name = "Remove"
1110 Remove.Parent = TextOption
1111 Remove.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
1112 Remove.BackgroundTransparency = 1.000
1113 Remove.Position = UDim2.new(0.934339881, 0, 0.339999974, 0)
1114 Remove.Size = UDim2.new(0, 15, 0, 15)
1115 Remove.Font = Enum.Font.SourceSans
1116 Remove.Text = "X"
1117 Remove.TextColor3 = theme.TextColor
1118 Remove.TextSize = 18.000
1119 Remove.TextStrokeColor3 = Color3.fromRGB(4, 4, 21)
1120 Remove.MouseButton1Click:Connect(function()
1121 if library4["ListValues"][TextOption.Name] then library4["ListValues"][TextOption.Name] = nil end
1122 if library4["List"][TextOption.Name] then library4["List"][TextOption.Name] = nil end
1123 TextOption:Remove()
1124 spawn(function() callback(library4["ListValues"]) end)
1125 end)
1126
1127 UICorner_3.CornerRadius = UDim.new(0, 6)
1128 UICorner_3.Parent = Textbox
1129 end
1130
1131 function library4:Expand(bool)
1132 bool = bool or not library4["Expanded"]
1133 library4["Expanded"] = bool
1134 Tab.CanvasSize = UDim2.new(0, Tab.AbsoluteSize.X, 0, UIListLayout_2.AbsoluteContentSize.Y)
1135 for i,v in pairs(library4["List"]) do
1136 v.Visible = library4["Expanded"]
1137 end
1138 end
1139 Textlist.MouseButton1Click:Connect(function()
1140 library4:Expand()
1141 end)
1142
1143 Add.MouseButton1Click:Connect(function()
1144 Tab.CanvasSize = UDim2.new(0, Tab.AbsoluteSize.X, 0, UIListLayout_2.AbsoluteContentSize.Y)
1145 library4:CreateTextOption()
1146 library4:Expand(true)
1147 local isFound = false
1148 for i,v in pairs(library2["Tabs"][name]) do
1149 if type(v) == "table" then
1150 if v.Instance == Textlist then
1151 isFound = true
1152 end
1153 if isFound and v.Instance ~= Textlist then
1154 spawn(function()
1155 local old = v.Instance.Parent
1156 v.Instance.Parent = nil
1157 v.Instance.Parent = old
1158 end)
1159 end
1160 end
1161 end
1162 end)
1163
1164 local obj = {
1165 ["Type"] = "TextList",
1166 ["Instance"] = Textlist,
1167 ["Api"] = library4,
1168 }
1169 table.insert(library2["Tabs"][name], obj)
1170 library4["Object"] = obj
1171 return library4
1172 end
1173
1174 function library3:CreateColorSlider(text, callback)
1175 callback = callback or function() end
1176 local min,max = 0, 1
1177 local library4 = {}
1178
1179 local ColorSlider = Instance.new("TextLabel")
1180 local UICorner = Instance.new("UICorner")
1181 local Icon = Instance.new("ImageLabel")
1182 local Title = Instance.new("TextLabel")
1183 local SliderBar = Instance.new("TextButton")
1184 local UICorner_2 = Instance.new("UICorner")
1185 local Slider = Instance.new("TextButton")
1186 local UICorner_3 = Instance.new("UICorner")
1187 local UIGradient = Instance.new("UIGradient")
1188 local Preview = Instance.new("Frame")
1189 local UICorner_4 = Instance.new("UICorner")
1190
1191 ColorSlider.Name = text.."ColorSlider"
1192 ColorSlider.Parent = Tab
1193 ColorSlider.BackgroundColor3 = theme.LightContrast
1194 ColorSlider.BackgroundTransparency = 0
1195 ColorSlider.Position = UDim2.new(0, 0, 0.336569577, 0)
1196 ColorSlider.Size = UDim2.new(0, 375, 0, 50)
1197 ColorSlider.Font = Enum.Font.SourceSans
1198 ColorSlider.Text = ""
1199 ColorSlider.TextColor3 = Color3.fromRGB(0, 0, 0)
1200 ColorSlider.TextSize = 14.000
1201
1202 UICorner.CornerRadius = UDim.new(0, 6)
1203 UICorner.Parent = ColorSlider
1204
1205 Icon.Name = "Icon"
1206 Icon.Parent = ColorSlider
1207 Icon.AnchorPoint = Vector2.new(0, 0.5)
1208 Icon.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
1209 Icon.BackgroundTransparency = 1.000
1210 Icon.ClipsDescendants = true
1211 Icon.Position = UDim2.new(0.032333333, 0, 0.5, 0)
1212 Icon.Size = UDim2.new(0, 25, 0, 24)
1213 Icon.Image = "rbxassetid://3926305904"
1214 Icon.ImageRectOffset = Vector2.new(804, 924)
1215 Icon.ImageRectSize = Vector2.new(36, 36)
1216 Icon.SliceScale = 0.500
1217 Icon.ImageColor3 = theme.TextColor
1218
1219 Title.Name = "Title"
1220 Title.Parent = ColorSlider
1221 Title.AnchorPoint = Vector2.new(0, 0.5)
1222 Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
1223 Title.BackgroundTransparency = 1.000
1224 Title.Position = UDim2.new(0.141000003, 0, 0.5, 0)
1225 Title.Size = UDim2.new(0, 101, 0, 21)
1226 Title.Font = Enum.Font.GothamSemibold
1227 Title.Text = text
1228 Title.TextColor3 = theme.TextColor
1229 Title.TextSize = 14.000
1230 Title.TextXAlignment = Enum.TextXAlignment.Left
1231
1232 SliderBar.Name = "SliderBar"
1233 SliderBar.Parent = ColorSlider
1234 SliderBar.AnchorPoint = Vector2.new(0, 0.5)
1235 SliderBar.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
1236 SliderBar.BorderSizePixel = 0
1237 SliderBar.Position = UDim2.new(-0.0693333372, 170, 0.5, 0)
1238 SliderBar.Size = UDim2.new(0, 200, 0, 15)
1239 SliderBar.AutoButtonColor = false
1240 SliderBar.Text = ""
1241
1242 UICorner_2.CornerRadius = UDim.new(0, 6)
1243 UICorner_2.Parent = SliderBar
1244
1245 Slider.Name = "Slider"
1246 Slider.Parent = SliderBar
1247 Slider.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
1248 Slider.Position = UDim2.new(0.05, 0, 0.5, 0)
1249 Slider.Size = UDim2.new(0, 20, 0, 20)
1250 Slider.AnchorPoint = Vector2.new(0, 0.5)
1251 Slider.AutoButtonColor = false
1252 Slider.Text = ""
1253 Slider.BorderSizePixel = 0
1254
1255 UICorner_3.CornerRadius = UDim.new(0, 10000000)
1256 UICorner_3.Parent = Slider
1257 local seq = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromHSV(0, 1, 1)), ColorSequenceKeypoint.new(0.1, Color3.fromHSV(0.1, 1, 1)), ColorSequenceKeypoint.new(0.2, Color3.fromHSV(0.2, 1, 1)), ColorSequenceKeypoint.new(0.3, Color3.fromHSV(0.3, 1, 1)), ColorSequenceKeypoint.new(0.4, Color3.fromHSV(0.4, 1, 1)), ColorSequenceKeypoint.new(0.5, Color3.fromHSV(0.5, 1, 1)), ColorSequenceKeypoint.new(0.6, Color3.fromHSV(0.6, 1, 1)), ColorSequenceKeypoint.new(0.7, Color3.fromHSV(0.7, 1, 1)), ColorSequenceKeypoint.new(0.8, Color3.fromHSV(0.8, 1, 1)), ColorSequenceKeypoint.new(0.9, Color3.fromHSV(0.9, 1, 1)), ColorSequenceKeypoint.new(1, Color3.fromHSV(1, 1, 1))})
1258 UIGradient.Color = seq
1259 UIGradient.Parent = SliderBar
1260
1261 Preview.Name = "Preview"
1262 Preview.Parent = ColorSlider
1263 Preview.AnchorPoint = Vector2.new(0, 0.5)
1264 Preview.BackgroundColor3 = Color3.fromRGB(238, 7, 7)
1265 Preview.BorderSizePixel = 0
1266 Preview.Position = UDim2.new(0.480000019, 170, 0.5, 0)
1267 Preview.Size = UDim2.new(0, 15, 0, 15)
1268
1269 UICorner_4.CornerRadius = UDim.new(0, 6)
1270 UICorner_4.Parent = Preview
1271 function library4:SetValue(val)
1272 val = math.clamp(val, min, max)
1273 Preview.BackgroundColor3 = Color3.fromHSV(val, 1, 1)
1274 library4["Value"] = val
1275 Slider.Position = UDim2.new(math.clamp(val, 0.02, 0.95), -9, 0.5, 0)
1276 pcall(function()
1277 spawn(function() callback(val) end)
1278 end)
1279 end
1280
1281 function library4:SetRainbow(val)
1282 library4["RainbowValue"] = val
1283 if library4["RainbowValue"] then
1284 local heh
1285 heh = coroutine.resume(coroutine.create(function()
1286 repeat
1287 wait()
1288 if library4["RainbowValue"] then
1289 library4:SetValue(rainbowvalue)
1290 else
1291 coroutine.yield(heh)
1292 end
1293 until library4["RainbowValue"] == false or getgenv().EngoUILib == nil
1294 end))
1295 end
1296 end
1297
1298 SliderBar.MouseButton1Down:Connect(function()
1299 spawn(function()
1300 click = true
1301 wait(0.25)
1302 click = false
1303 end)
1304 if click then
1305 library4:SetRainbow(not library4["RainbowValue"])
1306 end
1307 local x,y,xscale,yscale,xscale2 = RelativeXY(SliderBar, UIS:GetMouseLocation())
1308 library4:SetValue(min + ((max - min) * xscale))
1309 Slider.Position = UDim2.new(math.clamp(xscale2, 0.02, 0.95), -9, 0.5, 0)
1310 local move
1311 local kill
1312 move = UIS.InputChanged:Connect(function(input)
1313 if input.UserInputType == Enum.UserInputType.MouseMovement then
1314 local x,y,xscale,yscale,xscale2 = RelativeXY(SliderBar, UIS:GetMouseLocation())
1315 library4:SetValue(min + ((max - min) * xscale))
1316 Slider.Position = UDim2.new(math.clamp(xscale2, 0.02, 0.95), -9, 0.5, 0)
1317 end
1318 end)
1319 kill = UIS.InputEnded:Connect(function(input)
1320 if input.UserInputType == Enum.UserInputType.MouseButton1 then
1321 move:Disconnect()
1322 kill:Disconnect()
1323 end
1324 end)
1325 end)
1326
1327 Slider.MouseButton1Down:Connect(function()
1328 spawn(function()
1329 click = true
1330 wait(0.25)
1331 click = false
1332 end)
1333 if click then
1334 library4:SetRainbow(not library4["RainbowValue"])
1335 end
1336 local x,y,xscale,yscale,xscale2 = RelativeXY(SliderBar, UIS:GetMouseLocation())
1337 library4:SetValue(min + ((max - min) * xscale))
1338 Slider.Position = UDim2.new(math.clamp(xscale2, 0.02, 0.95), -9, 0.5, 0)
1339 local move
1340 local kill
1341 move = UIS.InputChanged:Connect(function(input)
1342 if input.UserInputType == Enum.UserInputType.MouseMovement then
1343 local x,y,xscale,yscale,xscale2 = RelativeXY(SliderBar, UIS:GetMouseLocation())
1344 library4:SetValue(min + ((max - min) * xscale))
1345 Slider.Position = UDim2.new(math.clamp(xscale2, 0.02, 0.95), -9, 0.5, 0)
1346 end
1347 end)
1348 kill = UIS.InputEnded:Connect(function(input)
1349 if input.UserInputType == Enum.UserInputType.MouseButton1 then
1350 move:Disconnect()
1351 kill:Disconnect()
1352 end
1353 end)
1354 end)
1355
1356
1357 local obj = {
1358 ["Type"] = "ColorSlider",
1359 ["Instance"] = ColorSlider,
1360 ["Api"] = library4
1361 }
1362 table.insert(library2["Tabs"][name], obj)
1363 library4["Object"] = obj
1364 return library4
1365 end
1366
1367 return library3
1368 end
1369 function library2:CreateSettings()
1370 local settings = library2:CreateTab("Settings")
1371 local hidegui = settings:CreateBind("HideGUI", Enum.KeyCode.RightControl, function(value)
1372 library["Bind"] = value
1373 end)
1374 hidegui.Object.Instance.Icon:Destroy()
1375 local Icon = Instance.new("ImageLabel")
1376 Icon.Name = "Icon"
1377 Icon.Parent = hidegui.Object.Instance
1378 Icon.AnchorPoint = Vector2.new(0, 0.5)
1379 Icon.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
1380 Icon.BackgroundTransparency = 1.000
1381 Icon.ClipsDescendants = true
1382 Icon.Position = UDim2.new(0.032333333, 0, 0.5, 0)
1383 Icon.Size = UDim2.new(0, 25, 0, 24)
1384 Icon.Image = "rbxassetid://3926307971"
1385 Icon.ImageRectOffset = Vector2.new(4, 484)
1386 Icon.ImageRectSize = Vector2.new(36, 36)
1387 Icon.SliceScale = 0.500
1388
1389 local uninject = settings:CreateButton("RemoveGUI", function()
1390 if getgenv().EngoUILib then
1391 onSelfDestroy()
1392 getgenv().EngoUILib:Destroy()
1393 end
1394 end)
1395 return settings
1396 end
1397
1398 function library2:CreateNotification(title, description, callback)
1399 callback = callback or function() end
1400 if EngoUI:FindFirstChild("Notification") then
1401 EngoUI:FindFirstChild("Notification"):Destroy()
1402 end
1403
1404 local Notification = Instance.new("TextLabel")
1405 local UICorner = Instance.new("UICorner")
1406 local Title = Instance.new("TextLabel")
1407 local Description = Instance.new("TextLabel")
1408 local TextButton = Instance.new("TextButton")
1409 local UICorner_2 = Instance.new("UICorner")
1410 local Cancel = Instance.new("TextButton")
1411 local UICorner_3 = Instance.new("UICorner")
1412
1413 Notification.Name = "Notification"
1414 Notification.Parent = EngoUI
1415 Notification.BackgroundColor3 = theme.DarkContrast
1416 Notification.Position = UDim2.new(0.865, 0, 1.5, 0)
1417 Notification.Size = UDim2.new(0, 212, 0, 106)
1418 Notification.Font = Enum.Font.SourceSans
1419 Notification.Text = ""
1420 Notification.TextColor3 = Color3.fromRGB(0, 0, 0)
1421 Notification.TextSize = 14.000
1422
1423 UICorner.CornerRadius = UDim.new(0, 6)
1424 UICorner.Parent = Notification
1425
1426 Title.Name = "Title"
1427 Title.Parent = Notification
1428 Title.AnchorPoint = Vector2.new(0, 0.5)
1429 Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
1430 Title.BackgroundTransparency = 1.000
1431 Title.Position = UDim2.new(0.224436641, 0, 0.0993146822, 0)
1432 Title.Size = UDim2.new(0, 116, 0, 21)
1433 Title.Font = Enum.Font.GothamBold
1434 Title.Text = title
1435 Title.TextColor3 = theme.TextColor
1436 Title.TextSize = 14.000
1437
1438 Description.Name = "Description"
1439 Description.Parent = Notification
1440 Description.AnchorPoint = Vector2.new(0.5, 0.5)
1441 Description.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
1442 Description.BackgroundTransparency = 1.000
1443 Description.Position = UDim2.new(0.501638174, 0, 0.412353516, 0)
1444 Description.Size = UDim2.new(0, 186, 0, 44)
1445 Description.Font = Enum.Font.Gotham
1446 Description.Text = description
1447 Description.TextColor3 = theme.DescriptionTextColor
1448 Description.TextSize = 14.000
1449 Description.TextWrapped = true
1450 Description.TextYAlignment = Enum.TextYAlignment.Top
1451
1452 TextButton.Parent = Notification
1453 TextButton.BackgroundColor3 = theme.LightContrast
1454 TextButton.BorderSizePixel = 0
1455 TextButton.Position = UDim2.new(0.0605381206, 0, 0.710715532, 0)
1456 TextButton.Size = UDim2.new(0, 89, 0, 22)
1457 TextButton.Font = Enum.Font.SourceSans
1458 TextButton.Text = "OK"
1459 TextButton.TextColor3 = theme.TextColor
1460 TextButton.TextSize = 14.000
1461 TextButton.MouseButton1Click:Connect(function()
1462 spawn(function() callback(true) end)
1463 spawn(function()
1464 local goal,timing = UDim2.new(1.5, 0, 0.8, 0), 3
1465 Notification:TweenPosition(goal, Enum.EasingDirection.Out, Enum.EasingStyle.Quint, timing)
1466 wait(timing)
1467 Notification:Destroy()
1468 end)
1469 end)
1470
1471 UICorner_2.CornerRadius = UDim.new(0, 6)
1472 UICorner_2.Parent = TextButton
1473
1474 Cancel.Name = "Cancel"
1475 Cancel.Parent = Notification
1476 Cancel.BackgroundColor3 = theme.LightContrast
1477 Cancel.BorderSizePixel = 0
1478 Cancel.Position = UDim2.new(0.53629154, 0, 0.710715532, 0)
1479 Cancel.Size = UDim2.new(0, 85, 0, 22)
1480 Cancel.Font = Enum.Font.SourceSans
1481 Cancel.Text = "CANCEL"
1482 Cancel.TextColor3 = theme.TextColor
1483 Cancel.TextSize = 14.000
1484 Cancel.MouseButton1Click:Connect(function()
1485 spawn(function() callback(false) end)
1486 spawn(function()
1487 local goal,timing = UDim2.new(1.5, 0, 0.8, 0), 3
1488 Notification:TweenPosition(goal, Enum.EasingDirection.Out, Enum.EasingStyle.Quint, timing)
1489 wait(timing)
1490 Notification:Destroy()
1491 end)
1492 end)
1493
1494 UICorner_3.CornerRadius = UDim.new(0, 6)
1495 UICorner_3.Parent = Cancel
1496 -- Animation:
1497 spawn(function()
1498 local goal = UDim2.new(0.865, 0, 0.8, 0)
1499 Notification:TweenPosition(goal, Enum.EasingDirection.Out, Enum.EasingStyle.Quint, 0.5)
1500 end)
1501 end
1502
1503 return library2
1504end
1505
1506return library