1zxyuuki

Yuki Ware Main Script

Feb 26th, 2024
2,780
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.46 KB | None | 0 0
  1. repeat wait() until game:IsLoaded()
  2. game:GetService("Players").LocalPlayer.Idled:connect(function()
  3. game:GetService("VirtualUser"):ClickButton2(Vector2.new())
  4. end)
  5.  
  6. local Players = game:GetService("Players")
  7. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  8.  
  9. local lp = Players.LocalPlayer
  10. local mod = require(game:GetService("ReplicatedStorage").Systems.Quests.QuestList)
  11. local selectedQuest = nil
  12. local mobsList = {}
  13. local farmMobList = {}
  14. local selectedMobs = {}
  15. local bossArenaList = {}
  16. local questList = {}
  17. getgenv().configs = {
  18. ["Speed"] = nil,
  19. ["Range"] = 70
  20. }
  21.  
  22.  
  23. for i, v in workspace.MobSpawns:GetChildren() do
  24. table.insert(farmMobList, v.Name)
  25. end
  26.  
  27. for i, v in workspace.BossArenas:GetChildren() do
  28. table.insert(farmMobList, v.Name)
  29. table.insert(bossArenaList, v.Name)
  30. end
  31.  
  32. for i, v in mod do
  33. table.insert(questList, i)
  34. end
  35.  
  36. table.sort(farmMobList)
  37. table.sort(bossArenaList)
  38.  
  39. local function countSelectedMobs()
  40. local count = 0
  41. for i, v in selectedMobs do
  42. for _, v2 in workspace.Mobs:GetChildren() do
  43. if lp and lp.Character and lp.Character.PrimaryPart then
  44. if v2 and v2.Name:match(v) and v2:FindFirstChild("Healthbar") and v2:GetAttribute("HP") ~= 0 then
  45. count = count + 1
  46. end
  47. end
  48. end
  49. end
  50. return count
  51. end
  52.  
  53. local function checkQuestInfo(quest, info)
  54. for i, v in pairs(mod) do
  55. if tostring(i) == tostring(quest) then -- Convertendo quest para string e comparando
  56. for i2, v2 in pairs(v) do
  57. if info == "Amount" and i2 == "Amount" then
  58. return v2
  59. elseif info == "Target" and i2 == "Target" then
  60. return v2
  61. end
  62. end
  63. end
  64. end
  65. end
  66.  
  67.  
  68. local function getNearbyMobs()
  69. mobsList = {}
  70. for i, v in workspace.Mobs:GetChildren() do
  71. if v and lp and lp.Character and lp.Character:FindFirstChild("HumanoidRootPart") and v:FindFirstChild("Healthbar") and v:GetAttribute("HP") ~= 0 then
  72. local range = tonumber(configs["Range"]) -- Convertendo configs["Range"] para número
  73. if range and (lp.Character.PrimaryPart.Position - v.PrimaryPart.Position).Magnitude < range then
  74. table.insert(mobsList, v)
  75. end
  76. end
  77. end
  78. if #mobsList >= 1 then
  79. return true
  80. end
  81. end
  82.  
  83.  
  84. local Fluent = loadstring(game:HttpGet("https://github.com/dawid-scripts/Fluent/releases/latest/download/main.lua"))()
  85. local SaveManager = loadstring(game:HttpGet("https://raw.githubusercontent.com/dawid-scripts/Fluent/master/Addons/SaveManager.lua"))()
  86. local InterfaceManager = loadstring(game:HttpGet("https://raw.githubusercontent.com/dawid-scripts/Fluent/master/Addons/InterfaceManager.lua"))()
  87.  
  88. local Window = Fluent:CreateWindow({
  89. Title = "Yuki Ware 2.0",
  90. SubTitle = "| Ordem e progresso",
  91. TabWidth = 160,
  92. Size = UDim2.fromOffset(580, 460),
  93. Acrylic = true, -- The blur may be detectable, setting this to false disables blur entirely
  94. Theme = "Amethyst",
  95. MinimizeKey = Enum.KeyCode.LeftControl -- Used when theres no MinimizeKeybind
  96. })
  97.  
  98. --Fluent provides Lucide Icons https://lucide.dev/icons/ for the tabs, icons are optional
  99. local Tabs = {
  100. Autofarm = Window:AddTab({ Title = "Autofarm", Icon = "repeat" }),
  101. AutofarmSettings = Window:AddTab({ Title = "Autofarm Config", Icon = "repeat" }),
  102. Combat =Window:AddTab({ Title = "Combat", Icon = "swords" }),
  103. -- Progression = Window:AddTab({ Title = "Progression", Icon = "arrow-big-up"}),
  104. Teleports = Window:AddTab({ Title = "Teleports", Icon = "map-pin" }),
  105. Misc = Window:AddTab({ Title = "", Icon = "more-horizontal" }),
  106. Settings = Window:AddTab({ Title = "Settings", Icon = "settings" })
  107. }
  108.  
  109. local Options = Fluent.Options
  110.  
  111. local Autofarm do
  112.  
  113. local positionDropdown = Tabs.AutofarmSettings:AddDropdown("PositionDropdown", {
  114. Title = "Farm Position",
  115. Description = "Select Farm Position",
  116. Values = {"Above", "Below", "Behind"},
  117. Multi = false,
  118. Default = "Above"
  119. })
  120.  
  121. positionDropdown:OnChanged(function(Value)
  122. selectedPosition = Value
  123. end)
  124.  
  125.  
  126. local selectedDistance = 6
  127. local distanceSlider = Tabs.AutofarmSettings:AddSlider("DistanceSlider", {
  128. Title = "Farm Distance",
  129. Description = "Adjust the distance to mob",
  130. Default = selectedDistance,
  131. Min = 5,
  132. Max = 10,
  133. Rounding = 10,
  134. Callback = function(Value)
  135. selectedDistance = Value
  136. end
  137. })
  138.  
  139. local safeZoneToggle = Tabs.AutofarmSettings:AddToggle("SafeZoneToggle", {Title = "Enable Safe Zone", Description = "Toggle Safe Zone When No Mobs Selected", Default = false })
  140.  
  141. safeZoneToggle:OnChanged(function()
  142. if safeZoneToggle.Value then
  143. lp.Character.PrimaryPart.CFrame = CFrame.new(-2176, 914, -577)
  144. else
  145.  
  146. end
  147. end)
  148.  
  149. local selectMobDropdown = Tabs.Autofarm:AddDropdown("SelectMob", {
  150. Title = "Select Mob",
  151. Description = "Select Mob to Farm",
  152. Values = farmMobList,
  153. Multi = true,
  154. Default = {nil}
  155. })
  156.  
  157. selectMobDropdown:OnChanged(function(Value)
  158. table.clear(selectedMobs)
  159. for Value, State in next, Value do
  160. table.insert(selectedMobs, Value)
  161. end
  162. end)
  163.  
  164. local selectQuestDropdown = Tabs.Autofarm:AddDropdown("SelectQuestDropdown", {
  165. Title = "Select Quest",
  166. Description = "Select Quest to Auto Quest",
  167. Values = questList,
  168. Multi = false,
  169. Default = nil
  170. })
  171.  
  172. selectQuestDropdown:OnChanged(function(Value)
  173. selectedQuest = tonumber(Value)
  174. end)
  175.  
  176. local autoFarmMobToggle = Tabs.Autofarm:AddToggle("autoFarmMobToggle", {Title = "Auto Selected Mob", Description = "Enabled/Disabled to Farm Selected Mob", Default = false })
  177. autoFarmMobToggle:OnChanged(function()
  178. while Options.autoFarmMobToggle.Value and task.wait() do
  179. local targetMob = nil
  180. for _, v in selectedMobs do
  181. for _, v2 in workspace.Mobs:GetChildren() do
  182. if lp and lp.Character and lp.Character:FindFirstChild("HumanoidRootPart") then
  183. if v2 and v2.Name:match(v) and v2:FindFirstChild("Healthbar") then
  184. targetMob = v2
  185. break
  186. end
  187. end
  188. end
  189. if targetMob then
  190. break
  191. end
  192. end
  193.  
  194. if targetMob then
  195. if selectedPosition == "Above" then
  196. lp.Character.PrimaryPart.CFrame = targetMob.PrimaryPart.CFrame:ToWorldSpace(CFrame.new(0, selectedDistance * 2, 0))
  197. elseif selectedPosition == "Below" then
  198. lp.Character.PrimaryPart.CFrame = targetMob.PrimaryPart.CFrame:ToWorldSpace(CFrame.new(0, -selectedDistance * 2, 0))
  199. elseif selectedPosition == "Behind" then
  200. local direction = (targetMob.PrimaryPart.Position - lp.Character.PrimaryPart.Position).unit
  201. lp.Character.PrimaryPart.CFrame = CFrame.new(targetMob.PrimaryPart.Position - direction * selectedDistance * 2)
  202. end
  203. else
  204. -- Se não houver mobs selecionados ou nenhum mob estiver vivo, o jogador pode se mover para uma zona segura, se ativada.
  205. if safeZoneToggle.Value then
  206. lp.Character.PrimaryPart.CFrame = CFrame.new(-2176, 914, -577)
  207. end
  208. end
  209. end
  210. end)
  211.  
  212. end
  213.  
  214.  
  215.  
  216. local autoQuestToggle = Tabs.Autofarm:AddToggle("AutoQuestToggle", {Title = "Auto Selected Quest", Description = "Enabled/Disabled to Farm Selected Quest", Default = false })
  217. autoQuestToggle:OnChanged(function()
  218. while Options.AutoQuestToggle.Value and task.wait() do
  219. if ReplicatedStorage.Profiles[lp.Name].Quests.Active.Value ~= selectedQuest then
  220. ReplicatedStorage.Systems.Quests.AcceptQuest:FireServer(selectedQuest)
  221. end
  222. if ReplicatedStorage.Profiles[lp.Name].Quests.Active:FindFirstChild("Count") and checkQuestInfo(selectedQuest, "Amount") == ReplicatedStorage.Profiles[lp.Name].Quests.Active.Count.Value then
  223. ReplicatedStorage.Systems.Quests.CompleteQuest:FireServer(selectedQuest)
  224. end
  225. end
  226. end)
  227.  
  228. local autoTeleportOresToggle = Tabs.Autofarm:AddToggle("AutoTeleportOres", {Title = "Auto Farm Ores", Description = "Teleport to Ores (Turn on Auto Collect)", Default = false })
  229. autoTeleportOresToggle:OnChanged(function()
  230. while Options.AutoTeleportOres.Value and task.wait() do
  231. for _, oreModel in ipairs(workspace.Ores:GetChildren()) do
  232. if oreModel and oreModel:IsA("Model") then
  233. lp.Character:SetPrimaryPartCFrame(oreModel.PrimaryPart.CFrame)
  234. break
  235. end
  236. end
  237. task.wait(0.4)
  238. game:GetService("ReplicatedStorage"):WaitForChild("Systems"):WaitForChild("Mining"):WaitForChild("Mine"):FireServer()
  239. end
  240. end)
  241.  
  242. 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 })
  243. autoCollectToggle:OnChanged(function()
  244. while Options.AutoCollect.Value and task.wait() do
  245. for i, v in ReplicatedStorage.Drops:GetChildren() do
  246. if v:IsA("Folder") and v:GetAttribute("Owner") == lp.Name then
  247. ReplicatedStorage.Systems.Drops.Pickup:FireServer(v)
  248. end
  249. end
  250. end
  251. end)
  252. --[[local killAuraSpeedSlider = Tabs.Autofarm:AddSlider("KillAuraSpeedSlider", {
  253. Title = "Kill Aura Speed",
  254. Description = "This determines how fast player attacks",
  255. Default = .35,
  256. Min = 0,
  257. Max = 1,
  258. Rounding = 2,
  259. Callback = function(Value)
  260. configs["Speed"] = Value
  261. end
  262. })
  263.  
  264. local killAuraRangeSlider = Tabs.Autofarm:AddSlider("KillAuraRangeSlider", {
  265. Title = "Kill Aura Range",
  266. Description = "This determines how far kill aura reaches",
  267. Default = 70,
  268. Min = 0,
  269. Max = 100,
  270. Rounding = 1,
  271. Callback = function(Value)
  272. configs["Range"] = Value
  273. end
  274. })]]
  275.  
  276.  
  277.  
  278.  
  279. --[[OLD> while Options.KillAura.Value and task.wait(configs["Speed"]) do
  280. if getNearbyMobs() then
  281. ReplicatedStorage.Systems.Combat.PlayerAttack:FireServer(mobsList)
  282.  
  283. ReplicatedStorage.Systems.Skills.UseSkill:FireServer("Whirlwind")
  284.  
  285. for i = 1, 3 do
  286. ReplicatedStorage.Systems.Combat.PlayerSkillAttack:FireServer(mobsList, "Whirlwind", i)
  287. end
  288. end
  289. end
  290. end)<]]
  291.  
  292. local killAuraSpeedSlider = Tabs.Combat:AddSlider("KillAuraSpeedSlider", {
  293. Title = "Kill Aura Speed",
  294. Description = "Set the speed at which the player performs their attacks (Do not decrease too much, it will result in a kick!)",
  295. Default = .5,
  296. Min = 0,
  297. Max = 1,
  298. Rounding = 2,
  299. Callback = function(Value)
  300. configs["Speed"] = Value
  301. end
  302. })
  303.  
  304. local killAuraRangeSlider = Tabs.Combat:AddSlider("KillAuraRangeSlider", {
  305. Title = "Kill Aura Range",
  306. Description = "Set how far kill aura goes (Do not decrease too much, it will result in a kick!)",
  307. Default = 50,
  308. Min = 0,
  309. Max = 100,
  310. Rounding = 1,
  311. Callback = function(Value)
  312. configs["Range"] = Value
  313. end
  314. })
  315.  
  316. local killAuraToggle = Tabs.Combat:AddToggle("KillAura", {Title = "Kill Aura", Default = false })
  317. killAuraToggle:OnChanged(function()
  318. while Options.KillAura.Value and task.wait(configs["Speed"]) do
  319. if getNearbyMobs() then
  320. ReplicatedStorage.Systems.Combat.PlayerAttack:FireServer(mobsList)
  321.  
  322. ReplicatedStorage.Systems.Skills.UseSkill:FireServer("Whirlwind")
  323.  
  324. for i = 1, 3 do
  325. ReplicatedStorage.Systems.Combat.PlayerSkillAttack:FireServer(mobsList, "Whirlwind", i)
  326. end
  327. end
  328. end
  329. end)
  330.  
  331. --[[local killAuraToggle = Tabs.Combat:AddToggle("KillAura", {Title = "Old Kill Aura", Default = false })
  332. killAuraToggle:OnChanged(function()
  333. while Options.KillAura.Value and task.wait(.3) do
  334. if getNearbyMobs() then
  335. ReplicatedStorage.Systems.Combat.PlayerAttack:FireServer(mobsList)
  336.  
  337. ReplicatedStorage.Systems.Skills.UseSkill:FireServer("Flurry")
  338.  
  339. for i = 1, 3 do
  340. ReplicatedStorage.Systems.Combat.PlayerSkillAttack:FireServer(mobsList, "Flurry", i)
  341. end
  342. end
  343. end
  344. end)]]
  345.  
  346.  
  347.  
  348.  
  349.  
  350.  
  351. local Teleport do
  352. local bossRoomDropdown = Tabs.Teleports:AddDropdown("BossRoomDropdown", {
  353. Title = "Bosses Arena",
  354. Description = "Choose Arena to Teleport",
  355. Values = bossArenaList,
  356. Multi = false,
  357. Default = nil
  358. })
  359.  
  360. bossRoomDropdown:OnChanged(function(Value)
  361. if Value ~= nil then
  362. lp.Character.PrimaryPart.CFrame = workspace.BossArenas[Value]:FindFirstChild("Bounds").CFrame
  363. end
  364. end)
  365.  
  366. FloorList = {"Floor1", "Floor2"}
  367. Floor1ID = 14819490378
  368. Floor2ID = 15695929915
  369.  
  370. local FloorDropdown = Tabs.Teleports:AddDropdown("FloorDropdown", {
  371. Title = "Floor Teleport",
  372. Description = "Teleport to Floor1/2 without reqs",
  373. Values = FloorList,
  374. Multi = false,
  375. Default = nil
  376. })
  377.  
  378. FloorDropdown:OnChanged(function(Value)
  379. if Value ~= nil then
  380. if Value == "Floor1" then
  381. game:GetService("TeleportService"):Teleport(Floor1ID)
  382. elseif Value == "Floor2" then
  383. game:GetService("TeleportService"):Teleport(Floor2ID)
  384. end
  385. end
  386. end)
  387.  
  388. Tabs.Teleports:AddButton({
  389. Title = "Tp to Waystones",
  390. Description = "This function will allow you to unlock all waystones",
  391. Callback = function()
  392. for i, v in workspace.Waystones:GetChildren() do
  393. lp.Character:MoveTo(v.WorldPivot.Position)
  394. task.wait(.25)
  395. ReplicatedStorage.Systems.Locations.UnlockWaystone:FireServer(v)
  396. task.wait(.25)
  397. end
  398. end
  399. })
  400.  
  401. local autoChestToggle = Tabs.Teleports:AddToggle("AutoCollectChest", {Title = "TP to Chests", Description = "TP to All Chests (You cannot collect already collected chests)", Default = false })
  402. autoChestToggle:OnChanged(function()
  403. while Options.AutoCollectChest.Value and task.wait() do
  404. for i, v in workspace:GetChildren() do
  405. if v.Name == "Chest" and v:FindFirstChild("RootPart") and v.RootPart:FindFirstChild("ProximityPrompt") then
  406. lp.Character.PrimaryPart.CFrame = v.RootPart.CFrame:ToWorldSpace(CFrame.new(0, 5, 0))
  407. task.wait(1)
  408. fireproximityprompt(v.RootPart.ProximityPrompt, 1, true)
  409. end
  410. end
  411. end
  412. end)
  413. end
  414.  
  415. Tabs.Misc:AddButton({
  416. Title = "Crafting Gui",
  417. Description = "Open Crafting Gui",
  418. Callback = function()
  419. game:GetService("Players").LocalPlayer.PlayerGui.Crafting.Enabled = true
  420. game:GetService("Players").LocalPlayer.PlayerGui.Crafting.Frame.Visible = true
  421. end
  422. })
  423.  
  424. Tabs.Misc:AddButton({
  425. Title = "Discord Server",
  426. Callback = function()
  427.  
  428. setclipboard("https://discord.gg/94Sdk3yV")
  429.  
  430. Fluent:Notify({
  431. Title = "YukiWare",
  432. Content = "Link Copied",
  433. Duration = 8
  434. })
  435. end
  436. })
  437.  
  438.  
  439.  
  440. SaveManager:SetLibrary(Fluent)
  441. InterfaceManager:SetLibrary(Fluent)
  442.  
  443.  
  444. SaveManager:IgnoreThemeSettings()
  445. SaveManager:SetIgnoreIndexes({})
  446. InterfaceManager:SetFolder("YWare")
  447. SaveManager:SetFolder("YWare/SB2")
  448.  
  449. InterfaceManager:BuildInterfaceSection(Tabs.Settings)
  450. SaveManager:BuildConfigSection(Tabs.Settings)
  451.  
  452.  
  453. Window:SelectTab(1)
  454.  
  455. Fluent:Notify({
  456. Title = "YukiWare",
  457. Content = "The script has been loaded.",
  458. Duration = 8
  459. })
  460. SaveManager:LoadAutoloadConfig()
  461.  
  462.  
  463. -- SwordBurst.Lua
  464. local YukiWare = Instance.new("ScreenGui")
  465. YukiWare.Name = "YukiWare"
  466. YukiWare.Parent = game.CoreGui
  467. YukiWare.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  468.  
  469. -- Definição do botão
  470. local Main = Instance.new("Frame")
  471. Main.Name = "Main"
  472. Main.Parent = YukiWare
  473. Main.ClipsDescendants = false
  474. Main.AnchorPoint = Vector2.new(0.5, 0.5)
  475. Main.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  476. Main.Position = UDim2.new(0.1, 0, 0.1, 0) -- Alterado para coordenadas relativas
  477. Main.Size = UDim2.new(0, 32, 0, 32)
  478. Main.Transparency = 1
  479.  
  480. local Corner = Instance.new("UICorner")
  481. Corner.Name = "Corner"
  482. Corner.Parent = Main
  483. CornerRadius = 0.4
  484.  
  485. local Button = Instance.new("TextButton")
  486. Button.Name = "Button"
  487. Button.Parent = Main
  488. Button.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  489. Button.Position = UDim2.new(0, 0, 0, 0)
  490. Button.Size = UDim2.new(1, 0, 1, 0)
  491. Button.Font = Enum.Font.SourceSans
  492. Button.Text = "YW"
  493. Button.TextColor3 = Color3.fromRGB(255, 255, 255)
  494. Button.TextSize = 19
  495. Button.Transparency = 0.4
  496. Button.TextTransparency = 0
  497.  
  498. local ButtonCorner = Instance.new("UICorner")
  499. Corner.Name = "Corner"
  500. Corner.Parent = Button
  501. CornerRadius = 0.4
  502.  
  503. -- Variáveis para controle de arrastar
  504. local dragging
  505. local dragStart
  506. local startPos
  507.  
  508. -- Função para iniciar o arrastar
  509. local function startDrag(input)
  510. dragging = true
  511. startPos = Main.Position
  512. dragStart = input.Position
  513. input.Changed:Connect(function()
  514. if input.UserInputState == Enum.UserInputState.End then
  515. dragging = false
  516. end
  517. end)
  518. end
  519.  
  520. -- Função para atualizar a posição durante o arrastar
  521. local function updateDrag(input)
  522. if dragging then
  523. local delta = input.Position - dragStart
  524. Main.Position = UDim2.new(
  525. startPos.X.Scale,
  526. startPos.X.Offset + delta.X,
  527. startPos.Y.Scale,
  528. startPos.Y.Offset + delta.Y
  529. )
  530. end
  531. end
  532.  
  533. -- Conectar eventos de mouse para arrastar o botão
  534. Button.InputBegan:Connect(function(input)
  535. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  536. startDrag(input)
  537. end
  538. end)
  539.  
  540. Button.InputChanged:Connect(function(input)
  541. if input.UserInputType == Enum.UserInputType.MouseMovement then
  542. updateDrag(input)
  543. end
  544. end)
  545.  
  546. Button.InputEnded:Connect(function(input)
  547. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  548. dragging = false
  549. end
  550. end)
  551.  
  552. -- Função para enviar o evento de tecla ao pressionar o botão
  553. Button.MouseButton1Click:Connect(function()
  554. game:GetService("VirtualInputManager"):SendKeyEvent(true, "LeftControl", false, game)
  555. end)
  556.  
  557. -- Animação de deslizamento do botão
  558. Button.MouseEnter:Connect(function()
  559. Button.Size = UDim2.new(1.1, 0, 1.1, 0)
  560. Button.Position = UDim2.new(-0.05, 0, 0, 0)
  561. end)
  562.  
  563. Button.MouseLeave:Connect(function()
  564. Button.Size = UDim2.new(1, 0, 1, 0)
  565. Button.Position = UDim2.new(0, 0, 0, 0)
  566. end)
  567.  
Add Comment
Please, Sign In to add comment