Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players")
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local lp = Players.LocalPlayer
- local mod = require(game:GetService("ReplicatedStorage").Systems.Quests.QuestList)
- local selectedQuest = nil
- local mobsList = {}
- local farmMobList = {}
- local selectedMobs = {}
- local bossArenaList = {}
- local questList = {}
- getgenv().configs = {
- ["Speed"] = nil,
- ["Range"] = 70
- }
- function antiafk()
- local VirtualUser = game:GetService("VirtualUser")
- Players.LocalPlayer.Idled:Connect(function()
- VirtualUser:CaptureController()
- VirtualUser:ClickButton2(Vector2.new())
- end)
- end
- antiafk()
- for i, v in workspace.MobSpawns:GetChildren() do
- table.insert(farmMobList, v.Name)
- end
- for i, v in workspace.BossArenas:GetChildren() do
- table.insert(farmMobList, v.Name)
- table.insert(bossArenaList, v.Name)
- end
- for i, v in mod do
- table.insert(questList, i)
- end
- table.sort(farmMobList)
- table.sort(bossArenaList)
- local function countSelectedMobs()
- local count = 0
- for i, v in selectedMobs do
- for _, v2 in workspace.Mobs:GetChildren() do
- if lp and lp.Character and lp.Character.PrimaryPart then
- if v2 and v2.Name:match(v) and v2:FindFirstChild("Healthbar") and v2:GetAttribute("HP") ~= 0 then
- count = count + 1
- end
- end
- end
- end
- return count
- end
- local function checkQuestInfo(quest, info)
- for i, v in pairs(mod) do
- if tostring(i) == tostring(quest) then -- Convertendo quest para string e comparando
- for i2, v2 in pairs(v) do
- if info == "Amount" and i2 == "Amount" then
- return v2
- elseif info == "Target" and i2 == "Target" then
- return v2
- end
- end
- end
- end
- end
- local function getNearbyMobs()
- mobsList = {}
- for i, v in workspace.Mobs:GetChildren() do
- if v and lp and lp.Character and lp.Character:FindFirstChild("HumanoidRootPart") and v:FindFirstChild("Healthbar") and v:GetAttribute("HP") ~= 0 then
- local range = tonumber(configs["Range"]) -- Convertendo configs["Range"] para número
- if range and (lp.Character.PrimaryPart.Position - v.PrimaryPart.Position).Magnitude < range then
- table.insert(mobsList, v)
- end
- end
- end
- if #mobsList >= 1 then
- return true
- end
- end
- --||Services||--
- local Players = game:GetService("Players")
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local lplr = Players.LocalPlayer
- --||Variables||--
- local mobs = {}
- local swordburst = {}
- local farmPosition = "Above"
- local boss
- local choosemob
- --||Function and Loop||--
- local function getchar()
- return lplr.Character or lplr.CharacterAdded:Wait()
- end
- for i,v in next, workspace.MobSpawns:GetChildren() do
- table.insert(mobs,v.Name)
- end
- table.sort(mobs)
- local function setFarmPosition(position)
- farmPosition = position
- end
- local function setFarmDistance(distance) -- Função para definir a distância de fazenda
- farmDistance = distance
- end
- local function getFarmPositionOffset()
- if farmPosition == "Above" then
- return Vector3.new(0, 10, 0)
- elseif farmPosition == "Below" then
- return Vector3.new(0, 0, -25)
- elseif farmPosition == "Behind" then
- return Vector3.new(0, -25, 0)
- else
- return Vector3.new(0, 10, 0) -- Default to above if position is not recognized
- end
- end
- -- >>Get Mob
- local function getclosestmobs(mob)
- local distance = math.huge
- local target
- local multitarget = {}
- for i, v in ipairs(workspace.Mobs:GetChildren()) do
- if v:FindFirstChild("HumanoidRootPart") and getchar() and getchar():FindFirstChild("HumanoidRootPart") then
- local magnitude = (getchar().HumanoidRootPart.Position - v:FindFirstChild("HumanoidRootPart").Position).magnitude
- if mob and string.find(v.Name, mob) then
- if magnitude < distance then
- target = v
- distance = magnitude
- end
- end
- if magnitude < 100 then
- table.insert(multitarget, v)
- end
- end
- end
- return target, multitarget
- end
- -- <<
- -- >>Auto Mob Func
- task.spawn(function()
- while task.wait() do
- if swordburst["automobs"] and choosemob then
- local enemy = getclosestmobs(choosemob)
- if getchar() and getchar():FindFirstChild("HumanoidRootPart") and enemy and enemy:FindFirstChild("HumanoidRootPart") then
- local lp = Players.LocalPlayer
- local lpCharacter = lp.Character
- if lpCharacter then
- local primaryPart = lpCharacter.PrimaryPart
- if primaryPart then
- if farmPosition == "Above" then
- primaryPart.CFrame = enemy:FindFirstChild("HumanoidRootPart").CFrame * CFrame.new(0, farmDistance * 2, 0)
- elseif farmPosition == "Below" then
- primaryPart.CFrame = enemy:FindFirstChild("HumanoidRootPart").CFrame * CFrame.new(0, -farmDistance * 2, 0)
- elseif farmPosition == "Behind" then
- local direction = (enemy.PrimaryPart.Position - primaryPart.Position).unit
- primaryPart.CFrame = CFrame.new(enemy.PrimaryPart.Position - direction * farmDistance * 2)
- end
- end
- end
- end
- end
- end
- end)
- local Fluent = loadstring(game:HttpGet("https://github.com/dawid-scripts/Fluent/releases/latest/download/main.lua"))()
- local SaveManager = loadstring(game:HttpGet("https://raw.githubusercontent.com/dawid-scripts/Fluent/master/Addons/SaveManager.lua"))()
- local InterfaceManager = loadstring(game:HttpGet("https://raw.githubusercontent.com/dawid-scripts/Fluent/master/Addons/InterfaceManager.lua"))()
- local Window = Fluent:CreateWindow({
- Title = "Yuki Ware 1.9",
- SubTitle = "| discord server: discord.gg/94Sdk3yV",
- TabWidth = 160,
- Size = UDim2.fromOffset(580, 460),
- Acrylic = true, -- The blur may be detectable, setting this to false disables blur entirely
- Theme = "Amethyst",
- MinimizeKey = Enum.KeyCode.LeftControl -- Used when theres no MinimizeKeybind
- })
- --Fluent provides Lucide Icons https://lucide.dev/icons/ for the tabs, icons are optional
- local Tabs = {
- Autofarm = Window:AddTab({ Title = "Autofarm", Icon = "repeat" }),
- AutofarmSettings = Window:AddTab({ Title = "Autofarm Config", Icon = "repeat" }),
- Combat =Window:AddTab({ Title = "Combat", Icon = "swords" }),
- -- Progression = Window:AddTab({ Title = "Progression", Icon = "arrow-big-up"}),
- Teleports = Window:AddTab({ Title = "Teleports", Icon = "map-pin" }),
- Gui = Window:AddTab({ Title = "Gui", Icon = "image" }),
- Settings = Window:AddTab({ Title = "Settings", Icon = "settings" })
- }
- local Options = Fluent.Options
- local Autofarm do
- local SelectMob = Tabs.Autofarm:AddDropdown("SelectMob", {
- Title = "Select Mob",
- Description = "Select Mob to Farm",
- Values = mobs,
- Multi = true,
- Default = {nil}
- })
- --[[local SelectMob = Tabs.Autofarm:AddDropdown("SelectMob", {
- Title = "Select Mob",
- Description = "Select Mob to Farm",
- Values = farmMobList,
- Multi = true,
- Default = {nil}
- })]]
- SelectMob:OnChanged(function(item)
- choosemob = item
- end)
- local AutoMob = Tabs.Autofarm:AddToggle("AutoMob", {
- Title = "Auto Mob",
- Description = "",
- Default = false
- })
- AutoMob:OnChanged(function(state)
- swordburst["automobs"] = state
- end)
- local selectQuestDropdown = Tabs.Autofarm:AddDropdown("SelectQuestDropdown", {
- Title = "Select Quest",
- Description = "Select Quest to Auto Quest",
- Values = questList,
- Multi = false,
- Default = nil
- })
- selectQuestDropdown:OnChanged(function(Value)
- selectedQuest = tonumber(Value)
- end)
- end
- local autoQuestToggle = Tabs.Autofarm:AddToggle("AutoQuestToggle", {Title = "Auto Selected Quest", Description = "Enabled/Disabled to Farm Selected Quest", Default = false })
- autoQuestToggle:OnChanged(function()
- while Options.AutoQuestToggle.Value and task.wait() do
- if ReplicatedStorage.Profiles[lp.Name].Quests.Active.Value ~= selectedQuest then
- ReplicatedStorage.Systems.Quests.AcceptQuest:FireServer(selectedQuest)
- end
- if ReplicatedStorage.Profiles[lp.Name].Quests.Active:FindFirstChild("Count") and checkQuestInfo(selectedQuest, "Amount") == ReplicatedStorage.Profiles[lp.Name].Quests.Active.Count.Value then
- ReplicatedStorage.Systems.Quests.CompleteQuest:FireServer(selectedQuest)
- end
- end
- end)
- local autoTeleportOresToggle = Tabs.Autofarm:AddToggle("AutoTeleportOres", {Title = "Auto Farm Ores", Description = "Teleport to Ores (Turn on Auto Collect)", Default = false })
- autoTeleportOresToggle:OnChanged(function()
- while Options.AutoTeleportOres.Value and task.wait() do
- for _, oreModel in ipairs(workspace.Ores:GetChildren()) do
- if oreModel and oreModel:IsA("Model") then
- lp.Character:SetPrimaryPartCFrame(oreModel.PrimaryPart.CFrame)
- break
- end
- end
- task.wait(0.4)
- game:GetService("ReplicatedStorage"):WaitForChild("Systems"):WaitForChild("Mining"):WaitForChild("Mine"):FireServer()
- end
- end)
- local autoCollectToggle = Tabs.Autofarm:AddToggle("AutoCollect", {Title = "Auto Collect Drops", Description = "Maybe the dropped item will be in the same spawn location, it's just a visual bug", Default = false })
- autoCollectToggle:OnChanged(function()
- while Options.AutoCollect.Value and task.wait() do
- for i, v in ReplicatedStorage.Drops:GetChildren() do
- if v:IsA("Folder") and v:GetAttribute("Owner") == lp.Name then
- ReplicatedStorage.Systems.Drops.Pickup:FireServer(v)
- end
- end
- end
- end)
- --|Boss|--
- local FarmPosition = Tabs.AutofarmSettings:AddDropdown("FarmPosition", {
- Title = "Farm Position",
- Description = "Select Farm Position",
- Values = {"Above", "Below", "Behind"},
- Multi = false,
- Default = "Above"
- })
- FarmPosition:OnChanged(function(position)
- setFarmPosition(position)
- end)
- local FarmDistance = Tabs.AutofarmSettings:AddSlider("FarmDistance", {
- Title = "Farm Distance",
- Description = "Set Farm Distance",
- Min = 1,
- Max = 50,
- Rounding = 1,
- Default = 10
- })
- FarmDistance:OnChanged(function(value)
- setFarmDistance(value)
- end)
- --[[local killAuraSpeedSlider = Tabs.Autofarm:AddSlider("KillAuraSpeedSlider", {
- Title = "Kill Aura Speed",
- Description = "This determines how fast player attacks",
- Default = .35,
- Min = 0,
- Max = 1,
- Rounding = 2,
- Callback = function(Value)
- configs["Speed"] = Value
- end
- })
- local killAuraRangeSlider = Tabs.Autofarm:AddSlider("KillAuraRangeSlider", {
- Title = "Kill Aura Range",
- Description = "This determines how far kill aura reaches",
- Default = 70,
- Min = 0,
- Max = 100,
- Rounding = 1,
- Callback = function(Value)
- configs["Range"] = Value
- end
- })]]
- --[[OLD> while Options.KillAura.Value and task.wait(configs["Speed"]) do
- if getNearbyMobs() then
- ReplicatedStorage.Systems.Combat.PlayerAttack:FireServer(mobsList)
- ReplicatedStorage.Systems.Skills.UseSkill:FireServer("Whirlwind")
- for i = 1, 3 do
- ReplicatedStorage.Systems.Combat.PlayerSkillAttack:FireServer(mobsList, "Whirlwind", i)
- end
- end
- end
- end)<]]
- local killAuraSpeedSlider = Tabs.Combat:AddSlider("KillAuraSpeedSlider", {
- Title = "Kill Aura Speed",
- Description = "Set the speed at which the player performs their attacks (Do not decrease too much, it will result in a kick!)",
- Default = .5,
- Min = 0,
- Max = 1,
- Rounding = 2,
- Callback = function(Value)
- configs["Speed"] = Value
- end
- })
- local killAuraRangeSlider = Tabs.Combat:AddSlider("KillAuraRangeSlider", {
- Title = "Kill Aura Range",
- Description = "Set how far kill aura goes (Do not decrease too much, it will result in a kick!)",
- Default = 50,
- Min = 0,
- Max = 100,
- Rounding = 1,
- Callback = function(Value)
- configs["Range"] = Value
- end
- })
- local killAuraToggle = Tabs.Combat:AddToggle("KillAura", {Title = "Kill Aura", Default = false })
- killAuraToggle:OnChanged(function()
- while Options.KillAura.Value and task.wait(configs["Speed"]) do
- if getNearbyMobs() then
- ReplicatedStorage.Systems.Combat.PlayerAttack:FireServer(mobsList)
- ReplicatedStorage.Systems.Skills.UseSkill:FireServer("Whirlwind")
- for i = 1, 3 do
- ReplicatedStorage.Systems.Combat.PlayerSkillAttack:FireServer(mobsList, "Whirlwind", i)
- end
- end
- end
- end)
- --[[local killAuraToggle = Tabs.Combat:AddToggle("KillAura", {Title = "Old Kill Aura", Default = false })
- killAuraToggle:OnChanged(function()
- while Options.KillAura.Value and task.wait(.3) do
- if getNearbyMobs() then
- ReplicatedStorage.Systems.Combat.PlayerAttack:FireServer(mobsList)
- ReplicatedStorage.Systems.Skills.UseSkill:FireServer("Flurry")
- for i = 1, 3 do
- ReplicatedStorage.Systems.Combat.PlayerSkillAttack:FireServer(mobsList, "Flurry", i)
- end
- end
- end
- end)]]
- local Teleport do
- local bossRoomDropdown = Tabs.Teleports:AddDropdown("BossRoomDropdown", {
- Title = "Bosses Arena",
- Description = "Choose Arena to Teleport",
- Values = bossArenaList,
- Multi = false,
- Default = nil
- })
- bossRoomDropdown:OnChanged(function(Value)
- if Value ~= nil then
- lp.Character.PrimaryPart.CFrame = workspace.BossArenas[Value]:FindFirstChild("Bounds").CFrame
- end
- end)
- FloorList = {"Floor1", "Floor2"}
- Floor1ID = 14819490378
- Floor2ID = 15695929915
- local FloorDropdown = Tabs.Teleports:AddDropdown("FloorDropdown", {
- Title = "Floor Teleport",
- Description = "Teleport to Floor1/2 without reqs",
- Values = FloorList,
- Multi = false,
- Default = nil
- })
- FloorDropdown:OnChanged(function(Value)
- if Value ~= nil then
- if Value == "Floor1" then
- game:GetService("TeleportService"):Teleport(Floor1ID)
- elseif Value == "Floor2" then
- game:GetService("TeleportService"):Teleport(Floor2ID)
- end
- end
- end)
- Tabs.Teleports:AddButton({
- Title = "Tp to Waystones",
- Description = "This function will allow you to unlock all waystones",
- Callback = function()
- for i, v in workspace.Waystones:GetChildren() do
- lp.Character:MoveTo(v.WorldPivot.Position)
- task.wait(.25)
- ReplicatedStorage.Systems.Locations.UnlockWaystone:FireServer(v)
- task.wait(.25)
- end
- end
- })
- local autoChestToggle = Tabs.Teleports:AddToggle("AutoCollectChest", {Title = "TP to Chests", Description = "TP to All Chests (You cannot collect already collected chests)", Default = false })
- autoChestToggle:OnChanged(function()
- while Options.AutoCollectChest.Value and task.wait() do
- for i, v in workspace:GetChildren() do
- if v.Name == "Chest" and v:FindFirstChild("RootPart") and v.RootPart:FindFirstChild("ProximityPrompt") then
- lp.Character.PrimaryPart.CFrame = v.RootPart.CFrame:ToWorldSpace(CFrame.new(0, 5, 0))
- task.wait(1)
- fireproximityprompt(v.RootPart.ProximityPrompt, 1, true)
- end
- end
- end
- end)
- end
- Tabs.Gui:AddButton({
- Title = "Crafting Gui",
- Description = "Open Crafting Gui",
- Callback = function()
- game:GetService("Players").LocalPlayer.PlayerGui.Crafting.Enabled = true
- game:GetService("Players").LocalPlayer.PlayerGui.Crafting.Frame.Visible = true
- end
- })
- SaveManager:SetLibrary(Fluent)
- InterfaceManager:SetLibrary(Fluent)
- SaveManager:IgnoreThemeSettings()
- SaveManager:SetIgnoreIndexes({})
- InterfaceManager:SetFolder("YWare")
- SaveManager:SetFolder("YWare/SB2")
- InterfaceManager:BuildInterfaceSection(Tabs.Settings)
- SaveManager:BuildConfigSection(Tabs.Settings)
- Window:SelectTab(1)
- Fluent:Notify({
- Title = "YukiWare",
- Content = "The script has been loaded.",
- Duration = 8
- })
- SaveManager:LoadAutoloadConfig()
- --SwordBurst.Lua
- local YukiWare = Instance.new("ScreenGui")
- YukiWare.Name = "YukiWare"
- YukiWare.Parent = game.CoreGui
- YukiWare.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- -- Definição do botão
- local Main = Instance.new("Frame")
- Main.Name = "Main"
- Main.Parent = YukiWare
- Main.ClipsDescendants = false
- Main.AnchorPoint = Vector2.new(0.5, 0.5)
- Main.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
- Main.Position = UDim2.new(0.1, 40, 0.1, -52)
- Main.Size = UDim2.new(0, 32, 0, 32)
- Main.Transparency = 1
- local Corner = Instance.new("UICorner")
- Corner.Name = "Corner"
- Corner.Parent = Main
- CornerRadius = 0,4
- local Button = Instance.new("TextButton")
- Button.Name = "Button"
- Button.Parent = Main
- Button.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- Button.Position = UDim2.new(0, 0, 0, 0)
- Button.Size = UDim2.new(1, 0, 1, 0)
- Button.Font = Enum.Font.SourceSans
- Button.Text = "YW"
- Button.TextColor3 = Color3.fromRGB(255, 255, 255)
- Button.TextSize = 19
- Button.Transparency = 0.4
- Button.TextTransparency = 0
- local ButtonCorner = Instance.new("UICorner")
- Corner.Name = "Corner"
- Corner.Parent = Button
- CornerRadius = 0,4
- -- Variáveis para controle de arrastar
- local dragging
- local dragStart
- local startPos
- -- Função para iniciar o arrastar
- local function startDrag(input)
- dragging = true
- startPos = Main.Position
- dragStart = input.Position
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then
- dragging = false
- end
- end)
- end
- -- Função para atualizar a posição durante o arrastar
- local function updateDrag(input)
- if dragging then
- local delta = input.Position - dragStart
- Main.Position = UDim2.new(
- startPos.X.Scale,
- startPos.X.Offset + delta.X,
- startPos.Y.Scale,
- startPos.Y.Offset + delta.Y
- )
- end
- end
- -- Conectar eventos de mouse para arrastar o botão
- Button.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 then
- startDrag(input)
- end
- end)
- Button.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement then
- updateDrag(input)
- end
- end)
- Button.InputEnded:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 then
- dragging = false
- end
- end)
- -- Função para enviar o evento de tecla ao pressionar o botão
- Button.MouseButton1Click:Connect(function()
- game:GetService("VirtualInputManager"):SendKeyEvent(true, "LeftControl", false, game)
- end)
- -- Animação de deslizamento do botão
- Button.MouseEnter:Connect(function()
- Button.Size = UDim2.new(1.1, 0, 1.1, 0)
- Button.Position = UDim2.new(-0.05, 0, 0, 0)
- end)
- Button.MouseLeave:Connect(function()
- Button.Size = UDim2.new(1, 0, 1, 0)
- Button.Position = UDim2.new(0, 0, 0, 0)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement