Advertisement
1zxyuuki

Untitled

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