Advertisement
1zxyuuki

test

Feb 21st, 2024 (edited)
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.46 KB | None | 0 0
  1. local Players = game:GetService("Players")
  2. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  3.  
  4. local lp = Players.LocalPlayer
  5. local mod = require(game:GetService("ReplicatedStorage").Systems.Quests.QuestList)
  6. local selectedQuest = nil
  7. local mobsList = {}
  8. local farmMobList = {}
  9. local selectedMobs = {}
  10. local bossArenaList = {}
  11. local questList = {}
  12. getgenv().configs = {
  13. ["Speed"] = nil,
  14. ["Range"] = 70
  15. }
  16.  
  17. for i, v in workspace.MobSpawns:GetChildren() do
  18. table.insert(farmMobList, v.Name)
  19. end
  20.  
  21. for i, v in workspace.BossArenas:GetChildren() do
  22. table.insert(farmMobList, v.Name)
  23. table.insert(bossArenaList, v.Name)
  24. end
  25.  
  26. for i, v in mod do
  27. table.insert(questList, i)
  28. end
  29.  
  30. table.sort(farmMobList)
  31. table.sort(bossArenaList)
  32.  
  33. local function countSelectedMobs()
  34. local count = 0
  35. for i, v in selectedMobs do
  36. for _, v2 in workspace.Mobs:GetChildren() do
  37. if lp and lp.Character and lp.Character.PrimaryPart then
  38. if v2 and v2.Name:match(v) and v2:FindFirstChild("Healthbar") and v2:GetAttribute("HP") ~= 0 then
  39. count = count + 1
  40. end
  41. end
  42. end
  43. end
  44. return count
  45. end
  46.  
  47. local function checkQuestInfo(quest, info)
  48. for i, v in mod do
  49. if i == quest then
  50. for i2, v2 in v do
  51. if info == "Amount" then
  52. if i2 == "Amount" then
  53. return v2
  54. end
  55. elseif info == "Target" then
  56. if i2 == "Target" then
  57. return v2
  58. end
  59. end
  60. end
  61. end
  62. end
  63. end
  64.  
  65. local function getNearbyMobs()
  66. mobsList = {}
  67. for i, v in workspace.Mobs:GetChildren() do
  68. if v and lp and lp.Character and lp.Character:FindFirstChild("HumanoidRootPart") and v:FindFirstChild("Healthbar") and v:GetAttribute("HP") ~= 0 then
  69. if (lp.Character.PrimaryPart.Position - v.PrimaryPart.Position).Magnitude < configs["Range"] then
  70. table.insert(mobsList, v)
  71. end
  72. end
  73. end
  74. if #mobsList >= 1 then
  75. return true
  76. end
  77. end
  78.  
  79. local Fluent = loadstring(game:HttpGet("https://github.com/dawid-scripts/Fluent/releases/latest/download/main.lua"))()
  80. local SaveManager = loadstring(game:HttpGet("https://raw.githubusercontent.com/dawid-scripts/Fluent/master/Addons/SaveManager.lua"))()
  81. local InterfaceManager = loadstring(game:HttpGet("https://raw.githubusercontent.com/dawid-scripts/Fluent/master/Addons/InterfaceManager.lua"))()
  82.  
  83. local Window = Fluent:CreateWindow({
  84. Title = "Yuki Ware",
  85. SubTitle = "| Swordburst 3",
  86. TabWidth = 160,
  87. Size = UDim2.fromOffset(580, 460),
  88. Acrylic = true, -- The blur may be detectable, setting this to false disables blur entirely
  89. Theme = "Amethyst",
  90. MinimizeKey = Enum.KeyCode.LeftControl -- Used when theres no MinimizeKeybind
  91. })
  92.  
  93. --Fluent provides Lucide Icons https://lucide.dev/icons/ for the tabs, icons are optional
  94. local Tabs = {
  95. Autofarm = Window:AddTab({ Title = "Autofarm", Icon = "repeat" }),
  96. -- Progression = Window:AddTab({ Title = "Progression", Icon = "arrow-big-up"}),
  97. Misc = Window:AddTab({ Title = "Misc", Icon = "map-pin" }),
  98. Settings = Window:AddTab({ Title = "Settings", Icon = "settings" })
  99. }
  100.  
  101. local Options = Fluent.Options
  102.  
  103. local Autofarm do
  104. --[[local killAuraSpeedSlider = Tabs.Autofarm:AddSlider("KillAuraSpeedSlider", {
  105. Title = "Kill Aura Speed",
  106. Description = "This determines how fast player attacks",
  107. Default = .35,
  108. Min = 0,
  109. Max = 1,
  110. Rounding = 2,
  111. Callback = function(Value)
  112. configs["Speed"] = Value
  113. end
  114. })
  115.  
  116. local killAuraRangeSlider = Tabs.Autofarm:AddSlider("KillAuraRangeSlider", {
  117. Title = "Kill Aura Range",
  118. Description = "This determines how far kill aura reaches",
  119. Default = 70,
  120. Min = 0,
  121. Max = 100,
  122. Rounding = 1,
  123. Callback = function(Value)
  124. configs["Range"] = Value
  125. end
  126. })]]
  127.  
  128. local killAuraToggle = Tabs.Autofarm:AddToggle("KillAura", {Title = "Kill Aura", Default = false })
  129. killAuraToggle:OnChanged(function()
  130. while Options.KillAura.Value and task.wait(.3) do
  131. if getNearbyMobs() then
  132. ReplicatedStorage.Systems.Combat.PlayerAttack:FireServer(mobsList)
  133.  
  134. ReplicatedStorage.Systems.Skills.UseSkill:FireServer("Whirlwind")
  135.  
  136. for i = 1, 3 do
  137. ReplicatedStorage.Systems.Combat.PlayerSkillAttack:FireServer(mobsList, "Whirlwind", i)
  138. end
  139. end
  140. end
  141. end)
  142.  
  143. --[[OLD> while Options.KillAura.Value and task.wait(configs["Speed"]) do
  144. if getNearbyMobs() then
  145. ReplicatedStorage.Systems.Combat.PlayerAttack:FireServer(mobsList)
  146.  
  147. ReplicatedStorage.Systems.Skills.UseSkill:FireServer("Whirlwind")
  148.  
  149. for i = 1, 3 do
  150. ReplicatedStorage.Systems.Combat.PlayerSkillAttack:FireServer(mobsList, "Whirlwind", i)
  151. end
  152. end
  153. end
  154. end)<]]
  155.  
  156. local autoCollectToggle = Tabs.Autofarm:AddToggle("AutoCollect", {Title = "Auto Collect", Default = false })
  157. autoCollectToggle:OnChanged(function()
  158. while Options.AutoCollect.Value and task.wait() do
  159. for i, v in ReplicatedStorage.Drops:GetChildren() do
  160. if v:IsA("Folder") and v:GetAttribute("Owner") == lp.Name then
  161. ReplicatedStorage.Systems.Drops.Pickup:FireServer(v)
  162. end
  163. end
  164. end
  165. end)
  166.  
  167. local selectQuestDropdown = Tabs.Autofarm:AddDropdown("SelectQuestDropdown", {
  168. Title = "Select Quest",
  169. Values = questList,
  170. Multi = false,
  171. Default = nil
  172. })
  173.  
  174. selectQuestDropdown:OnChanged(function(Value)
  175. selectedQuest = tonumber(Value)
  176. end)
  177.  
  178. local autoQuestToggle = Tabs.Autofarm:AddToggle("AutoQuestToggle", {Title = "Auto Quest", Default = false })
  179. autoQuestToggle:OnChanged(function()
  180. while Options.AutoQuestToggle.Value and task.wait() do
  181. if ReplicatedStorage.Profiles[lp.Name].Quests.Active.Value ~= selectedQuest then
  182. ReplicatedStorage.Systems.Quests.AcceptQuest:FireServer(selectedQuest)
  183. end
  184. if ReplicatedStorage.Profiles[lp.Name].Quests.Active:FindFirstChild("Count") and checkQuestInfo(selectedQuest, "Amount") == ReplicatedStorage.Profiles[lp.Name].Quests.Active.Count.Value then
  185. ReplicatedStorage.Systems.Quests.CompleteQuest:FireServer(selectedQuest)
  186. end
  187. end
  188. end)
  189.  
  190. local selectMobDropdown = Tabs.Autofarm:AddDropdown("SelectMob", {
  191. Title = "Select Mob",
  192. Values = farmMobList,
  193. Multi = true,
  194. Default = {nil}
  195. })
  196.  
  197. selectMobDropdown:OnChanged(function(Value)
  198. table.clear(selectedMobs)
  199. for Value, State in next, Value do
  200. table.insert(selectedMobs, Value)
  201. end
  202. end)
  203.  
  204. local autoFarmMobToggle = Tabs.Autofarm:AddToggle("autoFarmMobToggle", {Title = "Auto Farm Mob", Default = false })
  205. autoFarmMobToggle:OnChanged(function()
  206. while Options.autoFarmMobToggle.Value and task.wait() do
  207. for i, v in selectedMobs do
  208. for _, v2 in workspace.Mobs:GetChildren() do
  209. if lp and lp.Character and lp.Character:FindFirstChild("HumanoidRootPart") then
  210. if v2 and v2.Name:match(v) and v2:FindFirstChild("Healthbar") and v2:GetAttribute("HP") ~= 0 then
  211. lp.Character.PrimaryPart.CFrame = v2.PrimaryPart.CFrame:ToWorldSpace(CFrame.new(0, -20, 0))
  212. end
  213. end
  214. end
  215. end
  216. if countSelectedMobs() == 0 and lp and lp.Character and lp.Character:FindFirstChild("HumanoidRootPart") then
  217. lp.Character.PrimaryPart.CFrame = CFrame.new(-2176, 914, -577)
  218. end
  219. end
  220. end)
  221. end
  222.  
  223. local Teleport do
  224. local bossRoomDropdown = Tabs.Misc:AddDropdown("BossRoomDropdown", {
  225. Title = "Select Boss Arena",
  226. Values = bossArenaList,
  227. Multi = false,
  228. Default = nil
  229. })
  230.  
  231. bossRoomDropdown:OnChanged(function(Value)
  232. if Value ~= nil then
  233. lp.Character.PrimaryPart.CFrame = workspace.BossArenas[Value]:FindFirstChild("Bounds").CFrame
  234. end
  235. end)
  236.  
  237. Tabs.Misc:AddButton({
  238. Title = "Claim Waystones",
  239. Description = "TPs and claims waypoints for Player",
  240. Callback = function()
  241. for i, v in workspace.Waystones:GetChildren() do
  242. lp.Character:MoveTo(v.WorldPivot.Position)
  243. task.wait(.25)
  244. ReplicatedStorage.Systems.Locations.UnlockWaystone:FireServer(v)
  245. task.wait(.25)
  246. end
  247. end
  248. })
  249.  
  250. local autoChestToggle = Tabs.Misc:AddToggle("AutoCollectChest", {Title = "Auto Collect Chest", Default = false })
  251. autoChestToggle:OnChanged(function()
  252. while Options.AutoCollectChest.Value and task.wait() do
  253. for i, v in workspace:GetChildren() do
  254. if v.Name == "Chest" and v:FindFirstChild("RootPart") and v.RootPart:FindFirstChild("ProximityPrompt") then
  255. lp.Character.PrimaryPart.CFrame = v.RootPart.CFrame:ToWorldSpace(CFrame.new(0, 5, 0))
  256. task.wait(1)
  257. fireproximityprompt(v.RootPart.ProximityPrompt, 1, true)
  258. end
  259. end
  260. end
  261. end)
  262. end
  263.  
  264. Tabs.Misc:AddButton({
  265. Title = "Open Crafting Gui",
  266. Description = "traduza: double tap on the item you want to craft to craft, you must have the materials tho",
  267. Callback = function()
  268. game:GetService("Players").LocalPlayer.PlayerGui.Crafting.Enabled = true
  269. game:GetService("Players").LocalPlayer.PlayerGui.Crafting.Frame.Visible = true
  270. end
  271. })
  272.  
  273. SaveManager:SetLibrary(Fluent)
  274. InterfaceManager:SetLibrary(Fluent)
  275.  
  276.  
  277. SaveManager:IgnoreThemeSettings()
  278. SaveManager:SetIgnoreIndexes({})
  279. InterfaceManager:SetFolder("YWare")
  280. SaveManager:SetFolder("YWare/SB2")
  281.  
  282. InterfaceManager:BuildInterfaceSection(Tabs.Settings)
  283. SaveManager:BuildConfigSection(Tabs.Settings)
  284.  
  285.  
  286. Window:SelectTab(1)
  287.  
  288. Fluent:Notify({
  289. Title = "YukiWare",
  290. Content = "The script has been loaded.",
  291. Duration = 8
  292. })
  293. SaveManager:LoadAutoloadConfig()
  294.  
  295.  
  296. --SwordBurst.Lua
  297. local YukiWare = Instance.new("ScreenGui")
  298. YukiWare.Name = "YukiWare"
  299. YukiWare.Parent = game.CoreGui
  300. YukiWare.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  301.  
  302. -- Definição do botão
  303. local Main = Instance.new("Frame")
  304. Main.Name = "Main"
  305. Main.Parent = YukiWare
  306. Main.ClipsDescendants = false
  307. Main.AnchorPoint = Vector2.new(0.5, 0.5)
  308. Main.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  309. Main.Position = UDim2.new(0.1, 40, 0.1, -52)
  310. Main.Size = UDim2.new(0, 32, 0, 32)
  311. Main.Transparency = 1
  312.  
  313. local Corner = Instance.new("UICorner")
  314. Corner.Name = "Corner"
  315. Corner.Parent = Main
  316. CornerRadius = 0,4
  317.  
  318. local Button = Instance.new("TextButton")
  319. Button.Name = "Button"
  320. Button.Parent = Main
  321. Button.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  322. Button.Position = UDim2.new(0, 0, 0, 0)
  323. Button.Size = UDim2.new(1, 0, 1, 0)
  324. Button.Font = Enum.Font.SourceSans
  325. Button.Text = "YW"
  326. Button.TextColor3 = Color3.fromRGB(255, 255, 255)
  327. Button.TextSize = 19
  328. Button.Transparency = 0.4
  329. Button.TextTransparency = 0
  330.  
  331. local ButtonCorner = Instance.new("UICorner")
  332. Corner.Name = "Corner"
  333. Corner.Parent = Button
  334. CornerRadius = 0,4
  335.  
  336. -- Variáveis para controle de arrastar
  337. local dragging
  338. local dragStart
  339. local startPos
  340.  
  341. -- Função para iniciar o arrastar
  342. local function startDrag(input)
  343. dragging = true
  344. startPos = Main.Position
  345. dragStart = input.Position
  346. input.Changed:Connect(function()
  347. if input.UserInputState == Enum.UserInputState.End then
  348. dragging = false
  349. end
  350. end)
  351. end
  352.  
  353. -- Função para atualizar a posição durante o arrastar
  354. local function updateDrag(input)
  355. if dragging then
  356. local delta = input.Position - dragStart
  357. Main.Position = UDim2.new(
  358. startPos.X.Scale,
  359. startPos.X.Offset + delta.X,
  360. startPos.Y.Scale,
  361. startPos.Y.Offset + delta.Y
  362. )
  363. end
  364. end
  365.  
  366. -- Conectar eventos de mouse para arrastar o botão
  367. Button.InputBegan:Connect(function(input)
  368. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  369. startDrag(input)
  370. end
  371. end)
  372.  
  373. Button.InputChanged:Connect(function(input)
  374. if input.UserInputType == Enum.UserInputType.MouseMovement then
  375. updateDrag(input)
  376. end
  377. end)
  378.  
  379. Button.InputEnded:Connect(function(input)
  380. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  381. dragging = false
  382. end
  383. end)
  384.  
  385. -- Função para enviar o evento de tecla ao pressionar o botão
  386. Button.MouseButton1Click:Connect(function()
  387. game:GetService("VirtualInputManager"):SendKeyEvent(true, "LeftControl", false, game)
  388. end)
  389.  
  390. -- Animação de deslizamento do botão
  391. Button.MouseEnter:Connect(function()
  392. Button.Size = UDim2.new(1.1, 0, 1.1, 0)
  393. Button.Position = UDim2.new(-0.05, 0, 0, 0)
  394. end)
  395.  
  396. Button.MouseLeave:Connect(function()
  397. Button.Size = UDim2.new(1, 0, 1, 0)
  398. Button.Position = UDim2.new(0, 0, 0, 0)
  399. end)
  400.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement