Advertisement
Destroyer6667

Legends Of Speed GUI Script *UPDATE 2025*

Jan 21st, 2024 (edited)
2,024
2
Never
2
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 107.78 KB | None | 2 0
  1. --Legends Of Speed GUI--
  2.  
  3. getgenv().autoOrb = false
  4. getgenv().autoGem = false
  5. getgenv().autoHoop = false
  6. getgenv().autoRebirth = false
  7. getgenv().autoRamp = false
  8. getgenv().autoOpen = false
  9. getgenv().autoEvolve = false
  10. getgenv().autoRace = false
  11. getgenv().PetGlitch = false
  12. getgenv().AntiAfk = false
  13. getgenv().FlyJump = false
  14. getgenv().PlayerWalkSpeed = false
  15. getgenv().PlayerJumpPower = false
  16.  
  17. local plyr = game.Players.LocalPlayer
  18. local char = plyr.Character or plyr.CharacterAdded:Wait()
  19. local WS = game:GetService("Workspace")
  20. local RS = game:GetService("ReplicatedStorage")
  21.  
  22. local function getHumanoid(chr)
  23. local human = chr:FindFirstChild("Humanoid")
  24. return human
  25. end
  26.  
  27. local function getRoot(chr)
  28. local rootPart = chr:FindFirstChild("HumanoidRootPart")
  29. return rootPart
  30. end
  31.  
  32. local function TeleportTO(cframe)
  33. if cframe then
  34. if cframe:IsA("Model") then
  35. getRoot(char).CFrame = cframe.PrimaryPart.CFrame
  36. else
  37. getRoot(char).CFrame = cframe.CFrame
  38. end
  39. end
  40. end
  41.  
  42. local function getCurrentPlace()
  43. return plyr.currentMap.Value
  44. end
  45.  
  46. function AutoOrb()
  47. spawn(function()
  48. while getgenv().autoOrb do
  49. RS.rEvents.orbEvent:FireServer("collectOrb", "Ethereal Orb", getCurrentPlace())
  50. RS.rEvents.orbEvent:FireServer("collectOrb", "Ethereal Orb", getCurrentPlace())
  51. RS.rEvents.orbEvent:FireServer("collectOrb", "Ethereal Orb", getCurrentPlace())
  52. RS.rEvents.orbEvent:FireServer("collectOrb", "Ethereal Orb", getCurrentPlace())
  53. RS.rEvents.orbEvent:FireServer("collectOrb", "Ethereal Orb", getCurrentPlace())
  54. RS.rEvents.orbEvent:FireServer("collectOrb", "Ethereal Orb", getCurrentPlace())
  55. RS.rEvents.orbEvent:FireServer("collectOrb", "Ethereal Orb", getCurrentPlace())
  56. RS.rEvents.orbEvent:FireServer("collectOrb", "Ethereal Orb", getCurrentPlace())
  57. RS.rEvents.orbEvent:FireServer("collectOrb", "Ethereal Orb", getCurrentPlace())
  58. RS.rEvents.orbEvent:FireServer("collectOrb", "Ethereal Orb", getCurrentPlace())
  59. RS.rEvents.orbEvent:FireServer("collectOrb", "Ethereal Orb", getCurrentPlace())
  60. RS.rEvents.orbEvent:FireServer("collectOrb", "Ethereal Orb", getCurrentPlace())
  61. task.wait()
  62. end
  63. end)
  64. end
  65.  
  66. function GlitchPets()
  67. spawn(function()
  68. while getgenv().PetGlitch do
  69. RS.rEvents.orbEvent:FireServer("collectOrb", "Yellow Orb", getCurrentPlace())
  70. RS.rEvents.orbEvent:FireServer("collectOrb", "Yellow Orb", getCurrentPlace())
  71. RS.rEvents.orbEvent:FireServer("collectOrb", "Yellow Orb", getCurrentPlace())
  72. RS.rEvents.orbEvent:FireServer("collectOrb", "Yellow Orb", getCurrentPlace())
  73. RS.rEvents.orbEvent:FireServer("collectOrb", "Yellow Orb", getCurrentPlace())
  74. RS.rEvents.orbEvent:FireServer("collectOrb", "Yellow Orb", getCurrentPlace())
  75. RS.rEvents.orbEvent:FireServer("collectOrb", "Yellow Orb", getCurrentPlace())
  76. RS.rEvents.orbEvent:FireServer("collectOrb", "Yellow Orb", getCurrentPlace())
  77. RS.rEvents.orbEvent:FireServer("collectOrb", "Yellow Orb", getCurrentPlace())
  78. RS.rEvents.orbEvent:FireServer("collectOrb", "Yellow Orb", getCurrentPlace())
  79. RS.rEvents.orbEvent:FireServer("collectOrb", "Yellow Orb", getCurrentPlace())
  80. RS.rEvents.orbEvent:FireServer("collectOrb", "Yellow Orb", getCurrentPlace())
  81. RS.rEvents.orbEvent:FireServer("collectOrb", "Yellow Orb", getCurrentPlace())
  82. RS.rEvents.orbEvent:FireServer("collectOrb", "Yellow Orb", getCurrentPlace())
  83. RS.rEvents.orbEvent:FireServer("collectOrb", "Yellow Orb", getCurrentPlace())
  84. RS.rEvents.orbEvent:FireServer("collectOrb", "Yellow Orb", getCurrentPlace())
  85. task.wait()
  86. end
  87. end)
  88. end
  89.  
  90. function AutoGem()
  91. spawn(function()
  92. while getgenv().autoGem do
  93. RS.rEvents.orbEvent:FireServer("collectOrb", "Infernal Gem", getCurrentPlace())
  94. RS.rEvents.orbEvent:FireServer("collectOrb", "Infernal Gem", getCurrentPlace())
  95. RS.rEvents.orbEvent:FireServer("collectOrb", "Infernal Gem", getCurrentPlace())
  96. RS.rEvents.orbEvent:FireServer("collectOrb", "Infernal Gem", getCurrentPlace())
  97. RS.rEvents.orbEvent:FireServer("collectOrb", "Infernal Gem", getCurrentPlace())
  98. RS.rEvents.orbEvent:FireServer("collectOrb", "Infernal Gem", getCurrentPlace())
  99. RS.rEvents.orbEvent:FireServer("collectOrb", "Infernal Gem", getCurrentPlace())
  100. RS.rEvents.orbEvent:FireServer("collectOrb", "Infernal Gem", getCurrentPlace())
  101. RS.rEvents.orbEvent:FireServer("collectOrb", "Infernal Gem", getCurrentPlace())
  102. RS.rEvents.orbEvent:FireServer("collectOrb", "Infernal Gem", getCurrentPlace())
  103. RS.rEvents.orbEvent:FireServer("collectOrb", "Infernal Gem", getCurrentPlace())
  104. task.wait()
  105. end
  106. end)
  107. end
  108.  
  109. function AutoHoop()
  110. spawn(function()
  111. while getgenv().autoHoop and getHumanoid(char) do
  112. for _, v in pairs(WS.Hoops:GetChildren()) do
  113. v.CFrame = getRoot(char).CFrame
  114. end
  115. task.wait()
  116. end
  117. end)
  118. end
  119.  
  120. function AutoRace()
  121. spawn(function()
  122. if game.placeId == 3101667897 then
  123. while getgenv().autoRace do
  124. if getHumanoid(char) then
  125. RS.rEvents.raceEvent:FireServer("joinRace")
  126. TeleportTO(WS.raceMaps.Grassland.finishPart.CFrame)
  127. task.task.wait(0.1)
  128. TeleportTO(WS.raceMaps.Magma.finishPart.CFrame)
  129. task.task.wait(0.1)
  130. TeleportTO(WS.raceMaps.Desert.finishPart.CFrame)
  131. end
  132. task.wait(0.3)
  133. end
  134. elseif game.placeId == 3276265788 then
  135. while getgenv().autoRace do
  136. if getHumanoid(char) then
  137. RS.rEvents.raceEvent:FireServer("joinRace")
  138. TeleportTO(WS.raceMaps.Speedway.finishPart.CFrame)
  139. end
  140. task.wait(0.2)
  141. end
  142. elseif game.placeId == 3232996272 then
  143. while getgenv().autoRace do
  144. if getHumanoid(char) then
  145. RS.rEvents.raceEvent:FireServer("joinRace")
  146. TeleportTO(WS.raceMaps.Starway.finishPart.CFrame)
  147. end
  148. task.wait(0.2)
  149. end
  150. end
  151. end)
  152. end
  153.  
  154. function AutoRebirth()
  155. spawn(function()
  156. while getgenv().autoRebirth do
  157. RS.rEvents.rebirthEvent:FireServer("rebirthRequest")
  158. task.wait()
  159. end
  160. end)
  161. end
  162.  
  163. function AutoRamp()
  164. spawn(function()
  165. while getgenv().autoRamp do
  166. game:GetService("ReplicatedStorage").rEvents.speedRampEvent:FireServer("usedRamp")
  167. game:GetService("ReplicatedStorage").rEvents.speedRampEvent:FireServer("usedRamp")
  168. game:GetService("ReplicatedStorage").rEvents.speedRampEvent:FireServer("usedRamp")
  169. game:GetService("ReplicatedStorage").rEvents.speedRampEvent:FireServer("usedRamp")
  170. game:GetService("ReplicatedStorage").rEvents.speedRampEvent:FireServer("usedRamp")
  171. game:GetService("ReplicatedStorage").rEvents.speedRampEvent:FireServer("usedRamp")
  172. game:GetService("ReplicatedStorage").rEvents.speedRampEvent:FireServer("usedRamp")
  173. game:GetService("ReplicatedStorage").rEvents.speedRampEvent:FireServer("usedRamp")
  174. game:GetService("ReplicatedStorage").rEvents.speedRampEvent:FireServer("usedRamp")
  175. game:GetService("ReplicatedStorage").rEvents.speedRampEvent:FireServer("usedRamp")
  176. game:GetService("ReplicatedStorage").rEvents.speedRampEvent:FireServer("usedRamp")
  177. game:GetService("ReplicatedStorage").rEvents.speedRampEvent:FireServer("usedRamp")
  178. game:GetService("ReplicatedStorage").rEvents.speedRampEvent:FireServer("usedRamp")
  179. task.wait()
  180. end
  181. end)
  182. end
  183.  
  184. local selectedMap
  185. local selectedCrystal
  186.  
  187. function AutoOpen()
  188. spawn(function()
  189. while getgenv().autoOpen do
  190. RS.rEvents.openCrystalRemote:InvokeServer("openCrystal", selectedCrystal)
  191. task.wait()
  192. end
  193. end)
  194. end
  195.  
  196. function AutoEvolve()
  197. spawn(function()
  198. while getgenv().autoEvolve do
  199. for _,v in pairs(plyr.petsFolder:GetChildren()) do
  200. for _,pet in pairs(v:GetChildren()) do
  201. game:GetService("ReplicatedStorage").rEvents.petEvolveEvent:FireServer("evolvePet", pet.Name)
  202. end
  203. end
  204. task.wait()
  205. end
  206. end)
  207. end
  208.  
  209. local SpeedValue
  210. local JumpValue
  211.  
  212. function ToggleSpeed()
  213. spawn(function()
  214. while getgenv().PlayerWalkSpeed == true and SpeedValue do
  215. getHumanoid(char).WalkSpeed = SpeedValue
  216. task.wait()
  217. end
  218. end)
  219. end
  220.  
  221. function ToggleJump()
  222. spawn(function()
  223. while getgenv().PlayerJumpPower == true and SpeedValue do
  224. getHumanoid(char).WalkSpeed = JumpValue
  225. task.wait()
  226. end
  227. end)
  228. end
  229.  
  230.  
  231. local function init()
  232. local UserInputService = game:GetService("UserInputService")
  233. local TweenService = game:GetService("TweenService")
  234. local RunService = game:GetService("RunService")
  235. local LocalPlayer = game:GetService("Players").LocalPlayer
  236. local Mouse = LocalPlayer:GetMouse()
  237. local HttpService = game:GetService("HttpService")
  238.  
  239. local OrionLib = {
  240. Elements = {},
  241. ThemeObjects = {},
  242. Connections = {},
  243. Flags = {},
  244. Themes = {
  245. Default = {
  246. Main = Color3.fromRGB(0, 0, 0),
  247. Second = Color3.fromRGB(0, 0, 0),
  248. Stroke = Color3.fromRGB(50, 50, 50),
  249. Divider = Color3.fromRGB(48, 48, 48),
  250. Text = Color3.fromRGB(255, 255, 255),
  251. TextDark = Color3.fromRGB(255, 255, 255)
  252. }
  253. },
  254. SelectedTheme = "Default",
  255. Folder = nil,
  256. SaveCfg = false
  257. }
  258.  
  259. --Feather Icons https://github.com/evoincorp/lucideblox/tree/master/src/modules/util - Created by 7kayoh
  260. local Icons = {}
  261.  
  262. local Success, Response = pcall(function()
  263. Icons = HttpService:JSONDecode(game:HttpGetAsync("https://raw.githubusercontent.com/evoincorp/lucideblox/master/src/modules/util/icons.json")).icons
  264. end)
  265.  
  266. if not Success then
  267. warn("\nOrion Library - Failed to load Feather Icons. Error code: " .. Response .. "\n")
  268. end
  269.  
  270. local function GetIcon(IconName)
  271. if Icons[IconName] ~= nil then
  272. return Icons[IconName]
  273. else
  274. return nil
  275. end
  276. end
  277.  
  278. local Orion = Instance.new("ScreenGui")
  279. Orion.Name = "Orion"
  280. if syn then
  281. syn.protect_gui(Orion)
  282. Orion.Parent = game.CoreGui
  283. else
  284. Orion.Parent = gethui() or game.CoreGui
  285. end
  286.  
  287. if gethui then
  288. for _, Interface in ipairs(gethui():GetChildren()) do
  289. if Interface.Name == Orion.Name and Interface ~= Orion then
  290. Interface:Destroy()
  291. end
  292. end
  293. else
  294. for _, Interface in ipairs(game.CoreGui:GetChildren()) do
  295. if Interface.Name == Orion.Name and Interface ~= Orion then
  296. Interface:Destroy()
  297. end
  298. end
  299. end
  300.  
  301. function OrionLib:IsRunning()
  302. if gethui then
  303. return Orion.Parent == gethui()
  304. else
  305. return Orion.Parent == game:GetService("CoreGui")
  306. end
  307.  
  308. end
  309.  
  310. local function AddConnection(Signal, Function)
  311. if (not OrionLib:IsRunning()) then
  312. return
  313. end
  314. local SignalConnect = Signal:Connect(Function)
  315. table.insert(OrionLib.Connections, SignalConnect)
  316. return SignalConnect
  317. end
  318.  
  319. task.spawn(function()
  320. while (OrionLib:IsRunning()) do
  321. task.wait()
  322. end
  323.  
  324. for _, Connection in next, OrionLib.Connections do
  325. Connection:Disconnect()
  326. end
  327. end)
  328.  
  329. local function MakeDraggable(DragPoint, Main)
  330. pcall(function()
  331. local Dragging, DragInput, MousePos, FramePos = false
  332. AddConnection(DragPoint.InputBegan, function(Input)
  333. if Input.UserInputType == Enum.UserInputType.MouseButton1 then
  334. Dragging = true
  335. MousePos = Input.Position
  336. FramePos = Main.Position
  337.  
  338. Input.Changed:Connect(function()
  339. if Input.UserInputState == Enum.UserInputState.End then
  340. Dragging = false
  341. end
  342. end)
  343. end
  344. end)
  345. AddConnection(DragPoint.InputChanged, function(Input)
  346. if Input.UserInputType == Enum.UserInputType.MouseMovement then
  347. DragInput = Input
  348. end
  349. end)
  350. AddConnection(UserInputService.InputChanged, function(Input)
  351. if Input == DragInput and Dragging then
  352. local Delta = Input.Position - MousePos
  353. --TweenService:Create(Main, TweenInfo.new(0.05, Enum.EasingStyle.Quint, Enum.EasingDirection.Out), {Position = UDim2.new(FramePos.X.Scale,FramePos.X.Offset + Delta.X, FramePos.Y.Scale, FramePos.Y.Offset + Delta.Y)}):Play()
  354. Main.Position = UDim2.new(FramePos.X.Scale,FramePos.X.Offset + Delta.X, FramePos.Y.Scale, FramePos.Y.Offset + Delta.Y)
  355. end
  356. end)
  357. end)
  358. end
  359.  
  360. local function Create(Name, Properties, Children)
  361. local Object = Instance.new(Name)
  362. for i, v in next, Properties or {} do
  363. Object[i] = v
  364. end
  365. for i, v in next, Children or {} do
  366. v.Parent = Object
  367. end
  368. return Object
  369. end
  370.  
  371. local function CreateElement(ElementName, ElementFunction)
  372. OrionLib.Elements[ElementName] = function(...)
  373. return ElementFunction(...)
  374. end
  375. end
  376.  
  377. local function MakeElement(ElementName, ...)
  378. local NewElement = OrionLib.Elements[ElementName](...)
  379. return NewElement
  380. end
  381.  
  382. local function SetProps(Element, Props)
  383. table.foreach(Props, function(Property, Value)
  384. Element[Property] = Value
  385. end)
  386. return Element
  387. end
  388.  
  389. local function SetChildren(Element, Children)
  390. table.foreach(Children, function(_, Child)
  391. Child.Parent = Element
  392. end)
  393. return Element
  394. end
  395.  
  396. local function Round(Number, Factor)
  397. local Result = math.floor(Number/Factor + (math.sign(Number) * 0.5)) * Factor
  398. if Result < 0 then Result = Result + Factor end
  399. return Result
  400. end
  401.  
  402. local function ReturnProperty(Object)
  403. if Object:IsA("Frame") or Object:IsA("TextButton") then
  404. return "BackgroundColor3"
  405. end
  406. if Object:IsA("ScrollingFrame") then
  407. return "ScrollBarImageColor3"
  408. end
  409. if Object:IsA("UIStroke") then
  410. return "Color"
  411. end
  412. if Object:IsA("TextLabel") or Object:IsA("TextBox") then
  413. return "TextColor3"
  414. end
  415. if Object:IsA("ImageLabel") or Object:IsA("ImageButton") then
  416. return "ImageColor3"
  417. end
  418. end
  419.  
  420. local function AddThemeObject(Object, Type)
  421. if not OrionLib.ThemeObjects[Type] then
  422. OrionLib.ThemeObjects[Type] = {}
  423. end
  424. table.insert(OrionLib.ThemeObjects[Type], Object)
  425. Object[ReturnProperty(Object)] = OrionLib.Themes[OrionLib.SelectedTheme][Type]
  426. return Object
  427. end
  428.  
  429. local function SetTheme()
  430. for Name, Type in pairs(OrionLib.ThemeObjects) do
  431. for _, Object in pairs(Type) do
  432. Object[ReturnProperty(Object)] = OrionLib.Themes[OrionLib.SelectedTheme][Name]
  433. end
  434. end
  435. end
  436.  
  437. local function PackColor(Color)
  438. return {R = Color.R * 255, G = Color.G * 255, B = Color.B * 255}
  439. end
  440.  
  441. local function UnpackColor(Color)
  442. return Color3.fromRGB(Color.R, Color.G, Color.B)
  443. end
  444.  
  445. local function LoadCfg(Config)
  446. local Data = HttpService:JSONDecode(Config)
  447. table.foreach(Data, function(a,b)
  448. if OrionLib.Flags[a] then
  449. spawn(function()
  450. if OrionLib.Flags[a].Type == "Colorpicker" then
  451. OrionLib.Flags[a]:Set(UnpackColor(b))
  452. else
  453. OrionLib.Flags[a]:Set(b)
  454. end
  455. end)
  456. else
  457. warn("Orion Library Config Loader - Could not find ", a ,b)
  458. end
  459. end)
  460. end
  461.  
  462. local function SaveCfg(Name)
  463. local Data = {}
  464. for i,v in pairs(OrionLib.Flags) do
  465. if v.Save then
  466. if v.Type == "Colorpicker" then
  467. Data[i] = PackColor(v.Value)
  468. else
  469. Data[i] = v.Value
  470. end
  471. end
  472. end
  473. writefile(OrionLib.Folder .. "/" .. Name .. ".txt", tostring(HttpService:JSONEncode(Data)))
  474. end
  475.  
  476. local WhitelistedMouse = {Enum.UserInputType.MouseButton1, Enum.UserInputType.MouseButton2,Enum.UserInputType.MouseButton3}
  477. local BlacklistedKeys = {Enum.KeyCode.Unknown,Enum.KeyCode.W,Enum.KeyCode.A,Enum.KeyCode.S,Enum.KeyCode.D,Enum.KeyCode.Up,Enum.KeyCode.Left,Enum.KeyCode.Down,Enum.KeyCode.Right,Enum.KeyCode.Slash,Enum.KeyCode.Tab,Enum.KeyCode.Backspace,Enum.KeyCode.Escape}
  478.  
  479. local function CheckKey(Table, Key)
  480. for _, v in next, Table do
  481. if v == Key then
  482. return true
  483. end
  484. end
  485. end
  486.  
  487. CreateElement("Corner", function(Scale, Offset)
  488. local Corner = Create("UICorner", {
  489. CornerRadius = UDim.new(Scale or 0, Offset or 10)
  490. })
  491. return Corner
  492. end)
  493.  
  494. CreateElement("Stroke", function(Color, Thickness)
  495. local Stroke = Create("UIStroke", {
  496. Color = Color or Color3.fromRGB(255, 255, 255),
  497. Thickness = Thickness or 1
  498. })
  499. return Stroke
  500. end)
  501.  
  502. CreateElement("List", function(Scale, Offset)
  503. local List = Create("UIListLayout", {
  504. SortOrder = Enum.SortOrder.LayoutOrder,
  505. Padding = UDim.new(Scale or 0, Offset or 0)
  506. })
  507. return List
  508. end)
  509.  
  510. CreateElement("Padding", function(Bottom, Left, Right, Top)
  511. local Padding = Create("UIPadding", {
  512. PaddingBottom = UDim.new(0, Bottom or 4),
  513. PaddingLeft = UDim.new(0, Left or 4),
  514. PaddingRight = UDim.new(0, Right or 4),
  515. PaddingTop = UDim.new(0, Top or 4)
  516. })
  517. return Padding
  518. end)
  519.  
  520. CreateElement("TFrame", function()
  521. local TFrame = Create("Frame", {
  522. BackgroundTransparency = 1
  523. })
  524. return TFrame
  525. end)
  526.  
  527. CreateElement("Frame", function(Color)
  528. local Frame = Create("Frame", {
  529. BackgroundColor3 = Color or Color3.fromRGB(255, 255, 255),
  530. BorderSizePixel = 0
  531. })
  532. return Frame
  533. end)
  534.  
  535. CreateElement("RoundFrame", function(Color, Scale, Offset)
  536. local Frame = Create("Frame", {
  537. BackgroundColor3 = Color or Color3.fromRGB(255, 255, 255),
  538. BorderSizePixel = 0
  539. }, {
  540. Create("UICorner", {
  541. CornerRadius = UDim.new(Scale, Offset)
  542. })
  543. })
  544. return Frame
  545. end)
  546.  
  547. CreateElement("Button", function()
  548. local Button = Create("TextButton", {
  549. Text = "",
  550. AutoButtonColor = false,
  551. BackgroundTransparency = 1,
  552. BorderSizePixel = 0
  553. })
  554. return Button
  555. end)
  556.  
  557. CreateElement("ScrollFrame", function(Color, Width)
  558. local ScrollFrame = Create("ScrollingFrame", {
  559. BackgroundTransparency = 1,
  560. MidImage = "rbxassetid://7445543667",
  561. BottomImage = "rbxassetid://7445543667",
  562. TopImage = "rbxassetid://7445543667",
  563. ScrollBarImageColor3 = Color,
  564. BorderSizePixel = 0,
  565. ScrollBarThickness = Width,
  566. CanvasSize = UDim2.new(0, 0, 0, 0)
  567. })
  568. return ScrollFrame
  569. end)
  570.  
  571. CreateElement("Image", function(ImageID)
  572. local ImageNew = Create("ImageLabel", {
  573. Image = ImageID,
  574. BackgroundTransparency = 1
  575. })
  576.  
  577. if GetIcon(ImageID) ~= nil then
  578. ImageNew.Image = GetIcon(ImageID)
  579. end
  580.  
  581. return ImageNew
  582. end)
  583.  
  584. CreateElement("ImageButton", function(ImageID)
  585. local Image = Create("ImageButton", {
  586. Image = ImageID,
  587. BackgroundTransparency = 1
  588. })
  589. return Image
  590. end)
  591.  
  592. CreateElement("Label", function(Text, TextSize, Transparency)
  593. local Label = Create("TextLabel", {
  594. Text = Text or "",
  595. TextColor3 = Color3.fromRGB(240, 240, 240),
  596. TextTransparency = Transparency or 0,
  597. TextSize = TextSize or 15,
  598. Font = Enum.Font.Gotham,
  599. RichText = true,
  600. BackgroundTransparency = 1,
  601. TextXAlignment = Enum.TextXAlignment.Left
  602. })
  603. return Label
  604. end)
  605.  
  606. local NotificationHolder = SetProps(SetChildren(MakeElement("TFrame"), {
  607. SetProps(MakeElement("List"), {
  608. HorizontalAlignment = Enum.HorizontalAlignment.Center,
  609. SortOrder = Enum.SortOrder.LayoutOrder,
  610. VerticalAlignment = Enum.VerticalAlignment.Bottom,
  611. Padding = UDim.new(0, 5)
  612. })
  613. }), {
  614. Position = UDim2.new(1, -25, 1, -25),
  615. Size = UDim2.new(0, 300, 1, -25),
  616. AnchorPoint = Vector2.new(1, 1),
  617. Parent = Orion
  618. })
  619.  
  620. function OrionLib:MakeNotification(NotificationConfig)
  621. spawn(function()
  622. NotificationConfig.Name = NotificationConfig.Name or "Notification"
  623. NotificationConfig.Content = NotificationConfig.Content or "Test"
  624. NotificationConfig.Image = NotificationConfig.Image or "rbxassetid://4384403532"
  625. NotificationConfig.Time = NotificationConfig.Time or 15
  626.  
  627. local NotificationParent = SetProps(MakeElement("TFrame"), {
  628. Size = UDim2.new(1, 0, 0, 0),
  629. AutomaticSize = Enum.AutomaticSize.Y,
  630. Parent = NotificationHolder
  631. })
  632.  
  633. local NotificationFrame = SetChildren(SetProps(MakeElement("RoundFrame", Color3.fromRGB(25, 25, 25), 0, 10), {
  634. Parent = NotificationParent,
  635. Size = UDim2.new(1, 0, 0, 0),
  636. Position = UDim2.new(1, -55, 0, 0),
  637. BackgroundTransparency = 0,
  638. AutomaticSize = Enum.AutomaticSize.Y
  639. }), {
  640. MakeElement("Stroke", Color3.fromRGB(93, 93, 93), 1.2),
  641. MakeElement("Padding", 12, 12, 12, 12),
  642. SetProps(MakeElement("Image", NotificationConfig.Image), {
  643. Size = UDim2.new(0, 20, 0, 20),
  644. ImageColor3 = Color3.fromRGB(240, 240, 240),
  645. Name = "Icon"
  646. }),
  647. SetProps(MakeElement("Label", NotificationConfig.Name, 15), {
  648. Size = UDim2.new(1, -30, 0, 20),
  649. Position = UDim2.new(0, 30, 0, 0),
  650. Font = Enum.Font.GothamBold,
  651. Name = "Title"
  652. }),
  653. SetProps(MakeElement("Label", NotificationConfig.Content, 14), {
  654. Size = UDim2.new(1, 0, 0, 0),
  655. Position = UDim2.new(0, 0, 0, 25),
  656. Font = Enum.Font.GothamSemibold,
  657. Name = "Content",
  658. AutomaticSize = Enum.AutomaticSize.Y,
  659. TextColor3 = Color3.fromRGB(200, 200, 200),
  660. TextWrapped = true
  661. })
  662. })
  663.  
  664. TweenService:Create(NotificationFrame, TweenInfo.new(0.5, Enum.EasingStyle.Quint), {Position = UDim2.new(0, 0, 0, 0)}):Play()
  665.  
  666. task.wait(NotificationConfig.Time - 0.88)
  667. TweenService:Create(NotificationFrame.Icon, TweenInfo.new(0.4, Enum.EasingStyle.Quint), {ImageTransparency = 1}):Play()
  668. TweenService:Create(NotificationFrame, TweenInfo.new(0.8, Enum.EasingStyle.Quint), {BackgroundTransparency = 0.6}):Play()
  669. task.wait(0.3)
  670. TweenService:Create(NotificationFrame.UIStroke, TweenInfo.new(0.6, Enum.EasingStyle.Quint), {Transparency = 0.9}):Play()
  671. TweenService:Create(NotificationFrame.Title, TweenInfo.new(0.6, Enum.EasingStyle.Quint), {TextTransparency = 0.4}):Play()
  672. TweenService:Create(NotificationFrame.Content, TweenInfo.new(0.6, Enum.EasingStyle.Quint), {TextTransparency = 0.5}):Play()
  673. task.wait(0.05)
  674.  
  675. NotificationFrame:TweenPosition(UDim2.new(1, 20, 0, 0),'In','Quint',0.8,true)
  676. task.wait(1.35)
  677. NotificationFrame:Destroy()
  678. end)
  679. end
  680.  
  681. function OrionLib:Init()
  682. if OrionLib.SaveCfg then
  683. pcall(function()
  684. if isfile(OrionLib.Folder .. "/" .. game.GameId .. ".txt") then
  685. LoadCfg(readfile(OrionLib.Folder .. "/" .. game.GameId .. ".txt"))
  686. OrionLib:MakeNotification({
  687. Name = "Configuration",
  688. Content = "Auto-loaded configuration for the game " .. game.GameId .. ".",
  689. Time = 5
  690. })
  691. end
  692. end)
  693. end
  694. end
  695.  
  696. function OrionLib:MakeWindow(WindowConfig)
  697. local FirstTab = true
  698. local Minimized = false
  699. local Loaded = false
  700. local UIHidden = false
  701.  
  702. WindowConfig = WindowConfig or {}
  703. WindowConfig.Name = WindowConfig.Name or "Orion Library"
  704. WindowConfig.ConfigFolder = WindowConfig.ConfigFolder or WindowConfig.Name
  705. WindowConfig.SaveConfig = WindowConfig.SaveConfig or false
  706. WindowConfig.HidePremium = WindowConfig.HidePremium or false
  707. if WindowConfig.IntroEnabled == nil then
  708. WindowConfig.IntroEnabled = true
  709. end
  710. WindowConfig.IntroText = WindowConfig.IntroText or "Orion Library"
  711. WindowConfig.CloseCallback = WindowConfig.CloseCallback or function() end
  712. WindowConfig.ShowIcon = WindowConfig.ShowIcon or false
  713. WindowConfig.Icon = WindowConfig.Icon or "rbxassetid://8834748103"
  714. WindowConfig.IntroIcon = WindowConfig.IntroIcon or "rbxassetid://8834748103"
  715. OrionLib.Folder = WindowConfig.ConfigFolder
  716. OrionLib.SaveCfg = WindowConfig.SaveConfig
  717.  
  718. if WindowConfig.SaveConfig then
  719. if not isfolder(WindowConfig.ConfigFolder) then
  720. makefolder(WindowConfig.ConfigFolder)
  721. end
  722. end
  723.  
  724. local TabHolder = AddThemeObject(SetChildren(SetProps(MakeElement("ScrollFrame", Color3.fromRGB(255, 255, 255), 4), {
  725. Size = UDim2.new(1, 0, 1, -50)
  726. }), {
  727. MakeElement("List"),
  728. MakeElement("Padding", 8, 0, 0, 8)
  729. }), "Divider")
  730.  
  731. AddConnection(TabHolder.UIListLayout:GetPropertyChangedSignal("AbsoluteContentSize"), function()
  732. TabHolder.CanvasSize = UDim2.new(0, 0, 0, TabHolder.UIListLayout.AbsoluteContentSize.Y + 16)
  733. end)
  734.  
  735. local CloseBtn = SetChildren(SetProps(MakeElement("Button"), {
  736. Size = UDim2.new(0.5, 0, 1, 0),
  737. Position = UDim2.new(0.5, 0, 0, 0),
  738. BackgroundTransparency = 1
  739. }), {
  740. AddThemeObject(SetProps(MakeElement("Image", "rbxassetid://7072725342"), {
  741. Position = UDim2.new(0, 9, 0, 6),
  742. Size = UDim2.new(0, 18, 0, 18)
  743. }), "Text")
  744. })
  745.  
  746. local MinimizeBtn = SetChildren(SetProps(MakeElement("Button"), {
  747. Size = UDim2.new(0.5, 0, 1, 0),
  748. BackgroundTransparency = 1
  749. }), {
  750. AddThemeObject(SetProps(MakeElement("Image", "rbxassetid://7072719338"), {
  751. Position = UDim2.new(0, 9, 0, 6),
  752. Size = UDim2.new(0, 18, 0, 18),
  753. Name = "Ico"
  754. }), "Text")
  755. })
  756.  
  757. local DragPoint = SetProps(MakeElement("TFrame"), {
  758. Size = UDim2.new(1, 0, 0, 50)
  759. })
  760.  
  761. local WindowStuff = AddThemeObject(SetChildren(SetProps(MakeElement("RoundFrame", Color3.fromRGB(255, 255, 255), 0, 10), {
  762. Size = UDim2.new(0, 150, 1, -50),
  763. Position = UDim2.new(0, 0, 0, 50)
  764. }), {
  765. AddThemeObject(SetProps(MakeElement("Frame"), {
  766. Size = UDim2.new(1, 0, 0, 10),
  767. Position = UDim2.new(0, 0, 0, 0)
  768. }), "Second"),
  769. AddThemeObject(SetProps(MakeElement("Frame"), {
  770. Size = UDim2.new(0, 10, 1, 0),
  771. Position = UDim2.new(1, -10, 0, 0)
  772. }), "Second"),
  773. AddThemeObject(SetProps(MakeElement("Frame"), {
  774. Size = UDim2.new(0, 1, 1, 0),
  775. Position = UDim2.new(1, -1, 0, 0)
  776. }), "Stroke"),
  777. TabHolder,
  778. SetChildren(SetProps(MakeElement("TFrame"), {
  779. Size = UDim2.new(1, 0, 0, 50),
  780. Position = UDim2.new(0, 0, 1, -50)
  781. }), {
  782. AddThemeObject(SetProps(MakeElement("Frame"), {
  783. Size = UDim2.new(1, 0, 0, 1)
  784. }), "Stroke"),
  785. AddThemeObject(SetChildren(SetProps(MakeElement("Frame"), {
  786. AnchorPoint = Vector2.new(0, 0.5),
  787. Size = UDim2.new(0, 32, 0, 32),
  788. Position = UDim2.new(0, 10, 0.5, 0)
  789. }), {
  790. SetProps(MakeElement("Image", "https://www.roblox.com/headshot-thumbnail/image?userId=".. LocalPlayer.UserId .."&width=420&height=420&format=png"), {
  791. Size = UDim2.new(1, 0, 1, 0)
  792. }),
  793. AddThemeObject(SetProps(MakeElement("Image", "rbxassetid://4031889928"), {
  794. Size = UDim2.new(1, 0, 1, 0),
  795. }), "Second"),
  796. MakeElement("Corner", 1)
  797. }), "Divider"),
  798. SetChildren(SetProps(MakeElement("TFrame"), {
  799. AnchorPoint = Vector2.new(0, 0.5),
  800. Size = UDim2.new(0, 32, 0, 32),
  801. Position = UDim2.new(0, 10, 0.5, 0)
  802. }), {
  803. AddThemeObject(MakeElement("Stroke"), "Stroke"),
  804. MakeElement("Corner", 1)
  805. }),
  806. AddThemeObject(SetProps(MakeElement("Label", LocalPlayer.DisplayName, WindowConfig.HidePremium and 14 or 13), {
  807. Size = UDim2.new(1, -60, 0, 13),
  808. Position = WindowConfig.HidePremium and UDim2.new(0, 50, 0, 19) or UDim2.new(0, 50, 0, 12),
  809. Font = Enum.Font.GothamBold,
  810. ClipsDescendants = true
  811. }), "Text"),
  812. AddThemeObject(SetProps(MakeElement("Label", "", 12), {
  813. Size = UDim2.new(1, -60, 0, 12),
  814. Position = UDim2.new(0, 50, 1, -25),
  815. Visible = not WindowConfig.HidePremium
  816. }), "TextDark")
  817. }),
  818. }), "Second")
  819.  
  820. local WindowName = AddThemeObject(SetProps(MakeElement("Label", WindowConfig.Name, 14), {
  821. Size = UDim2.new(1, -30, 2, 0),
  822. Position = UDim2.new(0, 25, 0, -24),
  823. Font = Enum.Font.GothamBlack,
  824. TextSize = 20
  825. }), "Text")
  826.  
  827. local WindowTopBarLine = AddThemeObject(SetProps(MakeElement("Frame"), {
  828. Size = UDim2.new(1, 0, 0, 1),
  829. Position = UDim2.new(0, 0, 1, -1)
  830. }), "Stroke")
  831.  
  832. local MainWindow = AddThemeObject(SetChildren(SetProps(MakeElement("RoundFrame", Color3.fromRGB(255, 255, 255), 0, 10), {
  833. Parent = Orion,
  834. Position = UDim2.new(0.5, -307, 0.5, -172),
  835. Size = UDim2.new(0, 615, 0, 344),
  836. ClipsDescendants = true
  837. }), {
  838. --SetProps(MakeElement("Image", "rbxassetid://3523728077"), {
  839. -- AnchorPoint = Vector2.new(0.5, 0.5),
  840. -- Position = UDim2.new(0.5, 0, 0.5, 0),
  841. -- Size = UDim2.new(1, 80, 1, 320),
  842. -- ImageColor3 = Color3.fromRGB(33, 33, 33),
  843. -- ImageTransparency = 0.7
  844. --}),
  845. SetChildren(SetProps(MakeElement("TFrame"), {
  846. Size = UDim2.new(1, 0, 0, 50),
  847. Name = "TopBar"
  848. }), {
  849. WindowName,
  850. WindowTopBarLine,
  851. AddThemeObject(SetChildren(SetProps(MakeElement("RoundFrame", Color3.fromRGB(255, 255, 255), 0, 7), {
  852. Size = UDim2.new(0, 70, 0, 30),
  853. Position = UDim2.new(1, -90, 0, 10)
  854. }), {
  855. AddThemeObject(MakeElement("Stroke"), "Stroke"),
  856. AddThemeObject(SetProps(MakeElement("Frame"), {
  857. Size = UDim2.new(0, 1, 1, 0),
  858. Position = UDim2.new(0.5, 0, 0, 0)
  859. }), "Stroke"),
  860. CloseBtn,
  861. MinimizeBtn
  862. }), "Second"),
  863. }),
  864. DragPoint,
  865. WindowStuff
  866. }), "Main")
  867.  
  868. if WindowConfig.ShowIcon then
  869. WindowName.Position = UDim2.new(0, 50, 0, -24)
  870. local WindowIcon = SetProps(MakeElement("Image", WindowConfig.Icon), {
  871. Size = UDim2.new(0, 20, 0, 20),
  872. Position = UDim2.new(0, 25, 0, 15)
  873. })
  874. WindowIcon.Parent = MainWindow.TopBar
  875. end
  876.  
  877. MakeDraggable(DragPoint, MainWindow)
  878.  
  879. AddConnection(CloseBtn.MouseButton1Up, function()
  880. MainWindow.Visible = false
  881. UIHidden = true
  882. OrionLib:MakeNotification({
  883. Name = "Interface Hidden",
  884. Content = "Tap RightShift to reopen the interface",
  885. Time = 5
  886. })
  887. WindowConfig.CloseCallback()
  888. end)
  889.  
  890. AddConnection(UserInputService.InputBegan, function(Input)
  891. if Input.KeyCode == Enum.KeyCode.RightShift and UIHidden then
  892. MainWindow.Visible = true
  893. end
  894. end)
  895.  
  896. AddConnection(MinimizeBtn.MouseButton1Up, function()
  897. if Minimized then
  898. TweenService:Create(MainWindow, TweenInfo.new(0.5, Enum.EasingStyle.Quint, Enum.EasingDirection.Out), {Size = UDim2.new(0, 615, 0, 344)}):Play()
  899. MinimizeBtn.Ico.Image = "rbxassetid://7072719338"
  900. task.wait(.02)
  901. MainWindow.ClipsDescendants = false
  902. WindowStuff.Visible = true
  903. WindowTopBarLine.Visible = true
  904. else
  905. MainWindow.ClipsDescendants = true
  906. WindowTopBarLine.Visible = false
  907. MinimizeBtn.Ico.Image = "rbxassetid://7072720870"
  908.  
  909. TweenService:Create(MainWindow, TweenInfo.new(0.5, Enum.EasingStyle.Quint, Enum.EasingDirection.Out), {Size = UDim2.new(0, WindowName.TextBounds.X + 140, 0, 50)}):Play()
  910. task.wait(0.1)
  911. WindowStuff.Visible = false
  912. end
  913. Minimized = not Minimized
  914. end)
  915.  
  916. local function LoadSequence()
  917. MainWindow.Visible = false
  918. local LoadSequenceLogo = SetProps(MakeElement("Image", WindowConfig.IntroIcon), {
  919. Parent = Orion,
  920. AnchorPoint = Vector2.new(0.5, 0.5),
  921. Position = UDim2.new(0.5, 0, 0.4, 0),
  922. Size = UDim2.new(0, 28, 0, 28),
  923. ImageColor3 = Color3.fromRGB(255, 255, 255),
  924. ImageTransparency = 1
  925. })
  926.  
  927. local LoadSequenceText = SetProps(MakeElement("Label", WindowConfig.IntroText, 14), {
  928. Parent = Orion,
  929. Size = UDim2.new(1, 0, 1, 0),
  930. AnchorPoint = Vector2.new(0.5, 0.5),
  931. Position = UDim2.new(0.5, 19, 0.5, 0),
  932. TextXAlignment = Enum.TextXAlignment.Center,
  933. Font = Enum.Font.GothamBold,
  934. TextTransparency = 1
  935. })
  936.  
  937. TweenService:Create(LoadSequenceLogo, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {ImageTransparency = 0, Position = UDim2.new(0.5, 0, 0.5, 0)}):Play()
  938. task.wait(0.8)
  939. TweenService:Create(LoadSequenceLogo, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {Position = UDim2.new(0.5, -(LoadSequenceText.TextBounds.X/2), 0.5, 0)}):Play()
  940. task.wait(0.3)
  941. TweenService:Create(LoadSequenceText, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = 0}):Play()
  942. task.wait(2)
  943. TweenService:Create(LoadSequenceText, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = 1}):Play()
  944. MainWindow.Visible = true
  945. LoadSequenceLogo:Destroy()
  946. LoadSequenceText:Destroy()
  947. end
  948.  
  949. if WindowConfig.IntroEnabled then
  950. LoadSequence()
  951. end
  952.  
  953. local TabFunction = {}
  954. function TabFunction:MakeTab(TabConfig)
  955. TabConfig = TabConfig or {}
  956. TabConfig.Name = TabConfig.Name or "Tab"
  957. TabConfig.Icon = TabConfig.Icon or ""
  958. TabConfig.PremiumOnly = TabConfig.PremiumOnly or false
  959.  
  960. local TabFrame = SetChildren(SetProps(MakeElement("Button"), {
  961. Size = UDim2.new(1, 0, 0, 30),
  962. Parent = TabHolder
  963. }), {
  964. AddThemeObject(SetProps(MakeElement("Image", TabConfig.Icon), {
  965. AnchorPoint = Vector2.new(0, 0.5),
  966. Size = UDim2.new(0, 18, 0, 18),
  967. Position = UDim2.new(0, 10, 0.5, 0),
  968. ImageTransparency = 0.4,
  969. Name = "Ico"
  970. }), "Text"),
  971. AddThemeObject(SetProps(MakeElement("Label", TabConfig.Name, 14), {
  972. Size = UDim2.new(1, -35, 1, 0),
  973. Position = UDim2.new(0, 35, 0, 0),
  974. Font = Enum.Font.GothamSemibold,
  975. TextTransparency = 0.4,
  976. Name = "Title"
  977. }), "Text")
  978. })
  979.  
  980. if GetIcon(TabConfig.Icon) ~= nil then
  981. TabFrame.Ico.Image = GetIcon(TabConfig.Icon)
  982. end
  983.  
  984. local Container = AddThemeObject(SetChildren(SetProps(MakeElement("ScrollFrame", Color3.fromRGB(255, 255, 255), 5), {
  985. Size = UDim2.new(1, -150, 1, -50),
  986. Position = UDim2.new(0, 150, 0, 50),
  987. Parent = MainWindow,
  988. Visible = false,
  989. Name = "ItemContainer"
  990. }), {
  991. MakeElement("List", 0, 6),
  992. MakeElement("Padding", 15, 10, 10, 15)
  993. }), "Divider")
  994.  
  995. AddConnection(Container.UIListLayout:GetPropertyChangedSignal("AbsoluteContentSize"), function()
  996. Container.CanvasSize = UDim2.new(0, 0, 0, Container.UIListLayout.AbsoluteContentSize.Y + 30)
  997. end)
  998.  
  999. if FirstTab then
  1000. FirstTab = false
  1001. TabFrame.Ico.ImageTransparency = 0
  1002. TabFrame.Title.TextTransparency = 0
  1003. TabFrame.Title.Font = Enum.Font.GothamBlack
  1004. Container.Visible = true
  1005. end
  1006.  
  1007. AddConnection(TabFrame.MouseButton1Click, function()
  1008. for _, Tab in next, TabHolder:GetChildren() do
  1009. if Tab:IsA("TextButton") then
  1010. Tab.Title.Font = Enum.Font.GothamSemibold
  1011. TweenService:Create(Tab.Ico, TweenInfo.new(0.25, Enum.EasingStyle.Quint, Enum.EasingDirection.Out), {ImageTransparency = 0.4}):Play()
  1012. TweenService:Create(Tab.Title, TweenInfo.new(0.25, Enum.EasingStyle.Quint, Enum.EasingDirection.Out), {TextTransparency = 0.4}):Play()
  1013. end
  1014. end
  1015. for _, ItemContainer in next, MainWindow:GetChildren() do
  1016. if ItemContainer.Name == "ItemContainer" then
  1017. ItemContainer.Visible = false
  1018. end
  1019. end
  1020. TweenService:Create(TabFrame.Ico, TweenInfo.new(0.25, Enum.EasingStyle.Quint, Enum.EasingDirection.Out), {ImageTransparency = 0}):Play()
  1021. TweenService:Create(TabFrame.Title, TweenInfo.new(0.25, Enum.EasingStyle.Quint, Enum.EasingDirection.Out), {TextTransparency = 0}):Play()
  1022. TabFrame.Title.Font = Enum.Font.GothamBlack
  1023. Container.Visible = true
  1024. end)
  1025.  
  1026. local function GetElements(ItemParent)
  1027. local ElementFunction = {}
  1028. function ElementFunction:AddLabel(Text)
  1029. local LabelFrame = AddThemeObject(SetChildren(SetProps(MakeElement("RoundFrame", Color3.fromRGB(255, 255, 255), 0, 5), {
  1030. Size = UDim2.new(1, 0, 0, 30),
  1031. BackgroundTransparency = 0.7,
  1032. Parent = ItemParent
  1033. }), {
  1034. AddThemeObject(SetProps(MakeElement("Label", Text, 15), {
  1035. Size = UDim2.new(1, -12, 1, 0),
  1036. Position = UDim2.new(0, 12, 0, 0),
  1037. Font = Enum.Font.GothamBold,
  1038. Name = "Content"
  1039. }), "Text"),
  1040. AddThemeObject(MakeElement("Stroke"), "Stroke")
  1041. }), "Second")
  1042.  
  1043. local LabelFunction = {}
  1044. function LabelFunction:Set(ToChange)
  1045. LabelFrame.Content.Text = ToChange
  1046. end
  1047. return LabelFunction
  1048. end
  1049. function ElementFunction:AddParagraph(Text, Content)
  1050. Text = Text or "Text"
  1051. Content = Content or "Content"
  1052.  
  1053. local ParagraphFrame = AddThemeObject(SetChildren(SetProps(MakeElement("RoundFrame", Color3.fromRGB(255, 255, 255), 0, 5), {
  1054. Size = UDim2.new(1, 0, 0, 30),
  1055. BackgroundTransparency = 0.7,
  1056. Parent = ItemParent
  1057. }), {
  1058. AddThemeObject(SetProps(MakeElement("Label", Text, 15), {
  1059. Size = UDim2.new(1, -12, 0, 14),
  1060. Position = UDim2.new(0, 12, 0, 10),
  1061. Font = Enum.Font.GothamBold,
  1062. Name = "Title"
  1063. }), "Text"),
  1064. AddThemeObject(SetProps(MakeElement("Label", "", 13), {
  1065. Size = UDim2.new(1, -24, 0, 0),
  1066. Position = UDim2.new(0, 12, 0, 26),
  1067. Font = Enum.Font.GothamSemibold,
  1068. Name = "Content",
  1069. TextWrapped = true
  1070. }), "TextDark"),
  1071. AddThemeObject(MakeElement("Stroke"), "Stroke")
  1072. }), "Second")
  1073.  
  1074. AddConnection(ParagraphFrame.Content:GetPropertyChangedSignal("Text"), function()
  1075. ParagraphFrame.Content.Size = UDim2.new(1, -24, 0, ParagraphFrame.Content.TextBounds.Y)
  1076. ParagraphFrame.Size = UDim2.new(1, 0, 0, ParagraphFrame.Content.TextBounds.Y + 35)
  1077. end)
  1078.  
  1079. ParagraphFrame.Content.Text = Content
  1080.  
  1081. local ParagraphFunction = {}
  1082. function ParagraphFunction:Set(ToChange)
  1083. ParagraphFrame.Content.Text = ToChange
  1084. end
  1085. return ParagraphFunction
  1086. end
  1087. function ElementFunction:AddButton(ButtonConfig)
  1088. ButtonConfig = ButtonConfig or {}
  1089. ButtonConfig.Name = ButtonConfig.Name or "Button"
  1090. ButtonConfig.Callback = ButtonConfig.Callback or function() end
  1091. ButtonConfig.Icon = ButtonConfig.Icon or "rbxassetid://3944703587"
  1092.  
  1093. local Button = {}
  1094.  
  1095. local Click = SetProps(MakeElement("Button"), {
  1096. Size = UDim2.new(1, 0, 1, 0)
  1097. })
  1098.  
  1099. local ButtonFrame = AddThemeObject(SetChildren(SetProps(MakeElement("RoundFrame", Color3.fromRGB(255, 255, 255), 0, 5), {
  1100. Size = UDim2.new(1, 0, 0, 33),
  1101. Parent = ItemParent
  1102. }), {
  1103. AddThemeObject(SetProps(MakeElement("Label", ButtonConfig.Name, 15), {
  1104. Size = UDim2.new(1, -12, 1, 0),
  1105. Position = UDim2.new(0, 12, 0, 0),
  1106. Font = Enum.Font.GothamBold,
  1107. Name = "Content"
  1108. }), "Text"),
  1109. AddThemeObject(SetProps(MakeElement("Image", ButtonConfig.Icon), {
  1110. Size = UDim2.new(0, 20, 0, 20),
  1111. Position = UDim2.new(1, -30, 0, 7),
  1112. }), "TextDark"),
  1113. AddThemeObject(MakeElement("Stroke"), "Stroke"),
  1114. Click
  1115. }), "Second")
  1116.  
  1117. AddConnection(Click.MouseEnter, function()
  1118. TweenService:Create(ButtonFrame, TweenInfo.new(0.25, Enum.EasingStyle.Quint, Enum.EasingDirection.Out), {BackgroundColor3 = Color3.fromRGB(OrionLib.Themes[OrionLib.SelectedTheme].Second.R * 255 + 3, OrionLib.Themes[OrionLib.SelectedTheme].Second.G * 255 + 3, OrionLib.Themes[OrionLib.SelectedTheme].Second.B * 255 + 3)}):Play()
  1119. end)
  1120.  
  1121. AddConnection(Click.MouseLeave, function()
  1122. TweenService:Create(ButtonFrame, TweenInfo.new(0.25, Enum.EasingStyle.Quint, Enum.EasingDirection.Out), {BackgroundColor3 = OrionLib.Themes[OrionLib.SelectedTheme].Second}):Play()
  1123. end)
  1124.  
  1125. AddConnection(Click.MouseButton1Up, function()
  1126. TweenService:Create(ButtonFrame, TweenInfo.new(0.25, Enum.EasingStyle.Quint, Enum.EasingDirection.Out), {BackgroundColor3 = Color3.fromRGB(OrionLib.Themes[OrionLib.SelectedTheme].Second.R * 255 + 3, OrionLib.Themes[OrionLib.SelectedTheme].Second.G * 255 + 3, OrionLib.Themes[OrionLib.SelectedTheme].Second.B * 255 + 3)}):Play()
  1127. spawn(function()
  1128. ButtonConfig.Callback()
  1129. end)
  1130. end)
  1131.  
  1132. AddConnection(Click.MouseButton1Down, function()
  1133. TweenService:Create(ButtonFrame, TweenInfo.new(0.25, Enum.EasingStyle.Quint, Enum.EasingDirection.Out), {BackgroundColor3 = Color3.fromRGB(OrionLib.Themes[OrionLib.SelectedTheme].Second.R * 255 + 6, OrionLib.Themes[OrionLib.SelectedTheme].Second.G * 255 + 6, OrionLib.Themes[OrionLib.SelectedTheme].Second.B * 255 + 6)}):Play()
  1134. end)
  1135.  
  1136. function Button:Set(ButtonText)
  1137. ButtonFrame.Content.Text = ButtonText
  1138. end
  1139.  
  1140. return Button
  1141. end
  1142. function ElementFunction:AddToggle(ToggleConfig)
  1143. ToggleConfig = ToggleConfig or {}
  1144. ToggleConfig.Name = ToggleConfig.Name or "Toggle"
  1145. ToggleConfig.Default = ToggleConfig.Default or false
  1146. ToggleConfig.Callback = ToggleConfig.Callback or function() end
  1147. ToggleConfig.Color = ToggleConfig.Color or Color3.fromRGB(9, 99, 195)
  1148. ToggleConfig.Flag = ToggleConfig.Flag or nil
  1149. ToggleConfig.Save = ToggleConfig.Save or false
  1150.  
  1151. local Toggle = {Value = ToggleConfig.Default, Save = ToggleConfig.Save}
  1152.  
  1153. local Click = SetProps(MakeElement("Button"), {
  1154. Size = UDim2.new(1, 0, 1, 0)
  1155. })
  1156.  
  1157. local ToggleBox = SetChildren(SetProps(MakeElement("RoundFrame", ToggleConfig.Color, 0, 4), {
  1158. Size = UDim2.new(0, 24, 0, 24),
  1159. Position = UDim2.new(1, -24, 0.5, 0),
  1160. AnchorPoint = Vector2.new(0.5, 0.5)
  1161. }), {
  1162. SetProps(MakeElement("Stroke"), {
  1163. Color = ToggleConfig.Color,
  1164. Name = "Stroke",
  1165. Transparency = 0.5
  1166. }),
  1167. SetProps(MakeElement("Image", "rbxassetid://3944680095"), {
  1168. Size = UDim2.new(0, 20, 0, 20),
  1169. AnchorPoint = Vector2.new(0.5, 0.5),
  1170. Position = UDim2.new(0.5, 0, 0.5, 0),
  1171. ImageColor3 = Color3.fromRGB(255, 255, 255),
  1172. Name = "Ico"
  1173. }),
  1174. })
  1175.  
  1176. local ToggleFrame = AddThemeObject(SetChildren(SetProps(MakeElement("RoundFrame", Color3.fromRGB(255, 255, 255), 0, 5), {
  1177. Size = UDim2.new(1, 0, 0, 38),
  1178. Parent = ItemParent
  1179. }), {
  1180. AddThemeObject(SetProps(MakeElement("Label", ToggleConfig.Name, 15), {
  1181. Size = UDim2.new(1, -12, 1, 0),
  1182. Position = UDim2.new(0, 12, 0, 0),
  1183. Font = Enum.Font.GothamBold,
  1184. Name = "Content"
  1185. }), "Text"),
  1186. AddThemeObject(MakeElement("Stroke"), "Stroke"),
  1187. ToggleBox,
  1188. Click
  1189. }), "Second")
  1190.  
  1191. function Toggle:Set(Value)
  1192. Toggle.Value = Value
  1193. TweenService:Create(ToggleBox, TweenInfo.new(0.3, Enum.EasingStyle.Quint, Enum.EasingDirection.Out), {BackgroundColor3 = Toggle.Value and ToggleConfig.Color or OrionLib.Themes.Default.Divider}):Play()
  1194. TweenService:Create(ToggleBox.Stroke, TweenInfo.new(0.3, Enum.EasingStyle.Quint, Enum.EasingDirection.Out), {Color = Toggle.Value and ToggleConfig.Color or OrionLib.Themes.Default.Stroke}):Play()
  1195. TweenService:Create(ToggleBox.Ico, TweenInfo.new(0.3, Enum.EasingStyle.Quint, Enum.EasingDirection.Out), {ImageTransparency = Toggle.Value and 0 or 1, Size = Toggle.Value and UDim2.new(0, 20, 0, 20) or UDim2.new(0, 8, 0, 8)}):Play()
  1196. ToggleConfig.Callback(Toggle.Value)
  1197. end
  1198.  
  1199. Toggle:Set(Toggle.Value)
  1200.  
  1201. AddConnection(Click.MouseEnter, function()
  1202. TweenService:Create(ToggleFrame, TweenInfo.new(0.25, Enum.EasingStyle.Quint, Enum.EasingDirection.Out), {BackgroundColor3 = Color3.fromRGB(OrionLib.Themes[OrionLib.SelectedTheme].Second.R * 255 + 3, OrionLib.Themes[OrionLib.SelectedTheme].Second.G * 255 + 3, OrionLib.Themes[OrionLib.SelectedTheme].Second.B * 255 + 3)}):Play()
  1203. end)
  1204.  
  1205. AddConnection(Click.MouseLeave, function()
  1206. TweenService:Create(ToggleFrame, TweenInfo.new(0.25, Enum.EasingStyle.Quint, Enum.EasingDirection.Out), {BackgroundColor3 = OrionLib.Themes[OrionLib.SelectedTheme].Second}):Play()
  1207. end)
  1208.  
  1209. AddConnection(Click.MouseButton1Up, function()
  1210. TweenService:Create(ToggleFrame, TweenInfo.new(0.25, Enum.EasingStyle.Quint, Enum.EasingDirection.Out), {BackgroundColor3 = Color3.fromRGB(OrionLib.Themes[OrionLib.SelectedTheme].Second.R * 255 + 3, OrionLib.Themes[OrionLib.SelectedTheme].Second.G * 255 + 3, OrionLib.Themes[OrionLib.SelectedTheme].Second.B * 255 + 3)}):Play()
  1211. SaveCfg(game.GameId)
  1212. Toggle:Set(not Toggle.Value)
  1213. end)
  1214.  
  1215. AddConnection(Click.MouseButton1Down, function()
  1216. TweenService:Create(ToggleFrame, TweenInfo.new(0.25, Enum.EasingStyle.Quint, Enum.EasingDirection.Out), {BackgroundColor3 = Color3.fromRGB(OrionLib.Themes[OrionLib.SelectedTheme].Second.R * 255 + 6, OrionLib.Themes[OrionLib.SelectedTheme].Second.G * 255 + 6, OrionLib.Themes[OrionLib.SelectedTheme].Second.B * 255 + 6)}):Play()
  1217. end)
  1218.  
  1219. if ToggleConfig.Flag then
  1220. OrionLib.Flags[ToggleConfig.Flag] = Toggle
  1221. end
  1222. return Toggle
  1223. end
  1224. function ElementFunction:AddSlider(SliderConfig)
  1225. SliderConfig = SliderConfig or {}
  1226. SliderConfig.Name = SliderConfig.Name or "Slider"
  1227. SliderConfig.Min = SliderConfig.Min or 0
  1228. SliderConfig.Max = SliderConfig.Max or 100
  1229. SliderConfig.Increment = SliderConfig.Increment or 1
  1230. SliderConfig.Default = SliderConfig.Default or 50
  1231. SliderConfig.Callback = SliderConfig.Callback or function() end
  1232. SliderConfig.ValueName = SliderConfig.ValueName or ""
  1233. SliderConfig.Color = SliderConfig.Color or Color3.fromRGB(9, 149, 98)
  1234. SliderConfig.Flag = SliderConfig.Flag or nil
  1235. SliderConfig.Save = SliderConfig.Save or false
  1236.  
  1237. local Slider = {Value = SliderConfig.Default, Save = SliderConfig.Save}
  1238. local Dragging = false
  1239.  
  1240. local SliderDrag = SetChildren(SetProps(MakeElement("RoundFrame", SliderConfig.Color, 0, 5), {
  1241. Size = UDim2.new(0, 0, 1, 0),
  1242. BackgroundTransparency = 0.3,
  1243. ClipsDescendants = true
  1244. }), {
  1245. AddThemeObject(SetProps(MakeElement("Label", "value", 13), {
  1246. Size = UDim2.new(1, -12, 0, 14),
  1247. Position = UDim2.new(0, 12, 0, 6),
  1248. Font = Enum.Font.GothamBold,
  1249. Name = "Value",
  1250. TextTransparency = 0
  1251. }), "Text")
  1252. })
  1253.  
  1254. local SliderBar = SetChildren(SetProps(MakeElement("RoundFrame", SliderConfig.Color, 0, 5), {
  1255. Size = UDim2.new(1, -24, 0, 26),
  1256. Position = UDim2.new(0, 12, 0, 30),
  1257. BackgroundTransparency = 0.9
  1258. }), {
  1259. SetProps(MakeElement("Stroke"), {
  1260. Color = SliderConfig.Color
  1261. }),
  1262. AddThemeObject(SetProps(MakeElement("Label", "value", 13), {
  1263. Size = UDim2.new(1, -12, 0, 14),
  1264. Position = UDim2.new(0, 12, 0, 6),
  1265. Font = Enum.Font.GothamBold,
  1266. Name = "Value",
  1267. TextTransparency = 0.8
  1268. }), "Text"),
  1269. SliderDrag
  1270. })
  1271.  
  1272. local SliderFrame = AddThemeObject(SetChildren(SetProps(MakeElement("RoundFrame", Color3.fromRGB(255, 255, 255), 0, 4), {
  1273. Size = UDim2.new(1, 0, 0, 65),
  1274. Parent = ItemParent
  1275. }), {
  1276. AddThemeObject(SetProps(MakeElement("Label", SliderConfig.Name, 15), {
  1277. Size = UDim2.new(1, -12, 0, 14),
  1278. Position = UDim2.new(0, 12, 0, 10),
  1279. Font = Enum.Font.GothamBold,
  1280. Name = "Content"
  1281. }), "Text"),
  1282. AddThemeObject(MakeElement("Stroke"), "Stroke"),
  1283. SliderBar
  1284. }), "Second")
  1285.  
  1286. SliderBar.InputBegan:Connect(function(Input)
  1287. if Input.UserInputType == Enum.UserInputType.MouseButton1 then
  1288. Dragging = true
  1289. end
  1290. end)
  1291. SliderBar.InputEnded:Connect(function(Input)
  1292. if Input.UserInputType == Enum.UserInputType.MouseButton1 then
  1293. Dragging = false
  1294. end
  1295. end)
  1296.  
  1297. UserInputService.InputChanged:Connect(function(Input)
  1298. if Dragging and Input.UserInputType == Enum.UserInputType.MouseMovement then
  1299. local SizeScale = math.clamp((Input.Position.X - SliderBar.AbsolutePosition.X) / SliderBar.AbsoluteSize.X, 0, 1)
  1300. Slider:Set(SliderConfig.Min + ((SliderConfig.Max - SliderConfig.Min) * SizeScale))
  1301. SaveCfg(game.GameId)
  1302. end
  1303. end)
  1304.  
  1305. function Slider:Set(Value)
  1306. self.Value = math.clamp(Round(Value, SliderConfig.Increment), SliderConfig.Min, SliderConfig.Max)
  1307. TweenService:Create(SliderDrag,TweenInfo.new(.15, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),{Size = UDim2.fromScale((self.Value - SliderConfig.Min) / (SliderConfig.Max - SliderConfig.Min), 1)}):Play()
  1308. SliderBar.Value.Text = tostring(self.Value) .. " " .. SliderConfig.ValueName
  1309. SliderDrag.Value.Text = tostring(self.Value) .. " " .. SliderConfig.ValueName
  1310. SliderConfig.Callback(self.Value)
  1311. end
  1312.  
  1313. Slider:Set(Slider.Value)
  1314. if SliderConfig.Flag then
  1315. OrionLib.Flags[SliderConfig.Flag] = Slider
  1316. end
  1317. return Slider
  1318. end
  1319. function ElementFunction:AddDropdown(DropdownConfig)
  1320. DropdownConfig = DropdownConfig or {}
  1321. DropdownConfig.Name = DropdownConfig.Name or "Dropdown"
  1322. DropdownConfig.Options = DropdownConfig.Options or {}
  1323. DropdownConfig.Default = DropdownConfig.Default or ""
  1324. DropdownConfig.Callback = DropdownConfig.Callback or function() end
  1325. DropdownConfig.Flag = DropdownConfig.Flag or nil
  1326. DropdownConfig.Save = DropdownConfig.Save or false
  1327.  
  1328. local Dropdown = {Value = DropdownConfig.Default, Options = DropdownConfig.Options, Buttons = {}, Toggled = false, Type = "Dropdown", Save = DropdownConfig.Save}
  1329. local MaxElements = 5
  1330.  
  1331. if not table.find(Dropdown.Options, Dropdown.Value) then
  1332. Dropdown.Value = "..."
  1333. end
  1334.  
  1335. local DropdownList = MakeElement("List")
  1336.  
  1337. local DropdownContainer = AddThemeObject(SetProps(SetChildren(MakeElement("ScrollFrame", Color3.fromRGB(40, 40, 40), 4), {
  1338. DropdownList
  1339. }), {
  1340. Parent = ItemParent,
  1341. Position = UDim2.new(0, 0, 0, 38),
  1342. Size = UDim2.new(1, 0, 1, -38),
  1343. ClipsDescendants = true
  1344. }), "Divider")
  1345.  
  1346. local Click = SetProps(MakeElement("Button"), {
  1347. Size = UDim2.new(1, 0, 1, 0)
  1348. })
  1349.  
  1350. local DropdownFrame = AddThemeObject(SetChildren(SetProps(MakeElement("RoundFrame", Color3.fromRGB(255, 255, 255), 0, 5), {
  1351. Size = UDim2.new(1, 0, 0, 38),
  1352. Parent = ItemParent,
  1353. ClipsDescendants = true
  1354. }), {
  1355. DropdownContainer,
  1356. SetProps(SetChildren(MakeElement("TFrame"), {
  1357. AddThemeObject(SetProps(MakeElement("Label", DropdownConfig.Name, 15), {
  1358. Size = UDim2.new(1, -12, 1, 0),
  1359. Position = UDim2.new(0, 12, 0, 0),
  1360. Font = Enum.Font.GothamBold,
  1361. Name = "Content"
  1362. }), "Text"),
  1363. AddThemeObject(SetProps(MakeElement("Image", "rbxassetid://7072706796"), {
  1364. Size = UDim2.new(0, 20, 0, 20),
  1365. AnchorPoint = Vector2.new(0, 0.5),
  1366. Position = UDim2.new(1, -30, 0.5, 0),
  1367. ImageColor3 = Color3.fromRGB(240, 240, 240),
  1368. Name = "Ico"
  1369. }), "TextDark"),
  1370. AddThemeObject(SetProps(MakeElement("Label", "Selected", 13), {
  1371. Size = UDim2.new(1, -40, 1, 0),
  1372. Font = Enum.Font.Gotham,
  1373. Name = "Selected",
  1374. TextXAlignment = Enum.TextXAlignment.Right
  1375. }), "TextDark"),
  1376. AddThemeObject(SetProps(MakeElement("Frame"), {
  1377. Size = UDim2.new(1, 0, 0, 1),
  1378. Position = UDim2.new(0, 0, 1, -1),
  1379. Name = "Line",
  1380. Visible = false
  1381. }), "Stroke"),
  1382. Click
  1383. }), {
  1384. Size = UDim2.new(1, 0, 0, 38),
  1385. ClipsDescendants = true,
  1386. Name = "F"
  1387. }),
  1388. AddThemeObject(MakeElement("Stroke"), "Stroke"),
  1389. MakeElement("Corner")
  1390. }), "Second")
  1391.  
  1392. AddConnection(DropdownList:GetPropertyChangedSignal("AbsoluteContentSize"), function()
  1393. DropdownContainer.CanvasSize = UDim2.new(0, 0, 0, DropdownList.AbsoluteContentSize.Y)
  1394. end)
  1395.  
  1396. local function AddOptions(Options)
  1397. for _, Option in pairs(Options) do
  1398. local OptionBtn = AddThemeObject(SetProps(SetChildren(MakeElement("Button", Color3.fromRGB(40, 40, 40)), {
  1399. MakeElement("Corner", 0, 6),
  1400. AddThemeObject(SetProps(MakeElement("Label", Option, 13, 0.4), {
  1401. Position = UDim2.new(0, 8, 0, 0),
  1402. Size = UDim2.new(1, -8, 1, 0),
  1403. Name = "Title"
  1404. }), "Text")
  1405. }), {
  1406. Parent = DropdownContainer,
  1407. Size = UDim2.new(1, 0, 0, 28),
  1408. BackgroundTransparency = 1,
  1409. ClipsDescendants = true
  1410. }), "Divider")
  1411.  
  1412. AddConnection(OptionBtn.MouseButton1Click, function()
  1413. Dropdown:Set(Option)
  1414. SaveCfg(game.GameId)
  1415. end)
  1416.  
  1417. Dropdown.Buttons[Option] = OptionBtn
  1418. end
  1419. end
  1420.  
  1421. function Dropdown:Refresh(Options, Delete)
  1422. if Delete then
  1423. for _,v in pairs(Dropdown.Buttons) do
  1424. v:Destroy()
  1425. end
  1426. table.clear(Dropdown.Options)
  1427. table.clear(Dropdown.Buttons)
  1428. end
  1429. Dropdown.Options = Options
  1430. AddOptions(Dropdown.Options)
  1431. end
  1432.  
  1433. function Dropdown:Set(Value)
  1434. if not table.find(Dropdown.Options, Value) then
  1435. Dropdown.Value = "..."
  1436. DropdownFrame.F.Selected.Text = Dropdown.Value
  1437. for _, v in pairs(Dropdown.Buttons) do
  1438. TweenService:Create(v,TweenInfo.new(.15, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),{BackgroundTransparency = 1}):Play()
  1439. TweenService:Create(v.Title,TweenInfo.new(.15, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),{TextTransparency = 0.4}):Play()
  1440. end
  1441. return
  1442. end
  1443.  
  1444. Dropdown.Value = Value
  1445. DropdownFrame.F.Selected.Text = Dropdown.Value
  1446.  
  1447. for _, v in pairs(Dropdown.Buttons) do
  1448. TweenService:Create(v,TweenInfo.new(.15, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),{BackgroundTransparency = 1}):Play()
  1449. TweenService:Create(v.Title,TweenInfo.new(.15, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),{TextTransparency = 0.4}):Play()
  1450. end
  1451. TweenService:Create(Dropdown.Buttons[Value],TweenInfo.new(.15, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),{BackgroundTransparency = 0}):Play()
  1452. TweenService:Create(Dropdown.Buttons[Value].Title,TweenInfo.new(.15, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),{TextTransparency = 0}):Play()
  1453. return DropdownConfig.Callback(Dropdown.Value)
  1454. end
  1455.  
  1456. AddConnection(Click.MouseButton1Click, function()
  1457. Dropdown.Toggled = not Dropdown.Toggled
  1458. DropdownFrame.F.Line.Visible = Dropdown.Toggled
  1459. TweenService:Create(DropdownFrame.F.Ico,TweenInfo.new(.15, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),{Rotation = Dropdown.Toggled and 180 or 0}):Play()
  1460. if #Dropdown.Options > MaxElements then
  1461. TweenService:Create(DropdownFrame,TweenInfo.new(.15, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),{Size = Dropdown.Toggled and UDim2.new(1, 0, 0, 38 + (MaxElements * 28)) or UDim2.new(1, 0, 0, 38)}):Play()
  1462. else
  1463. TweenService:Create(DropdownFrame,TweenInfo.new(.15, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),{Size = Dropdown.Toggled and UDim2.new(1, 0, 0, DropdownList.AbsoluteContentSize.Y + 38) or UDim2.new(1, 0, 0, 38)}):Play()
  1464. end
  1465. end)
  1466.  
  1467. Dropdown:Refresh(Dropdown.Options, false)
  1468. Dropdown:Set(Dropdown.Value)
  1469. if DropdownConfig.Flag then
  1470. OrionLib.Flags[DropdownConfig.Flag] = Dropdown
  1471. end
  1472. return Dropdown
  1473. end
  1474. function ElementFunction:AddBind(BindConfig)
  1475. BindConfig.Name = BindConfig.Name or "Bind"
  1476. BindConfig.Default = BindConfig.Default or Enum.KeyCode.Unknown
  1477. BindConfig.Hold = BindConfig.Hold or false
  1478. BindConfig.Callback = BindConfig.Callback or function() end
  1479. BindConfig.Flag = BindConfig.Flag or nil
  1480. BindConfig.Save = BindConfig.Save or false
  1481.  
  1482. local Bind = {Value, Binding = false, Type = "Bind", Save = BindConfig.Save}
  1483. local Holding = false
  1484.  
  1485. local Click = SetProps(MakeElement("Button"), {
  1486. Size = UDim2.new(1, 0, 1, 0)
  1487. })
  1488.  
  1489. local BindBox = AddThemeObject(SetChildren(SetProps(MakeElement("RoundFrame", Color3.fromRGB(255, 255, 255), 0, 4), {
  1490. Size = UDim2.new(0, 24, 0, 24),
  1491. Position = UDim2.new(1, -12, 0.5, 0),
  1492. AnchorPoint = Vector2.new(1, 0.5)
  1493. }), {
  1494. AddThemeObject(MakeElement("Stroke"), "Stroke"),
  1495. AddThemeObject(SetProps(MakeElement("Label", BindConfig.Name, 14), {
  1496. Size = UDim2.new(1, 0, 1, 0),
  1497. Font = Enum.Font.GothamBold,
  1498. TextXAlignment = Enum.TextXAlignment.Center,
  1499. Name = "Value"
  1500. }), "Text")
  1501. }), "Main")
  1502.  
  1503. local BindFrame = AddThemeObject(SetChildren(SetProps(MakeElement("RoundFrame", Color3.fromRGB(255, 255, 255), 0, 5), {
  1504. Size = UDim2.new(1, 0, 0, 38),
  1505. Parent = ItemParent
  1506. }), {
  1507. AddThemeObject(SetProps(MakeElement("Label", BindConfig.Name, 15), {
  1508. Size = UDim2.new(1, -12, 1, 0),
  1509. Position = UDim2.new(0, 12, 0, 0),
  1510. Font = Enum.Font.GothamBold,
  1511. Name = "Content"
  1512. }), "Text"),
  1513. AddThemeObject(MakeElement("Stroke"), "Stroke"),
  1514. BindBox,
  1515. Click
  1516. }), "Second")
  1517.  
  1518. AddConnection(BindBox.Value:GetPropertyChangedSignal("Text"), function()
  1519. --BindBox.Size = UDim2.new(0, BindBox.Value.TextBounds.X + 16, 0, 24)
  1520. TweenService:Create(BindBox, TweenInfo.new(0.25, Enum.EasingStyle.Quint, Enum.EasingDirection.Out), {Size = UDim2.new(0, BindBox.Value.TextBounds.X + 16, 0, 24)}):Play()
  1521. end)
  1522.  
  1523. AddConnection(Click.InputEnded, function(Input)
  1524. if Input.UserInputType == Enum.UserInputType.MouseButton1 then
  1525. if Bind.Binding then return end
  1526. Bind.Binding = true
  1527. BindBox.Value.Text = ""
  1528. end
  1529. end)
  1530.  
  1531. AddConnection(UserInputService.InputBegan, function(Input)
  1532. if UserInputService:GetFocusedTextBox() then return end
  1533. if (Input.KeyCode.Name == Bind.Value or Input.UserInputType.Name == Bind.Value) and not Bind.Binding then
  1534. if BindConfig.Hold then
  1535. Holding = true
  1536. BindConfig.Callback(Holding)
  1537. else
  1538. BindConfig.Callback()
  1539. end
  1540. elseif Bind.Binding then
  1541. local Key
  1542. pcall(function()
  1543. if not CheckKey(BlacklistedKeys, Input.KeyCode) then
  1544. Key = Input.KeyCode
  1545. end
  1546. end)
  1547. pcall(function()
  1548. if CheckKey(WhitelistedMouse, Input.UserInputType) and not Key then
  1549. Key = Input.UserInputType
  1550. end
  1551. end)
  1552. Key = Key or Bind.Value
  1553. Bind:Set(Key)
  1554. SaveCfg(game.GameId)
  1555. end
  1556. end)
  1557.  
  1558. AddConnection(UserInputService.InputEnded, function(Input)
  1559. if Input.KeyCode.Name == Bind.Value or Input.UserInputType.Name == Bind.Value then
  1560. if BindConfig.Hold and Holding then
  1561. Holding = false
  1562. BindConfig.Callback(Holding)
  1563. end
  1564. end
  1565. end)
  1566.  
  1567. AddConnection(Click.MouseEnter, function()
  1568. TweenService:Create(BindFrame, TweenInfo.new(0.25, Enum.EasingStyle.Quint, Enum.EasingDirection.Out), {BackgroundColor3 = Color3.fromRGB(OrionLib.Themes[OrionLib.SelectedTheme].Second.R * 255 + 3, OrionLib.Themes[OrionLib.SelectedTheme].Second.G * 255 + 3, OrionLib.Themes[OrionLib.SelectedTheme].Second.B * 255 + 3)}):Play()
  1569. end)
  1570.  
  1571. AddConnection(Click.MouseLeave, function()
  1572. TweenService:Create(BindFrame, TweenInfo.new(0.25, Enum.EasingStyle.Quint, Enum.EasingDirection.Out), {BackgroundColor3 = OrionLib.Themes[OrionLib.SelectedTheme].Second}):Play()
  1573. end)
  1574.  
  1575. AddConnection(Click.MouseButton1Up, function()
  1576. TweenService:Create(BindFrame, TweenInfo.new(0.25, Enum.EasingStyle.Quint, Enum.EasingDirection.Out), {BackgroundColor3 = Color3.fromRGB(OrionLib.Themes[OrionLib.SelectedTheme].Second.R * 255 + 3, OrionLib.Themes[OrionLib.SelectedTheme].Second.G * 255 + 3, OrionLib.Themes[OrionLib.SelectedTheme].Second.B * 255 + 3)}):Play()
  1577. end)
  1578.  
  1579. AddConnection(Click.MouseButton1Down, function()
  1580. TweenService:Create(BindFrame, TweenInfo.new(0.25, Enum.EasingStyle.Quint, Enum.EasingDirection.Out), {BackgroundColor3 = Color3.fromRGB(OrionLib.Themes[OrionLib.SelectedTheme].Second.R * 255 + 6, OrionLib.Themes[OrionLib.SelectedTheme].Second.G * 255 + 6, OrionLib.Themes[OrionLib.SelectedTheme].Second.B * 255 + 6)}):Play()
  1581. end)
  1582.  
  1583. function Bind:Set(Key)
  1584. Bind.Binding = false
  1585. Bind.Value = Key or Bind.Value
  1586. Bind.Value = Bind.Value.Name or Bind.Value
  1587. BindBox.Value.Text = Bind.Value
  1588. end
  1589.  
  1590. Bind:Set(BindConfig.Default)
  1591. if BindConfig.Flag then
  1592. OrionLib.Flags[BindConfig.Flag] = Bind
  1593. end
  1594. return Bind
  1595. end
  1596. function ElementFunction:AddTextbox(TextboxConfig)
  1597. TextboxConfig = TextboxConfig or {}
  1598. TextboxConfig.Name = TextboxConfig.Name or "Textbox"
  1599. TextboxConfig.Default = TextboxConfig.Default or ""
  1600. TextboxConfig.TextDisappear = TextboxConfig.TextDisappear or false
  1601. TextboxConfig.Callback = TextboxConfig.Callback or function() end
  1602.  
  1603. local Click = SetProps(MakeElement("Button"), {
  1604. Size = UDim2.new(1, 0, 1, 0)
  1605. })
  1606.  
  1607. local TextboxActual = AddThemeObject(Create("TextBox", {
  1608. Size = UDim2.new(1, 0, 1, 0),
  1609. BackgroundTransparency = 1,
  1610. TextColor3 = Color3.fromRGB(255, 255, 255),
  1611. PlaceholderColor3 = Color3.fromRGB(210,210,210),
  1612. PlaceholderText = "Input",
  1613. Font = Enum.Font.GothamSemibold,
  1614. TextXAlignment = Enum.TextXAlignment.Center,
  1615. TextSize = 14,
  1616. ClearTextOnFocus = false
  1617. }), "Text")
  1618.  
  1619. local TextContainer = AddThemeObject(SetChildren(SetProps(MakeElement("RoundFrame", Color3.fromRGB(255, 255, 255), 0, 4), {
  1620. Size = UDim2.new(0, 24, 0, 24),
  1621. Position = UDim2.new(1, -12, 0.5, 0),
  1622. AnchorPoint = Vector2.new(1, 0.5)
  1623. }), {
  1624. AddThemeObject(MakeElement("Stroke"), "Stroke"),
  1625. TextboxActual
  1626. }), "Main")
  1627.  
  1628.  
  1629. local TextboxFrame = AddThemeObject(SetChildren(SetProps(MakeElement("RoundFrame", Color3.fromRGB(255, 255, 255), 0, 5), {
  1630. Size = UDim2.new(1, 0, 0, 38),
  1631. Parent = ItemParent
  1632. }), {
  1633. AddThemeObject(SetProps(MakeElement("Label", TextboxConfig.Name, 15), {
  1634. Size = UDim2.new(1, -12, 1, 0),
  1635. Position = UDim2.new(0, 12, 0, 0),
  1636. Font = Enum.Font.GothamBold,
  1637. Name = "Content"
  1638. }), "Text"),
  1639. AddThemeObject(MakeElement("Stroke"), "Stroke"),
  1640. TextContainer,
  1641. Click
  1642. }), "Second")
  1643.  
  1644. AddConnection(TextboxActual:GetPropertyChangedSignal("Text"), function()
  1645. --TextContainer.Size = UDim2.new(0, TextboxActual.TextBounds.X + 16, 0, 24)
  1646. TweenService:Create(TextContainer, TweenInfo.new(0.45, Enum.EasingStyle.Quint, Enum.EasingDirection.Out), {Size = UDim2.new(0, TextboxActual.TextBounds.X + 16, 0, 24)}):Play()
  1647. end)
  1648.  
  1649. AddConnection(TextboxActual.FocusLost, function()
  1650. TextboxConfig.Callback(TextboxActual.Text)
  1651. if TextboxConfig.TextDisappear then
  1652. TextboxActual.Text = ""
  1653. end
  1654. end)
  1655.  
  1656. TextboxActual.Text = TextboxConfig.Default
  1657.  
  1658. AddConnection(Click.MouseEnter, function()
  1659. TweenService:Create(TextboxFrame, TweenInfo.new(0.25, Enum.EasingStyle.Quint, Enum.EasingDirection.Out), {BackgroundColor3 = Color3.fromRGB(OrionLib.Themes[OrionLib.SelectedTheme].Second.R * 255 + 3, OrionLib.Themes[OrionLib.SelectedTheme].Second.G * 255 + 3, OrionLib.Themes[OrionLib.SelectedTheme].Second.B * 255 + 3)}):Play()
  1660. end)
  1661.  
  1662. AddConnection(Click.MouseLeave, function()
  1663. TweenService:Create(TextboxFrame, TweenInfo.new(0.25, Enum.EasingStyle.Quint, Enum.EasingDirection.Out), {BackgroundColor3 = OrionLib.Themes[OrionLib.SelectedTheme].Second}):Play()
  1664. end)
  1665.  
  1666. AddConnection(Click.MouseButton1Up, function()
  1667. TweenService:Create(TextboxFrame, TweenInfo.new(0.25, Enum.EasingStyle.Quint, Enum.EasingDirection.Out), {BackgroundColor3 = Color3.fromRGB(OrionLib.Themes[OrionLib.SelectedTheme].Second.R * 255 + 3, OrionLib.Themes[OrionLib.SelectedTheme].Second.G * 255 + 3, OrionLib.Themes[OrionLib.SelectedTheme].Second.B * 255 + 3)}):Play()
  1668. TextboxActual:CaptureFocus()
  1669. end)
  1670.  
  1671. AddConnection(Click.MouseButton1Down, function()
  1672. TweenService:Create(TextboxFrame, TweenInfo.new(0.25, Enum.EasingStyle.Quint, Enum.EasingDirection.Out), {BackgroundColor3 = Color3.fromRGB(OrionLib.Themes[OrionLib.SelectedTheme].Second.R * 255 + 6, OrionLib.Themes[OrionLib.SelectedTheme].Second.G * 255 + 6, OrionLib.Themes[OrionLib.SelectedTheme].Second.B * 255 + 6)}):Play()
  1673. end)
  1674. end
  1675. function ElementFunction:AddColorpicker(ColorpickerConfig)
  1676. ColorpickerConfig = ColorpickerConfig or {}
  1677. ColorpickerConfig.Name = ColorpickerConfig.Name or "Colorpicker"
  1678. ColorpickerConfig.Default = ColorpickerConfig.Default or Color3.fromRGB(255,255,255)
  1679. ColorpickerConfig.Callback = ColorpickerConfig.Callback or function() end
  1680. ColorpickerConfig.Flag = ColorpickerConfig.Flag or nil
  1681. ColorpickerConfig.Save = ColorpickerConfig.Save or false
  1682.  
  1683. local ColorH, ColorS, ColorV = 1, 1, 1
  1684. local Colorpicker = {Value = ColorpickerConfig.Default, Toggled = false, Type = "Colorpicker", Save = ColorpickerConfig.Save}
  1685.  
  1686. local ColorSelection = Create("ImageLabel", {
  1687. Size = UDim2.new(0, 18, 0, 18),
  1688. Position = UDim2.new(select(3, Color3.toHSV(Colorpicker.Value))),
  1689. ScaleType = Enum.ScaleType.Fit,
  1690. AnchorPoint = Vector2.new(0.5, 0.5),
  1691. BackgroundTransparency = 1,
  1692. Image = "http://www.roblox.com/asset/?id=4805639000"
  1693. })
  1694.  
  1695. local HueSelection = Create("ImageLabel", {
  1696. Size = UDim2.new(0, 18, 0, 18),
  1697. Position = UDim2.new(0.5, 0, 1 - select(1, Color3.toHSV(Colorpicker.Value))),
  1698. ScaleType = Enum.ScaleType.Fit,
  1699. AnchorPoint = Vector2.new(0.5, 0.5),
  1700. BackgroundTransparency = 1,
  1701. Image = "http://www.roblox.com/asset/?id=4805639000"
  1702. })
  1703.  
  1704. local Color = Create("ImageLabel", {
  1705. Size = UDim2.new(1, -25, 1, 0),
  1706. Visible = false,
  1707. Image = "rbxassetid://4155801252"
  1708. }, {
  1709. Create("UICorner", {CornerRadius = UDim.new(0, 5)}),
  1710. ColorSelection
  1711. })
  1712.  
  1713. local Hue = Create("Frame", {
  1714. Size = UDim2.new(0, 20, 1, 0),
  1715. Position = UDim2.new(1, -20, 0, 0),
  1716. Visible = false
  1717. }, {
  1718. Create("UIGradient", {Rotation = 270, Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 0, 4)), ColorSequenceKeypoint.new(0.20, Color3.fromRGB(234, 255, 0)), ColorSequenceKeypoint.new(0.40, Color3.fromRGB(21, 255, 0)), ColorSequenceKeypoint.new(0.60, Color3.fromRGB(0, 255, 255)), ColorSequenceKeypoint.new(0.80, Color3.fromRGB(0, 17, 255)), ColorSequenceKeypoint.new(0.90, Color3.fromRGB(255, 0, 251)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(255, 0, 4))},}),
  1719. Create("UICorner", {CornerRadius = UDim.new(0, 5)}),
  1720. HueSelection
  1721. })
  1722.  
  1723. local ColorpickerContainer = Create("Frame", {
  1724. Position = UDim2.new(0, 0, 0, 32),
  1725. Size = UDim2.new(1, 0, 1, -32),
  1726. BackgroundTransparency = 1,
  1727. ClipsDescendants = true
  1728. }, {
  1729. Hue,
  1730. Color,
  1731. Create("UIPadding", {
  1732. PaddingLeft = UDim.new(0, 35),
  1733. PaddingRight = UDim.new(0, 35),
  1734. PaddingBottom = UDim.new(0, 10),
  1735. PaddingTop = UDim.new(0, 17)
  1736. })
  1737. })
  1738.  
  1739. local Click = SetProps(MakeElement("Button"), {
  1740. Size = UDim2.new(1, 0, 1, 0)
  1741. })
  1742.  
  1743. local ColorpickerBox = AddThemeObject(SetChildren(SetProps(MakeElement("RoundFrame", Color3.fromRGB(255, 255, 255), 0, 4), {
  1744. Size = UDim2.new(0, 24, 0, 24),
  1745. Position = UDim2.new(1, -12, 0.5, 0),
  1746. AnchorPoint = Vector2.new(1, 0.5)
  1747. }), {
  1748. AddThemeObject(MakeElement("Stroke"), "Stroke")
  1749. }), "Main")
  1750.  
  1751. local ColorpickerFrame = AddThemeObject(SetChildren(SetProps(MakeElement("RoundFrame", Color3.fromRGB(255, 255, 255), 0, 5), {
  1752. Size = UDim2.new(1, 0, 0, 38),
  1753. Parent = ItemParent
  1754. }), {
  1755. SetProps(SetChildren(MakeElement("TFrame"), {
  1756. AddThemeObject(SetProps(MakeElement("Label", ColorpickerConfig.Name, 15), {
  1757. Size = UDim2.new(1, -12, 1, 0),
  1758. Position = UDim2.new(0, 12, 0, 0),
  1759. Font = Enum.Font.GothamBold,
  1760. Name = "Content"
  1761. }), "Text"),
  1762. ColorpickerBox,
  1763. Click,
  1764. AddThemeObject(SetProps(MakeElement("Frame"), {
  1765. Size = UDim2.new(1, 0, 0, 1),
  1766. Position = UDim2.new(0, 0, 1, -1),
  1767. Name = "Line",
  1768. Visible = false
  1769. }), "Stroke"),
  1770. }), {
  1771. Size = UDim2.new(1, 0, 0, 38),
  1772. ClipsDescendants = true,
  1773. Name = "F"
  1774. }),
  1775. ColorpickerContainer,
  1776. AddThemeObject(MakeElement("Stroke"), "Stroke"),
  1777. }), "Second")
  1778.  
  1779. AddConnection(Click.MouseButton1Click, function()
  1780. Colorpicker.Toggled = not Colorpicker.Toggled
  1781. TweenService:Create(ColorpickerFrame,TweenInfo.new(.15, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),{Size = Colorpicker.Toggled and UDim2.new(1, 0, 0, 148) or UDim2.new(1, 0, 0, 38)}):Play()
  1782. Color.Visible = Colorpicker.Toggled
  1783. Hue.Visible = Colorpicker.Toggled
  1784. ColorpickerFrame.F.Line.Visible = Colorpicker.Toggled
  1785. end)
  1786.  
  1787. local function UpdateColorPicker()
  1788. ColorpickerBox.BackgroundColor3 = Color3.fromHSV(ColorH, ColorS, ColorV)
  1789. Color.BackgroundColor3 = Color3.fromHSV(ColorH, 1, 1)
  1790. Colorpicker:Set(ColorpickerBox.BackgroundColor3)
  1791. ColorpickerConfig.Callback(ColorpickerBox.BackgroundColor3)
  1792. SaveCfg(game.GameId)
  1793. end
  1794.  
  1795. ColorH = 1 - (math.clamp(HueSelection.AbsolutePosition.Y - Hue.AbsolutePosition.Y, 0, Hue.AbsoluteSize.Y) / Hue.AbsoluteSize.Y)
  1796. ColorS = (math.clamp(ColorSelection.AbsolutePosition.X - Color.AbsolutePosition.X, 0, Color.AbsoluteSize.X) / Color.AbsoluteSize.X)
  1797. ColorV = 1 - (math.clamp(ColorSelection.AbsolutePosition.Y - Color.AbsolutePosition.Y, 0, Color.AbsoluteSize.Y) / Color.AbsoluteSize.Y)
  1798.  
  1799. AddConnection(Color.InputBegan, function(input)
  1800. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1801. if ColorInput then
  1802. ColorInput:Disconnect()
  1803. end
  1804. ColorInput = AddConnection(RunService.RenderStepped, function()
  1805. local ColorX = (math.clamp(Mouse.X - Color.AbsolutePosition.X, 0, Color.AbsoluteSize.X) / Color.AbsoluteSize.X)
  1806. local ColorY = (math.clamp(Mouse.Y - Color.AbsolutePosition.Y, 0, Color.AbsoluteSize.Y) / Color.AbsoluteSize.Y)
  1807. ColorSelection.Position = UDim2.new(ColorX, 0, ColorY, 0)
  1808. ColorS = ColorX
  1809. ColorV = 1 - ColorY
  1810. UpdateColorPicker()
  1811. end)
  1812. end
  1813. end)
  1814.  
  1815. AddConnection(Color.InputEnded, function(input)
  1816. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1817. if ColorInput then
  1818. ColorInput:Disconnect()
  1819. end
  1820. end
  1821. end)
  1822.  
  1823. AddConnection(Hue.InputBegan, function(input)
  1824. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1825. if HueInput then
  1826. HueInput:Disconnect()
  1827. end;
  1828.  
  1829. HueInput = AddConnection(RunService.RenderStepped, function()
  1830. local HueY = (math.clamp(Mouse.Y - Hue.AbsolutePosition.Y, 0, Hue.AbsoluteSize.Y) / Hue.AbsoluteSize.Y)
  1831.  
  1832. HueSelection.Position = UDim2.new(0.5, 0, HueY, 0)
  1833. ColorH = 1 - HueY
  1834.  
  1835. UpdateColorPicker()
  1836. end)
  1837. end
  1838. end)
  1839.  
  1840. AddConnection(Hue.InputEnded, function(input)
  1841. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1842. if HueInput then
  1843. HueInput:Disconnect()
  1844. end
  1845. end
  1846. end)
  1847.  
  1848. function Colorpicker:Set(Value)
  1849. Colorpicker.Value = Value
  1850. ColorpickerBox.BackgroundColor3 = Colorpicker.Value
  1851. ColorpickerConfig.Callback(Colorpicker.Value)
  1852. end
  1853.  
  1854. Colorpicker:Set(Colorpicker.Value)
  1855. if ColorpickerConfig.Flag then
  1856. OrionLib.Flags[ColorpickerConfig.Flag] = Colorpicker
  1857. end
  1858. return Colorpicker
  1859. end
  1860. return ElementFunction
  1861. end
  1862.  
  1863. local ElementFunction = {}
  1864.  
  1865. function ElementFunction:AddSection(SectionConfig)
  1866. SectionConfig.Name = SectionConfig.Name or "Section"
  1867.  
  1868. local SectionFrame = SetChildren(SetProps(MakeElement("TFrame"), {
  1869. Size = UDim2.new(1, 0, 0, 26),
  1870. Parent = Container
  1871. }), {
  1872. AddThemeObject(SetProps(MakeElement("Label", SectionConfig.Name, 14), {
  1873. Size = UDim2.new(1, -12, 0, 16),
  1874. Position = UDim2.new(0, 0, 0, 3),
  1875. Font = Enum.Font.GothamSemibold
  1876. }), "TextDark"),
  1877. SetChildren(SetProps(MakeElement("TFrame"), {
  1878. AnchorPoint = Vector2.new(0, 0),
  1879. Size = UDim2.new(1, 0, 1, -24),
  1880. Position = UDim2.new(0, 0, 0, 23),
  1881. Name = "Holder"
  1882. }), {
  1883. MakeElement("List", 0, 6)
  1884. }),
  1885. })
  1886.  
  1887. AddConnection(SectionFrame.Holder.UIListLayout:GetPropertyChangedSignal("AbsoluteContentSize"), function()
  1888. SectionFrame.Size = UDim2.new(1, 0, 0, SectionFrame.Holder.UIListLayout.AbsoluteContentSize.Y + 31)
  1889. SectionFrame.Holder.Size = UDim2.new(1, 0, 0, SectionFrame.Holder.UIListLayout.AbsoluteContentSize.Y)
  1890. end)
  1891.  
  1892. local SectionFunction = {}
  1893. for i, v in next, GetElements(SectionFrame.Holder) do
  1894. SectionFunction[i] = v
  1895. end
  1896. return SectionFunction
  1897. end
  1898.  
  1899. for i, v in next, GetElements(Container) do
  1900. ElementFunction[i] = v
  1901. end
  1902.  
  1903. if TabConfig.PremiumOnly then
  1904. for i, v in next, ElementFunction do
  1905. ElementFunction[i] = function() end
  1906. end
  1907. Container:FindFirstChild("UIListLayout"):Destroy()
  1908. Container:FindFirstChild("UIPadding"):Destroy()
  1909. SetChildren(SetProps(MakeElement("TFrame"), {
  1910. Size = UDim2.new(1, 0, 1, 0),
  1911. Parent = ItemParent
  1912. }), {
  1913. AddThemeObject(SetProps(MakeElement("Image", "rbxassetid://3610239960"), {
  1914. Size = UDim2.new(0, 18, 0, 18),
  1915. Position = UDim2.new(0, 15, 0, 15),
  1916. ImageTransparency = 0.4
  1917. }), "Text"),
  1918. AddThemeObject(SetProps(MakeElement("Label", "Unauthorised Access", 14), {
  1919. Size = UDim2.new(1, -38, 0, 14),
  1920. Position = UDim2.new(0, 38, 0, 18),
  1921. TextTransparency = 0.4
  1922. }), "Text"),
  1923. AddThemeObject(SetProps(MakeElement("Image", "rbxassetid://4483345875"), {
  1924. Size = UDim2.new(0, 56, 0, 56),
  1925. Position = UDim2.new(0, 84, 0, 110),
  1926. }), "Text"),
  1927. AddThemeObject(SetProps(MakeElement("Label", "Premium Features", 14), {
  1928. Size = UDim2.new(1, -150, 0, 14),
  1929. Position = UDim2.new(0, 150, 0, 112),
  1930. Font = Enum.Font.GothamBold
  1931. }), "Text"),
  1932. AddThemeObject(SetProps(MakeElement("Label", "This part of the script is locked to Sirius Premium users. Purchase Premium in the Discord server (discord.gg/sirius)", 12), {
  1933. Size = UDim2.new(1, -200, 0, 14),
  1934. Position = UDim2.new(0, 150, 0, 138),
  1935. TextWrapped = true,
  1936. TextTransparency = 0.4
  1937. }), "Text")
  1938. })
  1939. end
  1940. return ElementFunction
  1941. end
  1942.  
  1943. --if writefile and isfile then
  1944. -- if not isfile("NewLibraryNotification1.txt") then
  1945. -- local http_req = (syn and syn.request) or (http and http.request) or http_request
  1946. -- if http_req then
  1947. -- http_req({
  1948. -- Url = 'http://127.0.0.1:6463/rpc?v=1',
  1949. -- Method = 'POST',
  1950. -- Headers = {
  1951. -- ['Content-Type'] = 'application/json',
  1952. -- Origin = 'https://discord.com'
  1953. -- },
  1954. -- Body = HttpService:JSONEncode({
  1955. -- cmd = 'INVITE_BROWSER',
  1956. -- nonce = HttpService:GenerateGUID(false),
  1957. -- args = {code = 'sirius'}
  1958. -- })
  1959. -- })
  1960. -- end
  1961. -- OrionLib:MakeNotification({
  1962. -- Name = "UI Library Available",
  1963. -- Content = "New UI Library Available - Joining Discord (#announcements)",
  1964. -- Time = 8
  1965. -- })
  1966. -- spawn(function()
  1967. -- local UI = game:GetObjects("rbxassetid://11403719739")[1]
  1968.  
  1969. -- if gethui then
  1970. -- UI.Parent = gethui()
  1971. -- elseif syn.protect_gui then
  1972. -- syn.protect_gui(UI)
  1973. -- UI.Parent = game.CoreGui
  1974. -- else
  1975. -- UI.Parent = game.CoreGui
  1976. -- end
  1977.  
  1978. -- task.wait(11)
  1979.  
  1980. -- UI:Destroy()
  1981. -- end)
  1982. -- writefile("NewLibraryNotification1.txt","The value for the notification having been sent to you.")
  1983. -- end
  1984. --end
  1985.  
  1986.  
  1987.  
  1988. return TabFunction
  1989. end
  1990.  
  1991. function OrionLib:Destroy()
  1992. Orion:Destroy()
  1993. end
  1994.  
  1995. return OrionLib
  1996. end
  1997.  
  1998.  
  1999. local UI = init():MakeWindow({
  2000. Name = "Legends Of Speed",
  2001. HidePremuim = true,
  2002. SaveConfig = false,
  2003. })
  2004.  
  2005. local a = UI:MakeTab({
  2006. Name = "Main",
  2007. Icon = '',
  2008. PremuimOnly = false
  2009. })
  2010.  
  2011.  
  2012. local AutoFarms = a:AddSection({
  2013. Name = "Auto Farms"
  2014. })
  2015.  
  2016.  
  2017. a:AddToggle({
  2018. Name = "Auto Orbs Farm",
  2019. Default = false,
  2020. Callback = function(bool)
  2021. getgenv().autoOrb = bool
  2022. if bool then
  2023. AutoOrb()
  2024. end
  2025. end
  2026. })
  2027.  
  2028.  
  2029. a:AddToggle({
  2030. Name = "Auto Gems Farm",
  2031. Default = false,
  2032. Callback = function(bool)
  2033. getgenv().autoGem = bool
  2034. if bool then
  2035. AutoGem()
  2036. end
  2037. end
  2038. })
  2039.  
  2040.  
  2041. a:AddToggle({
  2042. Name = "Auto Hoops Farm",
  2043. Default = false,
  2044. Callback = function(bool)
  2045. getgenv().autoHoop = bool
  2046. if bool then
  2047. AutoHoop()
  2048. end
  2049. end
  2050. })
  2051.  
  2052.  
  2053. a:AddToggle({
  2054. Name = "Auto Rebirth",
  2055. Default = false,
  2056. Callback = function(bool)
  2057. getgenv().autoRebirth = bool
  2058. if bool then
  2059. AutoRebirth()
  2060. end
  2061. end
  2062. })
  2063.  
  2064.  
  2065. a:AddToggle({
  2066. Name = "Auto Speed Ramps",
  2067. Default = false,
  2068. Callback = function(bool)
  2069. getgenv().autoRamp = bool
  2070. if bool then
  2071. AutoRamp()
  2072. end
  2073. end
  2074. })
  2075.  
  2076.  
  2077. a:AddButton({
  2078. Name = "Collect Chest Rewards",
  2079. Callback = function()
  2080. for _, v in pairs(game.ReplicatedStorage.chestRewards:GetChildren()) do
  2081. game.ReplicatedStorage.rEvents.checkChestRemote:InvokeServer(v.Name)
  2082. end
  2083. end
  2084. })
  2085.  
  2086.  
  2087. a:AddButton({
  2088. Name = "Upgrade x2 Trail Boosts",
  2089. Callback = function()
  2090. game:GetService("ReplicatedStorage").rEvents.ultimatesRemote:InvokeServer("upgradeUltimate", "x2 Trail Boosts")
  2091. end
  2092. })
  2093.  
  2094.  
  2095. local Races = a:AddSection({
  2096. Name = "Races"
  2097. })
  2098.  
  2099. local Maps = {}
  2100. local racemaps = WS.raceMaps
  2101. local DefaultMap = racemaps:GetChildren()[1]
  2102.  
  2103. for _, v in pairs(racemaps:GetChildren()) do
  2104. table.insert(Maps, v.Name)
  2105. end
  2106.  
  2107. a:AddDropdown({
  2108. Name = "Map Selection",
  2109. Default = tostring(DefaultMap),
  2110. Options = Maps,
  2111. Callback = function(value)
  2112. selectedMap = value
  2113. end
  2114. })
  2115.  
  2116.  
  2117. a:AddButton({
  2118. Name = "Goto Finish Line",
  2119. Callback = function()
  2120. TeleportTO(racemaps[selectedMap].finishPart)
  2121. end
  2122. })
  2123.  
  2124.  
  2125. a:AddToggle({
  2126. Name = "Auto Race Farm",
  2127. Default = false,
  2128. Callback = function(bool)
  2129. getgenv().autoRace = bool
  2130. if bool then
  2131. AutoRace()
  2132. end
  2133. end
  2134. })
  2135.  
  2136.  
  2137. local b = UI:MakeTab({
  2138. Name = "Crystals",
  2139. Icon = '',
  2140. PremuimOnly = false
  2141. })
  2142.  
  2143.  
  2144. local Pets = b:AddSection({
  2145. Name = "Pets"
  2146. })
  2147.  
  2148. local Crystals = {}
  2149. local firstCrystal = tostring(WS.mapCrystalsFolder:GetChildren()[1])
  2150.  
  2151. for _, v in pairs(WS.mapCrystalsFolder:GetChildren()) do
  2152. table.insert(Crystals, v.Name)
  2153. end
  2154.  
  2155.  
  2156. b:AddDropdown({
  2157. Name = "Crystal Selection",
  2158. Default = firstCrystal,
  2159. Options = Crystals,
  2160. Callback = function(value)
  2161. selectedCrystal = value
  2162. end
  2163. })
  2164.  
  2165.  
  2166. b:AddToggle({
  2167. Name = "Spam Open Crystal",
  2168. Default = false,
  2169. Callback = function(bool)
  2170. getgenv().autoOpen = bool
  2171. if selectedCrystal and bool then
  2172. AutoOpen()
  2173. end
  2174. end
  2175. })
  2176.  
  2177.  
  2178. b:AddToggle({
  2179. Name = "AutoEvolve",
  2180. Default = false,
  2181. Callback = function(bool)
  2182. getgenv().autoEvolve = bool
  2183. if bool then
  2184. AutoEvolve()
  2185. end
  2186. end
  2187. })
  2188.  
  2189.  
  2190. b:AddToggle({
  2191. Name = "Glitch Pets",
  2192. Default = false,
  2193. Callback = function(bool)
  2194. getgenv().PetGlitch = bool
  2195. if bool then
  2196. GlitchPets()
  2197. end
  2198. end
  2199. })
  2200.  
  2201.  
  2202. local c = UI:MakeTab({
  2203. Name = "Teleport",
  2204. Icon = '',
  2205. PremuimOnly = false
  2206. })
  2207.  
  2208.  
  2209. local Telelports = c:AddSection({
  2210. Name = "Worlds"
  2211. })
  2212.  
  2213.  
  2214. local TeleportPart = WS.areaTeleportParts
  2215. local npcPart = WS.questsNpcs
  2216.  
  2217. c:AddButton({
  2218. Name = "City",
  2219. Callback = function()
  2220. TeleportTO(TeleportPart.rebirthTeleportPart)
  2221. end
  2222. })
  2223.  
  2224.  
  2225. c:AddButton({
  2226. Name = "Snow City",
  2227. Callback = function()
  2228. TeleportTO(TeleportPart.mysteriousCaveToSnowCity)
  2229. end
  2230. })
  2231.  
  2232.  
  2233. c:AddButton({
  2234. Name = "Magma City",
  2235. Callback = function()
  2236. TeleportTO(TeleportPart.infernoCaveToMagmaCity)
  2237. end
  2238. })
  2239.  
  2240.  
  2241. c:AddButton({
  2242. Name = "Legends Highway",
  2243. Callback = function()
  2244. TeleportTO(TeleportPart.electroCaveToLegendsHighway)
  2245. end
  2246. })
  2247.  
  2248.  
  2249. c:AddButton({
  2250. Name = "Speed Jungle",
  2251. Callback = function()
  2252. TeleportTO(TeleportPart.jungleCaveToSpeedJungle)
  2253. end
  2254. })
  2255.  
  2256.  
  2257. local Courses = c:AddSection({
  2258. Name = "Courses"
  2259. })
  2260.  
  2261.  
  2262. c:AddButton({
  2263. Name = "Grass Course",
  2264. Callback = function()
  2265. TeleportTO(TeleportPart.cityToGrassCourse)
  2266. end
  2267. })
  2268.  
  2269.  
  2270. c:AddButton({
  2271. Name = "Frost Course",
  2272. Callback = function()
  2273. TeleportTO(TeleportPart.cityToFrostCourse)
  2274. end
  2275. })
  2276.  
  2277.  
  2278. c:AddButton({
  2279. Name = "Pirate Course",
  2280. Callback = function()
  2281. TeleportTO(TeleportPart.snowCityToPirateCourse)
  2282. end
  2283. })
  2284.  
  2285.  
  2286. c:AddButton({
  2287. Name = "Parkour Challenage",
  2288. Callback = function()
  2289. TeleportTO(TeleportPart.cityToParkourChallenge)
  2290. end
  2291. })
  2292.  
  2293.  
  2294. local npc = c:AddSection({
  2295. Name = "Quest NPCS"
  2296. })
  2297.  
  2298.  
  2299. c:AddButton({
  2300. Name = "Dual Chaos Birdies",
  2301. Callback = function()
  2302. TeleportTO(npcPart["Dual Chaos Birdies"])
  2303. end
  2304. })
  2305.  
  2306.  
  2307. c:AddButton({
  2308. Name = "Electro Bunny",
  2309. Callback = function()
  2310. TeleportTO(npcPart["Electro Bunny"])
  2311. end
  2312. })
  2313.  
  2314.  
  2315. c:AddButton({
  2316. Name = "Jungle Captain",
  2317. Callback = function()
  2318. TeleportTO(npcPart["Jungle Captain"])
  2319. end
  2320. })
  2321.  
  2322.  
  2323. c:AddButton({
  2324. Name = "Sarge",
  2325. Callback = function()
  2326. TeleportTO(npcPart.Sarge)
  2327. end
  2328. })
  2329.  
  2330.  
  2331. local d = UI:MakeTab({
  2332. Name = "Misc",
  2333. Icon = '',
  2334. PremuimOnly = false
  2335. })
  2336.  
  2337.  
  2338. local Misc = d:AddSection({
  2339. Name = "Player"
  2340. })
  2341.  
  2342.  
  2343. d:AddSlider({
  2344. Name = "Walk Speed",
  2345. Min = 30,
  2346. Max = 5000,
  2347. Default = 30,
  2348. Color = Color3.fromRGB(255, 84, 84),
  2349. Increment = 1,
  2350. ValueName = '',
  2351. Callback = function(value)
  2352. SpeedValue = value
  2353. end
  2354. })
  2355.  
  2356.  
  2357. d:AddSlider({
  2358. Name = "Jump Power",
  2359. Min = 30,
  2360. Max = 5000,
  2361. Default = 30,
  2362. Color = Color3.fromRGB(255, 84, 84),
  2363. Increment = 1,
  2364. ValueName = '',
  2365. Callback = function(value)
  2366. JumpValue = value
  2367. end
  2368. })
  2369.  
  2370.  
  2371. d:AddSlider({
  2372. Name = "Gravity",
  2373. Min = 0,
  2374. Max = 200,
  2375. Default = 30,
  2376. Color = Color3.fromRGB(255, 84, 84),
  2377. Increment = 1,
  2378. ValueName = '',
  2379. Callback = function(value)
  2380. WS.Gravity = value
  2381. end
  2382. })
  2383.  
  2384.  
  2385. d:AddSlider({
  2386. Name = "Hip Height",
  2387. Min = 1,
  2388. Max = 5000,
  2389. Default = 0,
  2390. Color = Color3.fromRGB(255, 84, 84),
  2391. Increment = 1,
  2392. ValueName = '',
  2393. Callback = function(value)
  2394. getHumanoid(char).HipHeight = value
  2395. end
  2396. })
  2397.  
  2398.  
  2399. d:AddSlider({
  2400. Name = "FOV",
  2401. Min = 0,
  2402. Max = 200,
  2403. Default = 30,
  2404. Color = Color3.fromRGB(255, 84, 84),
  2405. Increment = 1,
  2406. ValueName = '',
  2407. Callback = function(value)
  2408. WS.CurrentCamera.FieldOfView = value
  2409. end
  2410. })
  2411.  
  2412.  
  2413. d:AddToggle({
  2414. Name = "Toggle Walk Speed",
  2415. Default = false,
  2416. Callback = function(bool)
  2417. getgenv().PlayerWalkSpeed = bool
  2418. if bool then
  2419. ToggleSpeed()
  2420. end
  2421. end
  2422. })
  2423.  
  2424.  
  2425. d:AddToggle({
  2426. Name = "Toggle Jump Power",
  2427. Default = false,
  2428. Callback = function(bool)
  2429. getgenv().PlayerJumpPower = bool
  2430. if bool then
  2431. ToggleJump()
  2432. end
  2433. end
  2434. })
  2435.  
  2436. local infjump
  2437.  
  2438. d:AddToggle({
  2439. Name = "Inf Jump",
  2440. Default = false,
  2441. Callback = function(bool)
  2442. if bool then
  2443. infjump = game:GetService("UserInputService").JumpRequest
  2444. infjump:Connect(function()
  2445. getHumanoid(char):ChangeState("Jumping")
  2446. end)
  2447. else
  2448. if infjump == game:GetService("UserInputService").JumpRequest then
  2449. infjump:Disconnect()
  2450. end
  2451. end
  2452. end
  2453. })
  2454.  
  2455.  
  2456. d:AddButton({
  2457. Name = "Reset Character",
  2458. Callback = function()
  2459. getHumanoid(char).Health = 0
  2460. end
  2461. })
  2462.  
  2463.  
  2464. d:AddButton({
  2465. Name = "Server Hop",
  2466. Callback = function()
  2467. local PlaceID = game.PlaceId
  2468. local AllIDs = {}
  2469. local foundAnything = ""
  2470. local actualHour = os.date("!*t").hour
  2471. local Deleted = false
  2472. local File = pcall(function()
  2473. AllIDs = game:GetService('HttpService'):JSONDecode(readfile("NotSameServers.json"))
  2474. end)
  2475. if not File then
  2476. table.insert(AllIDs, actualHour)
  2477. writefile("NotSameServers.json", game:GetService('HttpService'):JSONEncode(AllIDs))
  2478. end
  2479. function TPReturner()
  2480. local Site;
  2481. if foundAnything == "" then
  2482. Site = game.HttpService:JSONDecode(game:HttpGet('https://games.roblox.com/v1/games/' .. PlaceID .. '/servers/Public?sortOrder=Asc&limit=100'))
  2483. else
  2484. Site = game.HttpService:JSONDecode(game:HttpGet('https://games.roblox.com/v1/games/' .. PlaceID .. '/servers/Public?sortOrder=Asc&limit=100&cursor=' .. foundAnything))
  2485. end
  2486. local ID = ""
  2487. if Site.nextPageCursor and Site.nextPageCursor ~= "null" and Site.nextPageCursor ~= nil then
  2488. foundAnything = Site.nextPageCursor
  2489. end
  2490. local num = 0;
  2491. for i,v in pairs(Site.data) do
  2492. local Possible = true
  2493. ID = tostring(v.id)
  2494. if tonumber(v.maxPlayers) > tonumber(v.playing) then
  2495. for _,Existing in pairs(AllIDs) do
  2496. if num ~= 0 then
  2497. if ID == tostring(Existing) then
  2498. Possible = false
  2499. end
  2500. else
  2501. if tonumber(actualHour) ~= tonumber(Existing) then
  2502. local delFile = pcall(function()
  2503. delfile("NotSameServers.json")
  2504. AllIDs = {}
  2505. table.insert(AllIDs, actualHour)
  2506. end)
  2507. end
  2508. end
  2509. num = num + 1
  2510. end
  2511. if Possible == true then
  2512. table.insert(AllIDs, ID)
  2513. task.wait()
  2514. pcall(function()
  2515. writefile("NotSameServers.json", game:GetService('HttpService'):JSONEncode(AllIDs))
  2516. task.wait()
  2517. game:GetService("TeleportService"):TeleportToPlaceInstance(PlaceID, ID, game.Players.LocalPlayer)
  2518. end)
  2519. task.wait(4)
  2520. end
  2521. end
  2522. end
  2523. end
  2524.  
  2525. function Teleport()
  2526. while task.wait() do
  2527. pcall(function()
  2528. TPReturner()
  2529. if foundAnything ~= "" then
  2530. TPReturner()
  2531. end
  2532. end)
  2533. end
  2534. end
  2535.  
  2536. getgenv().serverhop = Teleport
  2537. end
  2538. })
  2539.  
  2540.  
  2541. d:AddButton({
  2542. Name = "Rejoin",
  2543. Callback = function()
  2544. game:GetService("TeleportService"):Teleport(game.PlaceId)
  2545. end
  2546. })
