Advertisement
LynchHub

Untitled

Aug 17th, 2024
475
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 34.63 KB | None | 0 0
  1. -- // Vars \\ --
  2. local noclipE = nil
  3. local antifall = nil
  4. local currentTween = nil
  5. local plr = game.Players.LocalPlayer
  6. local TweenService = game:GetService("TweenService")
  7. local Workspace = game:GetService("Workspace")
  8. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  9. local RunService = game:GetService("RunService")
  10. local Settings = {
  11.     ["autofarm_mobs"] = false,
  12.     ["autofarm_boss"] = false,
  13.     ["TpSpeed"] = 80,
  14.     ["ChosenMob"] = "Green Demon",
  15.     ["ChosenBoss"] = "Okuro"
  16. }
  17.  
  18. local function noclip()
  19.     if plr.Character then
  20.         for _, v in pairs(plr.Character:GetDescendants()) do
  21.             if v:IsA("BasePart") and v.CanCollide == true then
  22.                 v.CanCollide = false
  23.             end
  24.         end
  25.     end
  26. end
  27.  
  28. local function moveto(cframe, speed)
  29.     if currentTween then
  30.         currentTween:Cancel()
  31.     end
  32.  
  33.     local info = TweenInfo.new(((plr.Character.HumanoidRootPart.Position - cframe.Position).Magnitude) / speed, Enum.EasingStyle.Linear)
  34.     local tween = TweenService:Create(plr.Character.HumanoidRootPart, info, {CFrame = cframe})
  35.  
  36.     if not plr.Character.HumanoidRootPart:FindFirstChild("BodyVelocity") then
  37.         antifall = Instance.new("BodyVelocity", plr.Character.HumanoidRootPart)
  38.         antifall.Velocity = Vector3.new(0, 0, 0)
  39.         antifall.MaxForce = Vector3.new(0, math.huge, 0)
  40.         noclipE = RunService.Stepped:Connect(noclip)
  41.     end
  42.  
  43.     tween:Play()
  44.     currentTween = tween
  45.  
  46.     tween.Completed:Connect(function()
  47.         if antifall then antifall:Destroy() end
  48.         if noclipE then noclipE:Disconnect() end
  49.         currentTween = nil
  50.     end)
  51.  
  52.     spawn(function()
  53.         while tween.PlaybackState == Enum.PlaybackState.Playing do
  54.             if not Settings["autofarm_mobs"] and not Settings["autofarm_boss"] then
  55.                 tween:Cancel()
  56.                 if antifall then antifall:Destroy() end
  57.                 if noclipE then noclipE:Disconnect() end
  58.                 currentTween = nil
  59.                 break
  60.             end
  61.             wait(0.1)
  62.         end
  63.     end)
  64. end
  65.  
  66.  
  67. -- // MOBS/BOSS LIST \\ --
  68. local mob_list = {
  69.     "Green Demon",
  70.     "GenericOni",
  71.     "FrostyOni",
  72.     "Blue Demon",
  73.     "GenericSlayer",
  74.     "Zenitsu",
  75. }
  76.  
  77. local boss_list = {
  78.     "Kaigaku",
  79.     "Gyutaro",
  80. }
  81.  
  82. -- // Library \\ --
  83. local Library = loadstring(game:HttpGet("https://github.com/dawid-scripts/Fluent/releases/latest/download/main.lua"))()
  84.  
  85. -- // Window \\ --
  86. local Window = Fluent:CreateWindow({
  87.     Title = "Demonfall AF",
  88.     SubTitle = "by LynchYT",
  89.     TabWidth = 160,
  90.     Size = UDim2.fromOffset(543, 300),
  91.     Acrylic = false,
  92.     Theme = "Amethyst",
  93.     MinimizeKey = Enum.KeyCode.RightControl
  94. })
  95.  
  96. -- // TABS \\ --
  97. local Tabs = {
  98.     Farmingtab = Window:AddTab({ Title = " | Farming", Icon = "swords" }),
  99.     Raidtab = Window:AddTab({ Title = " | Farming", Icon = "sword" }),
  100.     Misctab = Window:AddTab({ Title = " | Miscellaneous", Icon = "settings" }),
  101.     Trinketstab = Window:AddTab({ Title =" | Trinkets Farm", Icon = "dollar-sign" }),
  102.     Teleporttab = Window:AddTab({ Title = " | Teleport", Icon = "plane" }),
  103.     Autoskillstab = Window:AddTab({ Title = " | Auto Skills", Icon = "bot" }),
  104.     Dupetabs = Window:AddTab({ Title = " | Dupe", Icon = "crown" }),
  105. }
  106.  
  107. -- // FARMING TABS \\ --
  108. local Section = Tabs.Farmingtab:AddSection("MOBS FARMING")
  109.  
  110. local Dropdown = Tabs.Farmingtab:AddDropdown("Dropdown", {
  111.     Title = "CHOOSE MOBS",
  112.     Description = "",
  113.     Values = mob_list,
  114.     Multi = false,
  115.     Default = 1,
  116. })
  117.  
  118. Dropdown:OnChanged(function(v)
  119.     Settings["ChosenMob"] = v
  120. end)
  121.  
  122. local Toggle = Tabs.Farmingtab:AddToggle("MyToggle",
  123. {
  124.     Title = "FARM MOBS",
  125.     Description = "",
  126.     Default = false,
  127.     Callback = function(v)
  128.       Settings["autofarm_mobs"] = v
  129.         if not v and currentTween then
  130.             currentTween:Cancel()
  131.         end
  132.     end
  133. })
  134.  
  135. local Section = Tabs.Farmingtab:AddSection("BOSS FARMING")
  136.  
  137. local Dropdown = Tabs.Farmingtab:AddDropdown("Dropdown", {
  138.     Title = "CHOOSE BOSS",
  139.     Description = "",
  140.     Values = boss_list,
  141.     Multi = false,
  142.     Default = 1,
  143. })
  144.  
  145. Dropdown:OnChanged(function(v)
  146.     Settings["ChosenBoss"] = v
  147. end)
  148.  
  149. local Toggle = Tabs.Farmingtab:AddToggle("MyToggle",
  150. {
  151.     Title = "FARM BOSS",
  152.     Description = "",
  153.     Default = false,
  154.     Callback = function(v)
  155.       Settings["autofarm_boss"] = v
  156.         if not v and currentTween then
  157.             currentTween:Cancel()
  158.         end
  159.     end
  160. })
  161.  
  162. local Section = Tabs.Farmingtab:AddSection("TWEEN SPEED")
  163.  
  164. local Slider = Tabs.Farmingtab:AddSlider("Slider",
  165. {
  166.     Title = "TWEEN SPEED",
  167.     Description = "",
  168.     Default = 80,
  169.     Min = 80,
  170.     Max = 300,
  171.     Rounding = 0,
  172.     Callback = function(v)
  173.         Settings["TpSpeed"] = v
  174.     end
  175. })
  176.  
  177. local function getClosestTarget(targetName)
  178.     local dist, target = math.huge
  179.     for _, v in pairs(Workspace:GetChildren()) do
  180.         if v:IsA("Model") and v.Name == targetName then
  181.             local mag = (plr.Character.HumanoidRootPart.Position - v:GetModelCFrame().p).Magnitude
  182.             if mag < dist then
  183.                 dist = mag
  184.                 target = v
  185.             end
  186.         end
  187.     end
  188.     return target
  189. end
  190.  
  191. local function autofarm(type, targetName)
  192.     while Settings["autofarm_" .. type] do
  193.         wait()
  194.         pcall(function()
  195.             local target = getClosestTarget(targetName)
  196.             if not target then return end
  197.  
  198.             local enemy_mag = (plr.Character.HumanoidRootPart.Position - target:GetModelCFrame().p).Magnitude
  199.  
  200.             if not target:FindFirstChild("Executed") then
  201.                 moveto(target:GetModelCFrame() * CFrame.new(0, 0, 3), tonumber(Settings.TpSpeed or 75))
  202.             end
  203.  
  204.             local characterModel = plr.Character:FindFirstChildWhichIsA("Model")
  205.             local hasKatana = characterModel and characterModel:FindFirstChild("Blade")
  206.            
  207.             -- Attack logic
  208.             if enemy_mag <= 10 then
  209.                 if hasKatana then
  210.                     if not characterModel:FindFirstChild("Equipped").Part0 then
  211.                         game:GetService("VirtualInputManager"):SendKeyEvent(true, "R", false, game)
  212.                     end
  213.                    
  214.                     if target:FindFirstChild("Block") then
  215.                         ReplicatedStorage.Remotes.Async:FireServer("Katana", "Heavy")
  216.                     else
  217.                         ReplicatedStorage.Remotes.Async:FireServer("Katana", "Server")
  218.                     end
  219.                 else
  220.                     -- Fallback to Combat if no Katana is found
  221.                     local args = {
  222.                         [1] = "Combat",
  223.                         [2] = "Server"
  224.                     }
  225.                     ReplicatedStorage.Remotes.Async:FireServer(unpack(args))
  226.                 end
  227.             end
  228.  
  229.             if target:FindFirstChild("Executed") then
  230.                 wait(1)
  231.                 target:Destroy()
  232.             end
  233.  
  234.             if target:FindFirstChild("Down") then
  235.                 moveto(target:GetModelCFrame() * CFrame.new(0, 0, 3), tonumber(Settings.TpSpeed or 75))
  236.                 ReplicatedStorage.Remotes.Sync:InvokeServer("Character", "Execute")
  237.             end
  238.  
  239.             for _, v in pairs(plr.Character:GetChildren()) do
  240.                 if v:IsA("StringValue") and (v.Name == "Stun" or v.Name == "Attacking" or v.Name == "AttackAnnounce" or v.Name == "Busy" or v.Name == "SequenceCooldown" or v.Name == "SequenceFactor" or v.Name == "HeavyCooldown" or v.Name == "Sequence" or v.Name == "SequenceFactor") then
  241.                     v:Destroy()
  242.                 end
  243.             end
  244.         end)
  245.     end
  246. end
  247.  
  248. spawn(function()
  249.     while wait() do
  250.         if Settings["autofarm_mobs"] and Settings["ChosenMob"] then
  251.             autofarm("mobs", Settings["ChosenMob"])
  252.         end
  253.     end
  254. end)
  255.  
  256. spawn(function()
  257.     while wait() do
  258.         if Settings["autofarm_boss"] and Settings["ChosenBoss"] then
  259.             autofarm("boss", Settings["ChosenBoss"])
  260.         end
  261.     end
  262. end)
  263.  
  264. -- // RAID TABS \\ --
  265. -- // Vars \\ --
  266. local noclipE, antifall, currentTween = nil, nil, nil
  267. local plr = game.Players.LocalPlayer
  268. local TweenService = game:GetService("TweenService")
  269. local Workspace = game:GetService("Workspace")
  270. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  271. local RunService = game:GetService("RunService")
  272. local Settings = {
  273.     ["autofarm"] = false,
  274.     ["AutoSword"] = false,
  275.     ["TpSpeed"] = 120,
  276.     ["DelayBetweenTargets"] = 0.3, -- Delay in seconds before moving to the next target
  277. }
  278.  
  279. local function noclip()
  280.     if plr.Character then
  281.         for _, v in pairs(plr.Character:GetDescendants()) do
  282.             if v:IsA("BasePart") and v.CanCollide then
  283.                 v.CanCollide = false
  284.             end
  285.         end
  286.     end
  287. end
  288.  
  289. local function moveto(cframe, speed)
  290.     if currentTween then
  291.         currentTween:Cancel()
  292.     end
  293.  
  294.     local distance = (plr.Character.HumanoidRootPart.Position - cframe.Position).Magnitude
  295.     local info = TweenInfo.new(distance / speed, Enum.EasingStyle.Linear)
  296.     local tween = TweenService:Create(plr.Character.HumanoidRootPart, info, {CFrame = cframe})
  297.  
  298.     if Settings["autofarm"] then
  299.         -- Disable noclip during autofarming
  300.         if noclipE then
  301.             noclipE:Disconnect()
  302.             noclipE = nil
  303.         end
  304.         if antifall then
  305.             antifall:Destroy()
  306.             antifall = nil
  307.         end
  308.     else
  309.         if not plr.Character.HumanoidRootPart:FindFirstChild("BodyVelocity") then
  310.             antifall = Instance.new("BodyVelocity", plr.Character.HumanoidRootPart)
  311.             antifall.Velocity = Vector3.new(0, 0, 0)
  312.             antifall.MaxForce = Vector3.new(0, math.huge, 0)
  313.             noclipE = RunService.Stepped:Connect(noclip)
  314.         end
  315.     end
  316.  
  317.     tween:Play()
  318.     currentTween = tween
  319.  
  320.     tween.Completed:Connect(function()
  321.         if antifall then antifall:Destroy() end
  322.         if noclipE then noclipE:Disconnect() end
  323.         currentTween = nil
  324.     end)
  325. end
  326.  
  327. -- // MOBS/BOSS LIST \\ --
  328. local target_lists = {
  329.     mobs = {"Green Demon", "GenericOni", "GenericSlayer", "Enemy", "ShinobuRaid"},
  330.     boss = {"GenericOni", "Kokushibo", "Akaza", "Okuro", "Doma"}
  331. }
  332.  
  333. local Section = Tabs.Raidtab:AddSection("TELEPORT")
  334.  
  335. Tabs.Raidtab:AddButton({
  336.     Title = "Teleport To Sanemi",
  337.     Callback = function()
  338.         local character = plr.Character or plr.CharacterAdded:Wait()
  339.         local npc = workspace.Npcs:FindFirstChild("Shinazugawa")
  340.         if npc then
  341.             character:SetPrimaryPartCFrame(npc.HumanoidRootPart.CFrame)
  342.         else
  343.             warn("NPC Shinazugawa not found")
  344.         end
  345.     end
  346. })
  347.  
  348. Tabs.Raidtab:AddButton({
  349.     Title = "Teleport To Ubuyashiki",
  350.     Callback = function()
  351.         local character = plr.Character or plr.CharacterAdded:Wait()
  352.         local npc = workspace.Npcs:FindFirstChild("Ubuyashiki")
  353.         if npc then
  354.             character:SetPrimaryPartCFrame(npc.HumanoidRootPart.CFrame)
  355.         else
  356.             warn("NPC Ubuyashiki not found")
  357.         end
  358.     end
  359. })
  360.  
  361. Section = Tabs.Raidtab:AddSection("FARM MOBS & BOSS")
  362.  
  363. local farmToggle = Tabs.Raidtab:AddToggle("FarmToggle", {
  364.     Title = "FARM RAID",
  365.     Default = false,
  366.     Callback = function(v)
  367.         Settings["autofarm"] = v
  368.         if not v and currentTween then
  369.             currentTween:Cancel()
  370.         end
  371.     end
  372. })
  373.  
  374. -- // FARMING FUNCTION \\ --
  375. local function getClosestTarget(targetName)
  376.     local closestDist, closestTarget = math.huge, nil
  377.     for _, v in pairs(Workspace:GetChildren()) do
  378.         if v:IsA("Model") and v.Name == targetName then
  379.             closestTarget = v
  380.             break
  381.         end
  382.     end
  383.     return closestTarget
  384. end
  385.  
  386. local function checkAkazaHealth(target)
  387.     if target and target.Name == "Akaza" and target:FindFirstChild("Humanoid") then
  388.         if target.Humanoid.Health <= 0 then
  389.             return true
  390.         end
  391.     end
  392.     return false
  393. end
  394.  
  395. local function autofarm(targetList)
  396.     local targetIndex = 1
  397.  
  398.     while Settings["autofarm"] do
  399.         local targetName = targetList[targetIndex]
  400.         local target = getClosestTarget(targetName)
  401.  
  402.         if target then
  403.             local targetPos = target:GetModelCFrame().p
  404.             local playerPos = plr.Character.HumanoidRootPart.Position
  405.             local dist = (playerPos - targetPos).Magnitude
  406.  
  407.             if not target:FindFirstChild("Executed") then
  408.                 moveto(target:GetModelCFrame() * CFrame.new(0, 0, 3), Settings.TpSpeed)
  409.             end
  410.  
  411.             if dist <= 10 then
  412.                 local characterModel = plr.Character:FindFirstChildWhichIsA("Model")
  413.                 local hasKatana = characterModel and characterModel:FindFirstChild("Blade")
  414.  
  415.                 if hasKatana then
  416.                     if not characterModel:FindFirstChild("Equipped").Part0 then
  417.                         game:GetService("VirtualInputManager"):SendKeyEvent(true, "R", false, game)
  418.                     end
  419.  
  420.                     if target:FindFirstChild("Block") then
  421.                         ReplicatedStorage.Remotes.Async:FireServer("Katana", "Heavy")
  422.                     else
  423.                         ReplicatedStorage.Remotes.Async:FireServer("Katana", "Server")
  424.                     end
  425.                 else
  426.                     ReplicatedStorage.Remotes.Async:FireServer("Combat", "Server")
  427.                 end
  428.             end
  429.  
  430.             if target:FindFirstChild("Executed") then
  431.                 wait(1)
  432.                 target:Destroy()
  433.                 wait(Settings["DelayBetweenTargets"])
  434.                 -- Move to the next target in the list
  435.                 targetIndex = targetIndex % #targetList + 1
  436.             end
  437.  
  438.             -- Check if Akaza's health is 0 and teleport if it is
  439.             if checkAkazaHealth(target) then
  440.                 local teleportCFrame = Workspace.Map.CasteloRaid.Ato2.DomaHit.CFrame
  441.                 moveto(teleportCFrame, Settings.TpSpeed)
  442.                 break  -- Exit loop after teleport
  443.             end
  444.  
  445.             for _, v in pairs(plr.Character:GetChildren()) do
  446.                 if v:IsA("StringValue") and table.find({
  447.                     "Stun", "Attacking", "AttackAnnounce", "Busy",
  448.                     "SequenceCooldown", "SequenceFactor", "HeavyCooldown", "Sequence"
  449.                 }, v.Name) then
  450.                     v:Destroy()
  451.                 end
  452.             end
  453.         end
  454.  
  455.         wait(0.1)  -- Short wait to reduce CPU usage
  456.     end
  457. end
  458.  
  459. spawn(function()
  460.     while true do
  461.         if Settings["autofarm"] then
  462.             for _, list in pairs(target_lists) do
  463.                 autofarm(list)
  464.                 wait(0.1)
  465.             end
  466.         end
  467.         wait(0.1)
  468.     end
  469. end)
  470.  
  471.  
  472. -- // PLAYER TABS \\ --
  473.  
  474.  
  475. -- // MISC TABS \\ --
  476. local Section = Tabs.Misctab:AddSection("INFINITE FUNCTION")
  477.  
  478. Tabs.Misctab:AddButton({
  479.     Title = "Infinite Health",
  480.     Description = "",
  481.     Callback = function()
  482.         game:GetService("ReplicatedStorage").Remotes.Async:FireServer("Character", "FallDamageServer", 0/0)
  483.     end
  484. })
  485.  
  486. Tabs.Misctab:AddButton({
  487.     Title = "Infinite Energy",
  488.     Description = "",
  489.     Callback = function()
  490.         local player = game:GetService("Players").LocalPlayer
  491.         while true do
  492.             player.Stamina.Value = math.huge
  493.             wait(0.1)
  494.         end
  495.     end
  496. })
  497.  
  498. local InfiniteJumpEnabled = false
  499. game:GetService("UserInputService").JumpRequest:connect(function()
  500.     if InfiniteJumpEnabled then
  501.         game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass('Humanoid'):ChangeState("Jumping")
  502.     end
  503. end)
  504.  
  505. local Toggle = Tabs.Misctab:AddToggle("MyToggle", {
  506.     Title = "Infinite Jump",
  507.     Description = "",
  508.     Default = false,
  509.     Callback = function(v)
  510.         InfiniteJumpEnabled = v
  511.     end
  512. })
  513.  
  514.  
  515. local Section = Tabs.Misctab:AddSection("OTHER FUNCTION")
  516.  
  517. local Slider = Tabs.Misctab:AddSlider("Slider",
  518. {
  519.     Title = "FOV Changer",
  520.     Description = "",
  521.     Default = 80,
  522.     Min = 80,
  523.     Max = 120,
  524.     Rounding = 0,
  525.     Callback = function(Value)
  526.         game.Workspace.CurrentCamera.FieldOfView = Value
  527.     end
  528. })
  529.  
  530. local Toggle = Tabs.Misctab:AddToggle("MyToggle",
  531. {
  532.     Title = "Auto Pickup",
  533.     Description = "",
  534.     Default = false,
  535.     Callback = function(v)
  536.         _G.AutoPickEnabled = v
  537.         if v then
  538.             spawn(function()
  539.                 local ReplicatedStorage = game:GetService("ReplicatedStorage")
  540.                 local Players = game:GetService("Players")
  541.                 local workspace = game:GetService("Workspace")
  542.  
  543.                 local player = Players.LocalPlayer
  544.                 local character = player.Character or player.CharacterAdded:Wait()
  545.                 local remote = ReplicatedStorage.Remotes.Async
  546.  
  547.                 while _G.AutoPickEnabled do
  548.                  
  549.                     for _, item in pairs(workspace:GetChildren()) do
  550.                         if item.Name == "DropItem" then
  551.                          
  552.                             local distance = (character.HumanoidRootPart.Position - item.Position).Magnitude
  553.                            
  554.                             if distance <= 100 then
  555.                              
  556.                                 local args = {
  557.                                     [1] = "Character",
  558.                                     [2] = "Interaction",
  559.                                     [3] = item
  560.                                 }
  561.  
  562.                                 remote:FireServer(unpack(args))
  563.                             end
  564.                         end
  565.                     end
  566.                    
  567.                     wait()
  568.                 end
  569.             end)
  570.         end
  571.     end
  572. })
  573.  
  574. local Toggle = Tabs.Misctab:AddToggle("MyToggle",
  575. {
  576.     Title = " Auto Breath",
  577.     Description = "",
  578.     Default = false,
  579.     Callback = function(v)
  580.       Settings["AutoBreath"] = v
  581.     end
  582. })
  583.  
  584. local function clearDebuffs(character)
  585.     local busy = character:FindFirstChild("Busy")
  586.     if busy then
  587.         busy:Destroy()
  588.     end
  589.  
  590.     local slow = character:FindFirstChild("Slow")
  591.     if slow then
  592.         slow:Destroy()
  593.     end
  594. end
  595.  
  596. local function autoBreath()
  597.     local player = game:GetService("Players").LocalPlayer
  598.     local breathing = player.Breathing
  599.  
  600.     if breathing and breathing.Value ~= 80 then
  601.         game:GetService("ReplicatedStorage").Remotes.Async:FireServer("Character", "Breath", true)
  602.     end
  603. end
  604.  
  605. spawn(function()
  606.     while wait(1) do
  607.         if Settings.AutoBreath then
  608.             local character = game.Players.LocalPlayer.Character
  609.             if character then
  610.                 clearDebuffs(character)
  611.                 autoBreath()
  612.             end
  613.         end
  614.     end
  615. end)
  616.  
  617. local Toggle = Tabs.Misctab:AddToggle("MyToggle",
  618. {
  619.     Title = "No Clip",
  620.     Description = "",
  621.     Default = false,
  622.     Callback = function(v)
  623.       if v then
  624.             noclipT = game:GetService("RunService").Stepped:Connect(noclip)
  625.         else
  626.             if noclipT then
  627.                 noclipT:Disconnect()
  628.             end
  629.         end
  630.     end
  631. })
  632.  
  633. Tabs.Misctab:AddButton({
  634.     Title = "Remove Fog",
  635.     Description = "",
  636.     Callback = function()
  637.         local lighting = game:GetService("Lighting")
  638.         local atmosphere = lighting:FindFirstChildOfClass("Atmosphere")
  639.        
  640.         if atmosphere then
  641.             atmosphere.Density = 0
  642.             atmosphere.Glare = 0
  643.             atmosphere.Haze = 0
  644.         end
  645.     end
  646. })
  647.  
  648.  
  649. -- // TRINKET TABS \\ --
  650. -- // List \\ --
  651. local Ore_list = {
  652.   "Sun Ore",
  653.   "Iron Ore"
  654. }
  655.  
  656. local Flower_list = {
  657.   "Flower1",
  658.   "Flower2",
  659.   "Flower3",
  660. }
  661.  
  662. -- Services and Variables
  663. local runService = game:GetService("RunService")
  664. local replicatedStorage = game:GetService("ReplicatedStorage")
  665. local localPlayer = game.Players.LocalPlayer
  666. local character = localPlayer.Character or localPlayer.CharacterAdded:Wait()
  667.  
  668. -- Settings for Random Trinket Farm
  669. local Settings = {
  670.     RandomTrinketFarm = false,
  671.     TpSpeed = 100
  672. }
  673.  
  674. local Section = Tabs.Trinketstab:AddSection("TRINKETS FARM")
  675.  
  676. -- Trinkets Toggle for Random Trinket
  677. local ToggleRandomTrinketFarm = Tabs.Trinketstab:AddToggle("RandomTrinketFarm", {
  678.     Title = "Farm Random Trinket",
  679.     Default = false
  680. })
  681.  
  682. -- Farming Function
  683. local function farmRandomTrinket()
  684.     while Settings.RandomTrinketFarm do
  685.         if not localPlayer or not character then return end
  686.         for _, v in pairs(workspace:GetChildren()) do
  687.             if not Settings.RandomTrinketFarm then return end
  688.             if v:FindFirstChild("PickableItem") and v:FindFirstChild("Part") then
  689.                 -- Move to trinket position
  690.                 character.HumanoidRootPart.CFrame = v:FindFirstChild("Part").CFrame
  691.                 wait(0.5) -- Wait briefly to simulate movement time
  692.  
  693.                 -- Simulate interaction with the trinket
  694.                 replicatedStorage.Remotes.Async:FireServer("Character", "Interaction", v:FindFirstChild("Part"))
  695.                 wait(1) -- Ensure there’s enough time for the interaction to complete
  696.             end
  697.         end
  698.         wait(1) -- Optional delay to prevent too many operations
  699.     end
  700. end
  701.  
  702. -- Toggle Handler
  703. ToggleRandomTrinketFarm:OnChanged(function(v)
  704.     Settings["RandomTrinketFarm"] = v
  705.     if v then
  706.         spawn(farmRandomTrinket)
  707.     end
  708. end)
  709.  
  710. -- Update character if it respawns
  711. local function updateCharacter()
  712.     character = localPlayer.Character or localPlayer.CharacterAdded:Wait()
  713. end
  714.  
  715. localPlayer.CharacterAdded:Connect(updateCharacter)
  716.  
  717. -- Initialize Settings Table
  718. local Settings = {}
  719.  
  720. local Section = Tabs.Trinketstab:AddSection("ORE FARM")
  721.  
  722. -- // Ores Dropdown \\ --
  723. local DropdownOre = Tabs.Trinketstab:AddDropdown("Ore", {
  724.     Title = "Choose Ore",
  725.     Description = "Choose what ore to farm",
  726.     Values = Ore_list,
  727.     Multi = false,
  728.     Default = 1,
  729. })
  730.  
  731. DropdownOre:OnChanged(function(v)
  732.     Settings["ChosenOre"] = v
  733. end)
  734.  
  735. -- // Ore Toggle \\ --
  736. local ToggleOre = Tabs.Trinketstab:AddToggle("Ore", {
  737.     Title = "Farm Ore",
  738.     Description = "Teleport you to ore, must equip pickaxe to work",
  739.     Default = false,
  740.     Callback = function(v)
  741.         Settings["FarmOre"] = v
  742.     end
  743. })
  744.  
  745. local Section = Tabs.Trinketstab:AddSection("FLOWER FARM")
  746.  
  747. -- // Flowers Dropdown \\ --
  748. local DropdownFlower = Tabs.Trinketstab:AddDropdown("Flowers", {
  749.     Title = "Choose Flower",
  750.     Values = Flower_list,
  751.     Multi = false,
  752.     Default = 1,
  753. })
  754.  
  755. DropdownFlower:SetValue("Flower1")
  756.  
  757. DropdownFlower:OnChanged(function(v)
  758.     Settings["ChosenFlower"] = v
  759. end)
  760.  
  761. -- // Flower Toggle \\ --
  762. local ToggleFlower = Tabs.Trinketstab:AddToggle("Flower", {
  763.     Title = "Farm Flower",
  764.     Default = false
  765. })
  766.  
  767. ToggleFlower:OnChanged(function(v)
  768.     Settings.FarmFlower = v
  769. end)
  770.  
  771. -- // Function Farm O/T/F \\ --
  772. local function getOre()
  773.     local dist, ore = math.huge
  774.     for i, v in pairs(game:GetService("Workspace").Map.Minerals:GetDescendants()) do
  775.         if v.Name == "MineralName" and v.Value == Settings.ChosenOre then
  776.             local oremag = (game.Players.LocalPlayer.Character.HumanoidRootPart.Position - v.Parent.Position).magnitude
  777.             if oremag < dist then
  778.                 dist = oremag
  779.                 ore = v.Parent
  780.             end
  781.         end
  782.     end
  783.     return ore
  784. end
  785.  
  786. local function moveto(destinationCFrame, speed)
  787.     local character = game.Players.LocalPlayer.Character
  788.     if character and character:FindFirstChild("HumanoidRootPart") then
  789.         local humanoidRootPart = character.HumanoidRootPart
  790.         humanoidRootPart.CFrame = destinationCFrame
  791.     end
  792. end
  793.  
  794. spawn(function()
  795.     while wait() do
  796.         if Settings.FarmOre then
  797.             local ore = getOre()
  798.             if ore then
  799.                 local ore_mag = (game.Players.LocalPlayer.Character.HumanoidRootPart.Position - ore.Position).magnitude
  800.                 if ore_mag <= 5 then
  801.                     game:GetService("ReplicatedStorage").Remotes.Sync:InvokeServer("Pickaxe", "Server")
  802.                 else
  803.                     moveto(ore.CFrame, tonumber(Settings.TpSpeed or 100))
  804.                 end
  805.             end
  806.         end
  807.     end
  808. end)
  809.  
  810. local function teleportTo(destinationCFrame)
  811.     local character = game.Players.LocalPlayer.Character
  812.     if character and character:FindFirstChild("HumanoidRootPart") then
  813.         character.HumanoidRootPart.CFrame = destinationCFrame
  814.     end
  815. end
  816.  
  817. -- Main farming loop for flowers
  818. spawn(function()
  819.     while wait() do
  820.         if Settings.FarmFlower then
  821.             local chosenFlower = game.Workspace.Map:FindFirstChild(Settings.ChosenFlower)
  822.             if chosenFlower then
  823.                 local flowerCFrame = chosenFlower:GetModelCFrame() * CFrame.new(0, 0, 0)
  824.                 teleportTo(flowerCFrame)
  825.             end
  826.         end
  827.     end
  828. end)
  829.  
  830. -- // TELEPORT TABS \\ --
  831. local Section = Tabs.Teleporttab:AddSection("TELEPORT NPCS")
  832.  
  833. local Npcs = {}
  834. for i, v in pairs(workspace.Npcs:GetChildren()) do
  835.     table.insert(Npcs, v.Name)
  836. end
  837.  
  838. table.sort(Npcs)
  839.  
  840. local Dropdown = Tabs.Teleporttab:AddDropdown("Dropdown", {
  841.     Title = "Choose NPC",
  842.     Description = "",
  843.     Values = Npcs,
  844.     Multi = false,
  845.     Default = Npcs[1]
  846. })
  847.  
  848. local selectedNpcName
  849.  
  850. Dropdown:OnChanged(function(selectedNpc)
  851.     selectedNpcName = selectedNpc
  852. end)
  853.  
  854. local function teleportToNpcWorldPivot()
  855.     if selectedNpcName then
  856.         local npc = workspace.Npcs:FindFirstChild(selectedNpcName)
  857.        
  858.         if npc then
  859.             local targetPosition = npc.WorldPivot.Position
  860.            
  861.             game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(targetPosition)
  862.         end
  863.     end
  864. end
  865.  
  866. Tabs.Teleporttab:AddButton({
  867.     Title = "Teleport NPC",
  868.     Description = "",
  869.     Callback = function()
  870.         teleportToNpcWorldPivot()
  871.     end
  872. })
  873.  
  874. local Section = Tabs.Teleporttab:AddSection("BREATHING TEACHER")
  875.  
  876. local Dropdown = Tabs.Teleporttab:AddDropdown("Dropdown", {
  877.     Title = "Breathing Teacher",
  878.     Description = "",
  879.     Values = {"Flower Breathing", "Flame Breathing", "Insect Breathing", "Love Breathing", "Mist Breathing", "Moon Breathing", "Snake Breathing", "Sound Breathing", "Stone Breathing", "Sun Breathing", "Thunder Breathing", "Water Breathing", "Wind Breathing"},
  880.     Multi = false,
  881.     Default = 1,
  882. })
  883.  
  884. local selectedBreath = ""
  885.  
  886. Dropdown:OnChanged(function(v)
  887.     selectedBreath = v
  888. end)
  889.  
  890. Tabs.Teleporttab:AddButton({
  891.     Title = "Teleport",
  892.     Description = "",
  893.     Callback = function()
  894.         local character = game.Players.LocalPlayer.Character
  895.         local hrp = character and character:FindFirstChild("HumanoidRootPart")
  896.  
  897.         if not hrp then return end
  898.  
  899.         local npcModels = {
  900.             ["Flower Breathing"] = workspace.Npcs.Tsuyuri,
  901.             ["Flame Breathing"] = workspace.Npcs.Rengoku,
  902.             ["Insect Breathing"] = workspace.Npcs.Shinobu,
  903.             ["Love Breathing"] = workspace.Npcs.Mitsuri,
  904.             ["Mist Breathing"] = workspace.Npcs.Tokito,
  905.             ["Moon Breathing"] = workspace.Npcs.Kokushibo,
  906.             ["Snake Breathing"] = workspace.Npcs.Iguro,
  907.             ["Sound Breathing"] = workspace.Npcs.Uzui,
  908.             ["Stone Breathing"] = workspace.Npcs.Gyoumei,
  909.             ["Sun Breathing"] = workspace.Npcs.Tanjiro,
  910.             ["Thunder Breathing"] = workspace.Npcs.Kujima,
  911.             ["Water Breathing"] = workspace.Npcs.Urokodaki,
  912.             ["Wind Breathing"] = workspace.Npcs.Grimm
  913.         }
  914.  
  915.         local npcModel = npcModels[selectedBreath]
  916.         if npcModel then
  917.             hrp.CFrame = npcModel:GetPivot()
  918.         end
  919.     end
  920. })
  921.  
  922. -- // AUTOSKILL TABS \\ --
  923. local Toggles = {}
  924. local Enabled = {}
  925.  
  926. -- Function to start the loop for a given skill number
  927. local function startSkillLoop(skillNumber)
  928.     while Enabled[skillNumber] do
  929.         local keyCode
  930.         -- Determine the KeyCode based on the skill number
  931.         if skillNumber == 1 then
  932.             keyCode = Enum.KeyCode.One
  933.         elseif skillNumber == 2 then
  934.             keyCode = Enum.KeyCode.Two
  935.         elseif skillNumber == 3 then
  936.             keyCode = Enum.KeyCode.Three
  937.         elseif skillNumber == 4 then
  938.             keyCode = Enum.KeyCode.Four
  939.         elseif skillNumber == 5 then
  940.             keyCode = Enum.KeyCode.Five
  941.         elseif skillNumber == 6 then
  942.             keyCode = Enum.KeyCode.Six
  943.         elseif skillNumber == 7 then
  944.             keyCode = Enum.KeyCode.Seven
  945.         elseif skillNumber == 8 then
  946.             keyCode = Enum.KeyCode.Eight
  947.         end
  948.        
  949.         -- Send the key event
  950.         game:GetService('VirtualInputManager'):SendKeyEvent(true, keyCode, false, game)
  951.         wait(1)  -- Wait for 1 second before sending the key event again
  952.     end
  953. end
  954.  
  955. -- Add toggles and their callbacks
  956. for i = 1, 8 do
  957.     Toggles[i] = Tabs.Autoskillstab:AddToggle("MyToggle" .. i, {
  958.         Title = "Auto Skill " .. i,
  959.         Description = "",
  960.         Default = false,
  961.         Callback = function(v)
  962.             Enabled[i] = v
  963.             if v then
  964.                 startSkillLoop(i)
  965.             end
  966.         end
  967.     })
  968. end
  969.  
  970. -- // DUPE TABS \\ --
  971. local function DupeItems(itemNames)
  972.     for _, itemName in ipairs(itemNames) do
  973.         local args = {
  974.             [1] = "HUD",
  975.             [2] = "Inventory",
  976.             [3] = "Drop",
  977.             [4] = itemName,
  978.             [5] = -9999999999999999999999
  979.         }
  980.        
  981.         game:GetService("ReplicatedStorage").Remotes.Sync:InvokeServer(unpack(args))
  982.        
  983.         Fluent:Notify({
  984.             Title = "Notification",
  985.             Content = "Dupe Successful! Check Your Inventory for " .. itemName,
  986.             Duration = 3
  987.         })
  988.     end
  989. end
  990.  
  991. local item_list = {
  992.     "Wipe Potion", "Combat Potion", "Breath Indict", "Muzan Blood", "Perfect Crystal", "Green Jewel", "Red Jewel", "Gold Crown", "Ancient Coin", "Golden Ring", "Gold Jar", "Gold Goblet", "Iron Ore", "Sun Ore", "Demon Horn", "Broken Nichirin", "Blue Horn","Green Horn","Demon Collar","Crystal Key","Weapon Parts", "Crystal Essence","Dark Thunder Essence", "Premium Meat", "Meat", "Soup", "Bread"
  993. }
  994.  
  995. local selectedItem
  996.  
  997. Tabs.Dupetabs:AddParagraph({
  998.     Title = "Step 1",
  999.     Content = "Make sure you have the item that you want to dupe"
  1000. })
  1001.  
  1002. Tabs.Dupetabs:AddParagraph({
  1003.     Title = "Step 2",
  1004.     Content = "Find the item you want to dupe in the dropdown or type it on Input(make sure spelling is correct), and then click the button"
  1005. })
  1006.  
  1007. local Input = Tabs.Dupetabs:AddInput("Input", {
  1008.     Title = "M NAME",
  1009.     Description = "",
  1010.     Default = "",
  1011.     Placeholder = "Item Name",
  1012.     Numeric = false,
  1013.     Finished = false,
  1014.     Callback = function(Value)
  1015.         selectedItem = Value
  1016.         print("Input changed:", Value)
  1017.     end
  1018. })
  1019.  
  1020. local Dropdown = Tabs.Dupetabs:AddDropdown("Dropdown", {
  1021.     Title = "ITEM LIST",
  1022.     Description = "",
  1023.     Values = item_list,
  1024.     Multi = false,
  1025.     Default = 1,
  1026. })
  1027.  
  1028. Dropdown:OnChanged(function(Value)
  1029.     selectedItem = Value
  1030.     print("Dropdown changed:", Value)
  1031. end)
  1032.  
  1033. Tabs.Dupetabs:AddButton({
  1034.     Title = "CLICK HERE TO DUPE",
  1035.     Description = "",
  1036.     Callback = function()
  1037.         if selectedItem then
  1038.             DupeItems({selectedItem})
  1039.         else
  1040.             Fluent:Notify({
  1041.                 Title = "Error!",
  1042.                 Content = "No item selected. Please select an item from the dropdown or input.",
  1043.                 Duration = 3
  1044.             })
  1045.         end
  1046.     end
  1047. })
  1048. ------------------------------------------------------Raid Functions
  1049.  
  1050.  
  1051. ------------------------------------------------------Player Functions
  1052.  
  1053. ------------------------------------------------------Trinket Functions
  1054. local function getOre()
  1055.     local dist, ore = math.huge
  1056.     for i, v in pairs(game:GetService("Workspace").Map.Minerals:GetDescendants()) do
  1057.         if v.Name == "MineralName" and v.Value == Settings.ChosenOre then
  1058.             local oremag = (game.Players.LocalPlayer.Character.HumanoidRootPart.Position - v.Parent.Position).magnitude
  1059.             if oremag < dist then
  1060.                 dist = oremag
  1061.                 ore = v.Parent
  1062.             end
  1063.         end
  1064.     end
  1065.     return ore
  1066. end
  1067.  
  1068. local function moveto(destinationCFrame, speed)
  1069.     local character = game.Players.LocalPlayer.Character
  1070.     if character and character:FindFirstChild("HumanoidRootPart") then
  1071.         local humanoidRootPart = character.HumanoidRootPart
  1072.         humanoidRootPart.CFrame = destinationCFrame
  1073.     end
  1074. end
  1075.  
  1076. spawn(function()
  1077.     while wait() do
  1078.         if Settings.FarmOre then
  1079.             local ore = getOre()
  1080.             if ore then
  1081.                 local ore_mag = (game.Players.LocalPlayer.Character.HumanoidRootPart.Position - ore.Position).magnitude
  1082.                 if ore_mag <= 5 then
  1083.                     game:GetService("ReplicatedStorage").Remotes.Sync:InvokeServer("Pickaxe", "Server")
  1084.                 else
  1085.                     moveto(ore.CFrame, tonumber(Settings.TpSpeed or 100))
  1086.                 end
  1087.             end
  1088.         end
  1089.     end
  1090. end)
  1091.  
  1092. local function teleportTo(destinationCFrame)
  1093.     local character = game.Players.LocalPlayer.Character
  1094.     if character and character:FindFirstChild("HumanoidRootPart") then
  1095.         character.HumanoidRootPart.CFrame = destinationCFrame
  1096.     end
  1097. end
  1098.  
  1099. -- Main farming loop for flowers
  1100. spawn(function()
  1101.     while wait() do
  1102.         if Settings.FarmFlower then
  1103.             local chosenFlower = game.Workspace.Map:FindFirstChild(Settings.ChosenFlower)
  1104.             if chosenFlower then
  1105.                 local flowerCFrame = chosenFlower:GetModelCFrame() * CFrame.new(0, 0, 0)
  1106.                 teleportTo(flowerCFrame)
  1107.             end
  1108.         end
  1109.     end
  1110. end)
  1111.  
  1112. -- // close gui \\ --
  1113.  
  1114. local ScreenGui = Instance.new("ScreenGui")
  1115. local ImageButton = Instance.new("ImageButton")
  1116. local UICorner = Instance.new("UICorner")
  1117. ScreenGui.Name = ""
  1118. ScreenGui.Parent = game.CoreGui or game.Players.LocalPlayer.PlayerGui
  1119. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  1120. ImageButton.Parent = ScreenGui
  1121. ImageButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  1122. ImageButton.BackgroundTransparency = 1
  1123. ImageButton.BorderSizePixel = 0
  1124. ImageButton.Position = UDim2.new(0.120833337, 0, 0.0952890813, 0)
  1125. ImageButton.Size = UDim2.new(0, 50, 0, 50)
  1126. ImageButton.Draggable = true
  1127. ImageButton.Image = "https://www.roblox.com/asset/?id=18687520299"
  1128. UICorner.Parent = ImageButton
  1129. ImageButton.MouseButton1Down:connect(function()
  1130.        game:GetService("VirtualInputManager"):SendKeyEvent(true,305,false,game)
  1131.        game:GetService("VirtualInputManager"):SendKeyEvent(false,305,false,game)
  1132. end)
  1133.  
