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