Advertisement
Comments
  • wehhtalwga
    1 year
    # text 2.26 KB | 0 1
    1. -- Window of CigarHUB
    2. local OrionLib = loadstring(game:HttpGet(('https://raw.githubusercontent.com/shlexware/Orion/main/source')))()
    3. local Window = OrionLib:MakeWindow({Name = "CigarHub | Legends Of Speed âš¡", HidePremium = false, SaveConfig = true, ConfigFolder = "CigarFold"})
    4.  
    5. OrionLib:MakeNotification({
    6. Name = "Welcome!",
    7. Content = "Welcome to CigarHub, Full of exploits.",
    8. Image = "rbxassetid://4483345998",
    9. Time = 3
    10. })
    11.  
    12.  
    13. -- Values
    14. _G.AutoSpeed = true
    15. _G.AutoDiamonds = true
    16. _G.AutoRebirth = true
    17.  
    18.  
    19.  
    20. -- Functions
    21. function AutoSpeed()
    22. while _G.AutoSpeed == true do
    23. Wait(0.000000000000000001)
    24.  
    25. local args = {
    26. [1] = "collectOrb",
    27. [2] = "Orange Orb",
    28. [3] = "City"
    29. }
    30.  
    31. game:GetService("ReplicatedStorage").rEvents.orbEvent:FireServer(unpack(args))
    32. end
    33. end
    34.  
    35.  
    36.  
    37.  
    38. function AutoDiamonds()
    39. while _G.AutoDiamonds == true do
    40. Wait(0.0000000000000000001)
    41.  
    42. local args = {
    43. [1] = "collectOrb",
    44. [2] = "Gem",
    45. [3] = "City"
    46. }
    47.  
    48. game:GetService("ReplicatedStorage").rEvents.orbEvent:FireServer(unpack(args))
    49. end
    50. end
    51.  
    52. function AutoRebirth()
    53. while _G.AutoRebirth == true do
    54. wait(1)
    55.  
    56. local args = {
    57. [1] = "rebirthRequest"
    58. }
    59.  
    60. game:GetService("ReplicatedStorage").rEvents.rebirthEvent:FireServer(unpack(args))
    61. end
    62. end
    63.  
    64.  
    65. -- Tabs
    66. local Tab = Window:MakeTab({
    67. Name = "AutoFarm",
    68. Icon = "rbxassetid://4483345998",
    69. PremiumOnly = false
    70. })
    71.  
    72. -- Toggles
    73. Tab:AddToggle({
    74. Name = "AutoSpeed",
    75. Default = false,
    76. Callback = function(Value)
    77. _G.AutoSpeed = Value
    78. AutoSpeed()
    79. end
    80. })
    81.  
    82. -- Toggles
    83. Tab:AddToggle({
    84. Name = "AutoDiamonds",
    85. Default = false,
    86. Callback = function(Value)
    87. _G.AutoDiamonds = Value
    88. AutoDiamonds()
    89. end
    90. })
    91.  
    92. -- Tabs
    93. local Tab = Window:MakeTab({
    94. Name = "AutoRebirth",
    95. Icon = "rbxassetid://4483345998",
    96. PremiumOnly = false
    97. })
    98.  
    99. -- Toggles
    100. Tab:AddToggle({
    101. Name = "AutoRebirth",
    102. Default = false,
    103. Callback = function(Value)
    104. _G.AutoRebirth = Value
    105. AutoRebirth()
    106. end
    107. })
    108.  
    109. -- Tabs
    110. local Tab = Window:MakeTab({
    111. Name = "Misc",
    112. Icon = "rbxassetid://4483345998",
    113. PremiumOnly = false
    114. })
    115.  
    116. -- Button
    117. Tab:AddButton({
    118. Name = "More things coming soon...",
    119. Callback = function()
    120. print("button pressed")
    121. end
    122. })
  • LocalWendyLOL
    361 days
    # text 0.02 KB | 1 0
    1. good script.i like it
Add Comment
Please, Sign In to add comment
Advertisement