Advertisement
Comments
  • asdasd76
    25 days
    # text 1.71 KB | 0 0
    1. https://www.strava.com/athletes/144899181/posts/31595913
    2. https://www.strava.com/athletes/144899181/posts/31595798
    3. https://www.strava.com/athletes/144899181/posts/31595824
    4. https://www.strava.com/athletes/144899181/posts/31595839
    5. https://www.strava.com/athletes/144899181/posts/31595913
    6. https://www.strava.com/athletes/144899181/posts/31595922
    7. https://www.strava.com/athletes/144899181/posts/31595951
    8. https://www.strava.com/athletes/144899181/posts/31596029
    9. https://hastebin.com/share/iwoxexuxal.bash
    10. https://paste2.org/nUd6gznU
    11. https://paste.toolforge.org/view/d0f92500
    12. https://justpaste.me/e40y
    13. https://www.pastery.net/gpepbv/
    14. https://wokwi.com/projects/406160430602297345
    15. https://notes.io/wnqvZ
    16. https://ctxt.io/2/AABYxz5bFg
    17. https://justpaste.me/f7yB1
    18. https://paiza.io/projects/3T1ZUWbNczvUwfVL9mzFjQ?language=php
    19. https://tempel.in/view/Jr7eNU
    20. https://www.forexagone.com/forum/questions-debutants/askdnkas-136750#234869
    21. https://www.bankier.pl/forum/temat_askdn,67686757.html
    22. https://snippet.host/stffro
    23. https://www.awwwards.com/profile/user-project/show-project/f5bd41b6-e0f7-4d35-ba85-12969ca865a4
    24. https://www.awwwards.com/profile/user-project/show-project/29669cf6-0363-4d99-83e7-b8c352cbf0ef
    25. https://www.awwwards.com/profile/user-project/show-project/62e459ce-cf48-4d27-b15c-04c95e1f163b
    26. https://www.awwwards.com/profile/user-project/show-project/55b70ae1-4e29-4f88-9288-548ba07d4e90
    27. https://www.awwwards.com/profile/user-project/show-project/d732213f-121b-4ba2-84a3-78f84d71a4e3
    28. https://pastelink.net/ung46tk0
    29. https://www.wowace.com/paste/f1677365
    30. https://forum.freeflarum.com/d/110842-asdasd
    31. https://paste.md-5.net/moyiqazosu.cpp
    32. https://dev.bukkit.org/paste/6c20f7f4
    33. https://paste.feed-the-beast.com/view/42a6241c
Add Comment
Please, Sign In to add comment
Advertisement