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
- }
- 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 mod do
- if i == quest then
- for i2, v2 in v do
- if info == "Amount" then
- if i2 == "Amount" then
- return v2
- end
- elseif info == "Target" then
- if i2 == "Target" then
- return v2
- end
- 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
- if (lp.Character.PrimaryPart.Position - v.PrimaryPart.Position).Magnitude < configs["Range"] then
- table.insert(mobsList, v)
- end
- end
- end
- if #mobsList >= 1 then
- return true
- 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",
- SubTitle = "| Swordburst 3",
- 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" }),
- -- Progression = Window:AddTab({ Title = "Progression", Icon = "arrow-big-up"}),
- Misc = Window:AddTab({ Title = "Misc", Icon = "map-pin" }),
- Settings = Window:AddTab({ Title = "Settings", Icon = "settings" })
- }
- local Options = Fluent.Options
- local Autofarm do
- --[[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
- })]]
- local killAuraToggle = Tabs.Autofarm:AddToggle("KillAura", {Title = "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("Whirlwind")
- for i = 1, 3 do
- ReplicatedStorage.Systems.Combat.PlayerSkillAttack:FireServer(mobsList, "Whirlwind", i)
- end
- end
- end
- 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 autoCollectToggle = Tabs.Autofarm:AddToggle("AutoCollect", {Title = "Auto Collect", 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)
- local selectQuestDropdown = Tabs.Autofarm:AddDropdown("SelectQuestDropdown", {
- Title = "Select Quest",
- Values = questList,
- Multi = false,
- Default = nil
- })
- selectQuestDropdown:OnChanged(function(Value)
- selectedQuest = tonumber(Value)
- end)
- local autoQuestToggle = Tabs.Autofarm:AddToggle("AutoQuestToggle", {Title = "Auto 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 selectMobDropdown = Tabs.Autofarm:AddDropdown("SelectMob", {
- Title = "Select Mob",
- Values = farmMobList,
- Multi = true,
- Default = {nil}
- })
- selectMobDropdown:OnChanged(function(Value)
- table.clear(selectedMobs)
- for Value, State in next, Value do
- table.insert(selectedMobs, Value)
- end
- end)
- local autoFarmMobToggle = Tabs.Autofarm:AddToggle("autoFarmMobToggle", {Title = "Auto Farm Mob", Default = false })
- autoFarmMobToggle:OnChanged(function()
- while Options.autoFarmMobToggle.Value and task.wait() do
- for i, v in selectedMobs do
- for _, v2 in workspace.Mobs:GetChildren() do
- if lp and lp.Character and lp.Character:FindFirstChild("HumanoidRootPart") then
- if v2 and v2.Name:match(v) and v2:FindFirstChild("Healthbar") and v2:GetAttribute("HP") ~= 0 then
- lp.Character.PrimaryPart.CFrame = v2.PrimaryPart.CFrame:ToWorldSpace(CFrame.new(0, -20, 0))
- end
- end
- end
- end
- if countSelectedMobs() == 0 and lp and lp.Character and lp.Character:FindFirstChild("HumanoidRootPart") then
- lp.Character.PrimaryPart.CFrame = CFrame.new(-2176, 914, -577)
- end
- end
- end)
- end
- local Teleport do
- local bossRoomDropdown = Tabs.Misc:AddDropdown("BossRoomDropdown", {
- Title = "Select Boss Arena",
- 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)
- Tabs.Misc:AddButton({
- Title = "Claim Waystones",
- Description = "TPs and claims waypoints for Player",
- 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.Misc:AddToggle("AutoCollectChest", {Title = "Auto Collect Chest", 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.Misc:AddButton({
- Title = "Open Crafting Gui",
- Description = "traduza: double tap on the item you want to craft to craft, you must have the materials tho",
- 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