Advertisement
Daozaaaa

tetst

Feb 28th, 2024 (edited)
562
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.68 KB | None | 0 0
  1. --
  2. type Teleport = {
  3.     Type : string,
  4.     Studs : number
  5. }
  6.  
  7. -- SETTINGS --
  8. local TeleportSettings : Teleport = {
  9.     Type = "Above",
  10.     Studs = 5
  11. }
  12.  
  13.  
  14. --
  15. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  16. local Players = game:GetService("Players")
  17.  
  18. --
  19. local LocalPlayer = Players.LocalPlayer
  20.  
  21. --
  22. local RayfieldLibrary = loadstring(game:HttpGet('https://pastebin.com/raw/8uJgew2c'))()
  23.  
  24.  
  25.  
  26.  
  27. --
  28. local function GetMobList()
  29.     local MobList = {}
  30.  
  31.     for index, mob in pairs(workspace.MobSpawns:GetChildren()) do
  32.         table.insert(MobList, mob.Name)
  33.     end
  34.  
  35.     for index, mob in pairs(workspace.BossArenas:GetChildren()) do
  36.         table.insert(MobList, mob.Name)
  37.     end
  38.  
  39.     return MobList
  40. end
  41.  
  42. local function GetQuestList()
  43.     local QuestList = {}
  44.     local QuestListModule = require(ReplicatedStorage.Systems.Quests.QuestList)
  45.  
  46.     for index, quest in QuestListModule do
  47.         table.insert(QuestList, tostring(index))
  48.     end
  49.  
  50.     return QuestList
  51. end
  52.  
  53. local function GetCharacter()
  54.     return LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
  55. end
  56.  
  57. local function KillMob( Mob : Instance )
  58.     local Event = game:GetService("ReplicatedStorage").Systems.Combat.PlayerAttack
  59.     Event:FireServer(Mob)
  60. end
  61.  
  62. local function ConvertSettingsToCFrame()
  63.     if TeleportSettings.Type == "Bellow" then
  64.         return CFrame.new(0, TeleportSettings.Studs * -1, 0)
  65.     else
  66.         return CFrame.new(0, TeleportSettings.Studs, 0)
  67.     end
  68. end
  69.  
  70. local function TeleportToMob( Mob : Instance)
  71.     local Character = GetCharacter()
  72.  
  73.     if not Character then
  74.         return
  75.     end
  76.  
  77.     Character:PivotTo(Mob.CFrame * ConvertSettingsToCFrame())
  78.  
  79. end
  80.  
  81. local function TakeQuest( QuestNumber : string )
  82.     local Event = game:GetService("ReplicatedStorage").Systems.Quests.AcceptQuest
  83.     Event:FireServer(QuestNumber)
  84. end
  85.  
  86.  
  87.  
  88.  
  89. --
  90. local Window = RayfieldLibrary:CreateWindow({
  91.     Name = "Lyxia Hub",
  92.     LoadingTitle = "Swordburst 3",
  93.     LoadingSubtitle = "by Lyxia",
  94.     ConfigurationSaving = {
  95.         Enabled = false,
  96.         FolderName = "LyxiaHub", -- Create a custom folder for your hub/game
  97.         FileName = "Config"
  98.     },
  99. })
  100.  
  101. --
  102. local AutofarmTab = Window:CreateTab("Autofarm", 4483362458)
  103. local TeleportTab = Window:CreateTab("Teleport", 4483362458)
  104.  
  105. -- AutoFarm
  106. local Section = AutofarmTab:CreateSection("Mob and Quest")
  107. local QuestDropDown = AutofarmTab:CreateDropdown({
  108.     Name = "Select Quest",
  109.     Options = GetQuestList(),
  110.     CurrentOption = {"None"},
  111.     MultipleOptions = false,
  112.     Flag = "QuestDropDown",
  113.     Callback = function(Option)
  114.  
  115.     end,
  116. })
  117. local MobDropDown = AutofarmTab:CreateDropdown({
  118.     Name = "Select Mob",
  119.     Options = GetMobList(),
  120.     CurrentOption = {"None"},
  121.     MultipleOptions = true,
  122.     Flag = "MobDropDown",
  123.     Callback = function(Option)
  124.  
  125.     end,
  126. })
  127. local AutofarmToggle = AutofarmTab:CreateToggle({
  128.     Name = "Autofarm",
  129.     CurrentValue = false,
  130.     Flag = "Autofarm",
  131.     Callback = function(Value)
  132.  
  133.     end,
  134. })
  135. local AutoquestToggle = AutofarmTab:CreateToggle({
  136.     Name = "AutoQuest",
  137.     CurrentValue = false,
  138.     Flag = "AutoQuest",
  139.     Callback = function(Value)
  140.  
  141.     end,
  142. })
  143.  
  144. -- Kill Aura
  145. local Section = AutofarmTab:CreateSection("Kill Aura")
  146. local killauraToggle = AutofarmTab:CreateToggle({
  147.     Name = "Kill Aura",
  148.     CurrentValue = false,
  149.     Flag = "KAToggle",
  150.     Callback = function(Value)
  151.  
  152.     end,
  153. })
  154. local killauraDelaySlider = AutofarmTab:CreateSlider({
  155.     Name = "Delay",
  156.     Range = {0.2, 0.5},
  157.     Increment = 0.01,
  158.     CurrentValue = 0.5,
  159.     Flag = "KADelay",
  160.     Callback = function(Value)
  161.         print(Value)
  162.     end,
  163. })
  164.  
  165. -- AutoCollect
  166. local Section = AutofarmTab:CreateSection("AutoCollect")
  167. local AutoCollectToggle = AutofarmTab:CreateToggle({
  168.     Name = "AutoCollect",
  169.     CurrentValue = false,
  170.     Flag = "AutoCollectToggle",
  171.     Callback = function(Value)
  172.  
  173.     end,
  174. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement