Yingyang005

ADD V3

Jan 20th, 2025 (edited)
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.87 KB | None | 0 0
  1. -- Chargement d'OrionLib
  2. local OrionLib = loadstring(game:HttpGet(('https://raw.githubusercontent.com/shlexware/Orion/main/source')))()
  3.  
  4. -- Création de la fenêtre principale
  5. local Window = OrionLib:MakeWindow({
  6. Name = "Keybrew Hub | Anime Adventures",
  7. HidePremium = false,
  8. SaveConfig = true,
  9. ConfigFolder = "OrionConfig",
  10. Theme = OrionLib.Themes.Dark,
  11. ColorOverrides = {
  12. MainFrame = Color3.fromRGB(0, 0, 0),
  13. Toggle = Color3.fromRGB(124, 37, 255),
  14. ToggleAccent = Color3.fromRGB(255, 255, 255),
  15. Dropdown = Color3.fromRGB(124, 37, 255),
  16. DropdownAccent = Color3.fromRGB(255, 255, 255),
  17. Slider = Color3.fromRGB(124, 37, 255),
  18. SliderAccent = Color3.fromRGB(255, 255, 255),
  19. NavBarAccent = Color3.fromRGB(0, 0, 0),
  20. Content = Color3.fromRGB(0, 0, 0),
  21. }
  22. })
  23.  
  24. local MainTab = Window:MakeTab({
  25. Name = "Main",
  26. Icon = "rbxassetid://4483345998",
  27. PremiumOnly = false
  28. })
  29.  
  30. local MiscTab = Window:MakeTab({
  31. Name = "Misc",
  32. Icon = "rbxassetid://4483345998",
  33. PremiumOnly = false
  34. })
  35.  
  36. local CredTab = Window:MakeTab({
  37. Name = "Credits",
  38. Icon = "rbxassetid://4483345998",
  39. PremiumOnly = false
  40. })
  41.  
  42. CredTab:AddButton({
  43. Name = "Copy Discord UyuSF4fPC9",
  44. Callback = function()
  45. setclipboard("https://discord.gg/UyuSF4fPC9")
  46. end
  47. })
  48.  
  49. MainTab:AddToggle({
  50. Name = "Auto Abilities",
  51. Default = false,
  52. Callback = function(Value)
  53. a = Value
  54. while a do
  55. task.wait()
  56. pcall(function()
  57. for i, v in next, game:GetService("Workspace")["_UNITS"]:GetChildren() do
  58. if v:IsA("Model") and v._stats.player.Value == game.Players.LocalPlayer then
  59. local args = { [1] = v }
  60. game:GetService("ReplicatedStorage").endpoints.client_to_server.use_active_attack:InvokeServer(unpack(args))
  61. end
  62. end
  63. end)
  64. end
  65. end
  66. })
  67.  
  68. local Units = {}
  69. for i, v in next, game:GetService("Workspace")["_UNITS"]:GetChildren() do
  70. if v:IsA("Model") and v._stats.player.Value == game.Players.LocalPlayer then
  71. if not table.find(Units, tostring(v)) then
  72. table.insert(Units, tostring(v))
  73. end
  74. end
  75. end
  76.  
  77. local DropDown = MainTab:AddDropdown({
  78. Name = "Select Unit",
  79. Options = Units,
  80. Callback = function(Value)
  81. getgenv().unit = Value
  82. end
  83. })
  84.  
  85. local function getClosest()
  86. local dist, thing = math.huge
  87. for i, v in next, game:GetService("Workspace")["_UNITS"]:GetChildren() do
  88. if v:IsA("Model") and v.Name == getgenv().unit then
  89. local mag = (game.Players.LocalPlayer.Character.HumanoidRootPart.Position - v.HumanoidRootPart.Position).magnitude
  90. if mag < dist then
  91. dist = mag
  92. thing = v
  93. end
  94. end
  95. end
  96. return thing
  97. end
  98.  
  99. MainTab:AddToggle({
  100. Name = "Auto Upgrade Nearest",
  101. Default = false,
  102. Callback = function(Value)
  103. bb = Value
  104. while bb do
  105. task.wait()
  106. local args = { [1] = getClosest() }
  107. game:GetService("ReplicatedStorage").endpoints.client_to_server.upgrade_unit_ingame:InvokeServer(unpack(args))
  108. end
  109. end
  110. })
  111.  
  112. MainTab:AddButton({
  113. Name = "Refresh Units",
  114. Callback = function()
  115. table.clear(Units)
  116. for i, v in next, game:GetService("Workspace")["_UNITS"]:GetChildren() do
  117. if v:IsA("Model") and v._stats.player.Value == game.Players.LocalPlayer then
  118. if not table.find(Units, tostring(v)) then
  119. table.insert(Units, tostring(v))
  120. DropDown:SetOptions(Units)
  121. end
  122. end
  123. end
  124. end
  125. })
  126.  
  127. game.Players.LocalPlayer.PlayerGui.MessageGui:Destroy()
  128.  
Advertisement
Add Comment
Please, Sign In to add comment