CSHARP 108
Untitled By sdsf on 18th March 2023 05:20:15 PM
  1. -- loadfile('Scriptz/sb2 script.lua')()
  2. -- loadstring(game:HttpGet('https://raw.githubusercontent.com/noobscripter38493/Swordburst-2/main/script.lua'))()
  3.  
  4. repeat task.wait() until game:IsLoaded()
  5.  
  6. local teleport_execute = queue_on_teleport or (fluxus and fluxus.queue_on_teleport) or (syn and syn.queue_on_teleport)
  7. if teleport_execute then
  8.     teleport_execute("loadstring(game:HttpGet('https://raw.githubusercontent.com/noobscripter38493/Swordburst-2/main/script.lua'))()")
  9. else
  10.     warn"failed to find execute on teleport function"
  11. end
  12.  
  13. local mobs_on_floor = {
  14.     [540240728] = {}, -- arcadia -- floor 1
  15.     [737272595] = {}, -- battle arena floor 1
  16.     [566212942] = {}, -- floor 6 helmfrith
  17.  
  18.     [542351431] = { -- floor 1
  19.         "Frenzy Boar",
  20.         "Wolf",
  21.         "Hermit Crab",
  22.         "Bear",
  23.         "Ruin Knight",
  24.         "Draconite",
  25.         "Ruin Kobold Knight"
  26.     },
  27.  
  28.     [548231754] = { -- floor 2
  29.         "Leaf Beetle",
  30.         "Leaf Ogre",
  31.         "Leafray",
  32.         "Pearl Keeper",
  33.         "Bushback Tortoise",
  34.         "Wasp"
  35.     },
  36.  
  37.     [555980327] = { -- floor 3
  38.         "Snowgre",
  39.         "Angry Snowman",
  40.         "Icewhal",
  41.         "Ice Elemental",
  42.         "Snowhorse",
  43.         "Ice Walker"
  44.     },
  45.  
  46.     [572487908] = { -- floor 4
  47.         "Wattlechin Crocodile",
  48.         "Birchman",
  49.         "Treehorse",
  50.         "Treeray",
  51.         "Boneling",
  52.         "Bamboo Spiderling",
  53.         "Bamboo Spider",
  54.         "Dungeon Dweller",
  55.         "Lion Protector",
  56.     },
  57.  
  58.     [580239979] = { -- floor 5
  59.         "Girdled Lizard",
  60.         "Angry Cactus",
  61.         "Desert Vulture",
  62.         "Sand Scorpion",
  63.         "Giant Centipede",
  64.         "Green Patrolman",
  65.         "Centaurian Defender",
  66.         "Patrolman Elite",
  67.     },
  68.  
  69.     [582198062] = { -- floor 7
  70.         "Jelly Wisp",
  71.         "Firefly",
  72.         "Shroom Back Clam",
  73.         "Gloom Shroom",
  74.         "Horned Sailfin Iguana",
  75.         "Blightmouth",
  76.         "Snapper"
  77.     },
  78.    
  79.     [548878321] = { -- floor 8
  80.         "Giant Praying Mantis",
  81.         "Petal Knight",
  82.         "Leaf Rhino",
  83.         "Sky Raven",
  84.         "Wingless Hippogriff",
  85.         "Forest Wanderer",
  86.         "Dungeon Crusador"
  87.     },
  88.  
  89.     [573267292] = { -- floor 9
  90.         "Batting Eye",
  91.         "Lingerer",
  92.         "Fishrock Spider",
  93.         "Reptasaurus",
  94.         "Ent",
  95.         "Undead Warrior",
  96.         "Enraged Lingerer",
  97.         "Undead Berserker"
  98.     },
  99.  
  100.     [2659143505] = { -- floor 10
  101.         "Winged Minion",
  102.         "Clay Giant",
  103.         "Wendigo",
  104.         "Grunt",
  105.         "Guard Hound",
  106.         "Minion",
  107.         "Shady Villager",
  108.         "Undead Servant",
  109.     },
  110.  
  111.     [5287433115] = { -- floor 11
  112.         "Reaper",
  113.         "Elite Reaper",
  114.         "DJ Reaper",
  115.         "Soul Eater",
  116.         "Shadow Figure",
  117.         "Meta Figure",
  118.         "???????",
  119.         "Rogue Android",
  120.         "Command Falcon",
  121.         "Armageddon Eagle",
  122.         "Sentry",
  123.         "Watcher",
  124.         "Cybold"
  125.     }
  126. }
  127.  
  128. local bosses_on_floor = {
  129.     [540240728] = {}, -- arcadia -- floor 1
  130.     [737272595] = {}, -- battle arena floor 1
  131.     [566212942] = {}, -- floor 6 helmfrith
  132.    
  133.     [542351431] = { -- floor 1
  134.         "Dire Wolf",
  135.         "Rahjin the Thief King"
  136.     },
  137.  
  138.     [548231754] = { -- floor 2
  139.         "Pearl Guardian",
  140.         "Gorrock the Grove Protector",
  141.         "Borik the BeeKeeper"
  142.     },
  143.  
  144.     [555980327] = { -- floor 3
  145.         "Qerach The Forgotten Golem",
  146.         "Alpha Icewhal",
  147.         "Ra'thae the Ice King"
  148.     },
  149.  
  150.     [572487908] = { -- floor 4
  151.         "Rotling",
  152.         "Irath the Lion",
  153.     },
  154.  
  155.     [580239979] = { -- floor 5
  156.         "Fire Scorpion",
  157.         "Sa'jun the Centurian Chieftain"
  158.     },
  159.    
  160.     [582198062] = { -- floor 7
  161.         "Frogazoid",
  162.         "Smashroom"
  163.     },
  164.  
  165.     [548878321] = { -- floor 8
  166.         "Hippogriff",
  167.         "Formaug the Jungle Giant"
  168.     },
  169.  
  170.     [573267292] = { -- floor 9
  171.         "Gargoyle Reaper",
  172.         "Polyserpant",
  173.         "Mortis the Flaming Sear"
  174.     },
  175.  
  176.     [2659143505] = { -- floor 10
  177.         "Baal  The  Tormentor",
  178.         "Grim  the  Overseer"
  179.     },
  180.  
  181.     [5287433115] = { -- floor 11
  182.         "Da, the Demeanor",
  183.         "Ra, the Enlightener",
  184.         "Ka, the Mischief",
  185.         "Za, the Eldest",
  186.         "Duality Reaper",
  187.         "Saurus, the All-Seeing"
  188.     }
  189. }
  190.  
  191. local Players = game:GetService("Players")
  192. local CoreGui = game:GetService("CoreGui")
  193. local UserInputS = game:GetService("UserInputService")
  194. local TweenS = game:GetService("TweenService")
  195. local RunS = game:GetService("RunService")
  196. local Rs = game:GetService("ReplicatedStorage")
  197.  
  198. getgenv().getupvalue = debug.getupvalue -- not sure if other exploits that aren't synapse have an alias so this is for that i guess
  199. getgenv().setupvalue = debug.setupvalue
  200. getgenv().getinfo = debug.getinfo
  201.  
  202. local placeid = game.PlaceId
  203.  
  204. local floor_data = require(Rs.Database.Locations)
  205.  
  206. local floor_ids = {}
  207. for i, v in next, floor_data.floors do -- probably remove this
  208.    for i2, v2 in next, v do
  209.        if i2 == "PlaceId" then
  210.           floor_ids[i] = v2
  211.        end
  212.    end
  213. end
  214.  
  215. local function copy_table(t)
  216.    local c = {}
  217.    
  218.    for i, v in next, t do
  219.        c[i] = v
  220.    end
  221.    
  222.    return c
  223. end
  224.  
  225. local plr = Players.LocalPlayer
  226.  
  227. for _, v in next, getconnections(plr.Idled) do
  228.    v:Disable()
  229. end
  230.  
  231. getgenv().char = plr.Character or plr.CharacterAdded:Wait()
  232. getgenv().hrp = char:WaitForChild("HumanoidRootPart")
  233. getgenv().humanoid = char:WaitForChild("Humanoid")
  234.  
  235. repeat wait() until getrenv()._G.CalculateCombatStyle
  236.  
  237. local settings = {
  238.    Autofarm = false,
  239.    Autofarm_Y_Offset = 10,
  240.    Tween_Speed = 50,
  241.    Farm_Only_Bosses = false,
  242.    Boss_Priority = false,
  243.    MuteSwingSounds = false,
  244.    Prioritized_Boss = nil,
  245.    Mob_Priority = false,
  246.    Prioritized_Mob = nil,
  247.    KA = false,
  248.    KA_Range = 20,
  249.    WalkSpeed = humanoid.WalkSpeed,
  250.    speed = false,
  251.    AutoEquip = false,
  252.    InfSprint = false,
  253.    InfJump = false,
  254.    RemoveDeathEffects = false,
  255.    RemoveDamageNumbers = false,
  256.    AttackPlayers = false,
  257.    Animation = getrenv()._G.CalculateCombatStyle(),
  258.    times = 1,
  259.    MaxAutofarmDistance = 10000,
  260.    excludedMobs = {},
  261. }
  262.  
  263. plr.CharacterAdded:Connect(function(new)
  264.    char = new
  265.    hrp = char:WaitForChild("HumanoidRootPart")
  266.    humanoid = char:WaitForChild("Humanoid")
  267. end)
  268.  
  269. local game_module = nil
  270. while true do
  271.    for _, v in next, getnilinstances() do
  272.        if v.Name == "MainModule" then
  273.            game_module = v
  274.            break
  275.        end
  276.    end
  277.  
  278.    if game_module then break end
  279.  
  280.    task.wait(.5)
  281. end
  282.  
  283. -- disable M1s when killaura is enabled
  284. local setThreadIdentity = (syn and syn.set_thread_identity) or setthreadcontext or (fluxus and fluxus.set_thread_identity) or setidentity
  285. setThreadIdentity(2)
  286.  
  287. getgenv().hookfunc = hookfunction
  288.  
  289. for _, v in next, getconnections(UserInputS.InputBegan) do
  290.    local f = v.Function
  291.    if not f then continue end
  292.    
  293.    local info = getinfo(f)
  294.    if info.source:find("Services.Input") then
  295.        local noMouseClick; noMouseClick = hookfunc(f, function(user_input, game_processed, ...)
  296.            if user_input.UserInputType == Enum.UserInputType.MouseButton1 then
  297.                if settings.KA then
  298.                    return
  299.                end
  300.            end
  301.            
  302.            return noMouseClick(user_input, game_processed, ...)
  303.        end)
  304.  
  305.        break
  306.    end
  307. end
  308. setThreadIdentity(7)
  309.  
  310. local lib = loadstring(game:HttpGet("https://raw.githubusercontent.com/shlexware/Orion/main/source"))()
  311.  
  312. repeat wait() until lib
  313.  
  314. local protected = gethui and gethui() or CoreGui
  315. local orion = protected:WaitForChild("Orion")
  316.  
  317. local window = lib:MakeWindow({
  318.    Name = "SB2 Script | Made By OneTaPuXd on v3rm",
  319.    HidePremium = false,
  320.    SaveConfig = false,
  321.    ConfigFolder = false
  322. })
  323.  
  324. do
  325.    local farm_tab = window:MakeTab({
  326.        Name = "Farm",
  327.        Icon = "",
  328.        PremiumOnly = false
  329.    })
  330.  
  331.    farm_tab:AddParagraph("Warning", "SB2 Mods are extremely active and autofarm will likely get you banned")
  332.    local mobs_table = {}
  333.    local tween_create
  334.    local function tween(to)
  335.        local distance = (hrp.Position - to.Position).Magnitude
  336.        local seconds = distance / settings.Tween_Speed
  337.        
  338.        local tween_info = TweenInfo.new(seconds, Enum.EasingStyle.Linear)
  339.        local cframe = to.CFrame * CFrame.new(0, settings.Autofarm_Y_Offset, 0)
  340.        tween_create = TweenS:Create(hrp, tween_info, {CFrame = cframe})
  341.        
  342.        local smooth_tween = RunS.RenderStepped:Connect(function()
  343.            hrp.Velocity = Vector3.zero
  344.        end)
  345.  
  346.        tween_create:Play()
  347.        tween_create.Completed:Wait()
  348.  
  349.        smooth_tween:Disconnect()
  350.        
  351.        if not settings.Autofarm then return end
  352.  
  353.        local enemy = to.Parent
  354.        local success, shouldfarm = pcall(function()
  355.            if enemy.Entity.Health.Value > 0 then
  356.                return true
  357.            end
  358.        end)
  359.  
  360.        if success and shouldfarm then
  361.            return tween(to)
  362.        end
  363.        
  364.        xpcall(function()
  365.            mobs_table[enemy] = nil
  366.        end, warn)
  367.    end
  368.  
  369.    local mobs = workspace.Mobs
  370.    mobs.ChildAdded:Connect(function(mob)
  371.        mob:WaitForChild("HumanoidRootPart")
  372.        mobs_table[mob] = mob
  373.    end)
  374.    
  375.    mobs.ChildRemoved:Connect(function(mob)
  376.        xpcall(function()
  377.            mobs_table[mob] = nil
  378.        end, warn)
  379.    end)
  380.    
  381.    for _, v in next, mobs:GetChildren() do
  382.        coroutine.wrap(function()
  383.            v:WaitForChild("HumanoidRootPart")
  384.            mobs_table[v] = v
  385.        end)()
  386.    end
  387.  
  388.    local function distanceCheck(enemy)
  389.        local enemy_hrp = enemy:WaitForChild("HumanoidRootPart")
  390.        local maxdistance = settings.MaxAutofarmDistance
  391.    
  392.        local distance = (hrp.Position - enemy_hrp.Position).Magnitude
  393.        return distance < maxdistance
  394.    end
  395.    
  396.    local function searchForMob(mobName)
  397.        for _, mob in next, mobs_table do
  398.            if mob.Name == mobName and distanceCheck(mob) then
  399.                return mob
  400.            end
  401.        end
  402.    end
  403.    
  404.    local function searchForBoss(bossName)
  405.        for _, boss in next, mobs_table do
  406.            if boss.Name == bossName and distanceCheck(boss) then
  407.                return boss
  408.            end
  409.        end
  410.    end
  411.    
  412.    local function searchForAnyBoss(bosses)
  413.        for _, boss in next, mobs_table do
  414.            for _, bossName in next, bosses do
  415.                if boss.Name == bossName and distanceCheck(boss) then
  416.                    return boss
  417.                end
  418.            end
  419.        end
  420.    end
  421.    
  422.    farm_tab:AddToggle({
  423.        Name = "Autofarm (HIGH BAN RISK)",
  424.        Default = false,
  425.        Callback = function(bool)
  426.            settings.Autofarm = bool
  427.  
  428.            if not bool then        
  429.                if tween_create then
  430.                    tween_create:Cancel()
  431.                    tween_create = nil
  432.                end
  433.  
  434.                return
  435.            end
  436.  
  437.            while true do
  438.                local excludedMobs = settings.excludedMobs
  439.  
  440.                if not settings.Autofarm then break end
  441.                
  442.                task.wait()
  443.                if settings.Farm_Only_Bosses then
  444.                    local boss = searchForAnyBoss(bosses_on_floor[placeid])
  445.                    local boss_hrp = boss and boss:FindFirstChild("HumanoidRootPart")
  446.  
  447.                    if boss_hrp then
  448.                        local success = pcall(function()
  449.                            if boss.Entity.Health.Value <= 0 then error() end
  450.                        end)
  451.  
  452.                        if not success then continue end
  453.  
  454.                        tween(boss_hrp)
  455.                    end
  456.  
  457.                    continue
  458.                end
  459.  
  460.                if settings.Boss_Priority and settings.Prioritized_Boss ~= nil then
  461.                    local boss = searchForBoss(settings.Prioritized_Boss)
  462.  
  463.                    if boss then
  464.                        local success = pcall(function()
  465.                            if boss.Entity.Health.Value <= 0 then error() end
  466.                        end)
  467.                        
  468.                        if not success then continue end
  469.                        
  470.                        local boss_hrp = boss:FindFirstChild("HumanoidRootPart")
  471.                        
  472.                        if boss_hrp then
  473.                            tween(boss_hrp)
  474.                            
  475.                            continue
  476.                        end
  477.                    end
  478.                end
  479.  
  480.                if settings.Mob_Priority and settings.Prioritized_Mob ~= nil then
  481.                    local mob = searchForMob(settings.Prioritized_Mob)
  482.            
  483.                    if mob and not excludedMobs[mob.Name] then
  484.                        local success = pcall(function()
  485.                            if mob.Entity.Health.Value <= 0 then error() end
  486.                        end)
  487.                        
  488.                        if not success then continue end
  489.                        
  490.                        local mob_hrp = mob:FindFirstChild("HumanoidRootPart")
  491.                        
  492.                        if mob_hrp then
  493.                            tween(mob_hrp)
  494.                            
  495.                            continue
  496.                        end
  497.                    end
  498.                end
  499.                
  500.                local mob_hrp
  501.                for _, mob in next, mobs_table do
  502.                    if not excludedMobs[mob.Name] then
  503.                        mob_hrp = distanceCheck(mob) and mob:FindFirstChild("HumanoidRootPart")
  504.  
  505.                        if mob_hrp then
  506.                            break
  507.                        end
  508.                    end
  509.                end
  510.                
  511.                if mob_hrp then
  512.                    tween(mob_hrp)
  513.                end
  514.            end
  515.        end
  516.    })
  517.    
  518.    farm_tab:AddToggle({
  519.        Name = "Farm Only Bosses",
  520.        Default = false,
  521.        Callback = function(bool)
  522.            settings.Farm_Only_Bosses = bool
  523.        end
  524.    })
  525.  
  526.    farm_tab:AddToggle({
  527.        Name = "Boss Priority",
  528.        Default = false,
  529.        Callback = function(bool)
  530.            settings.Boss_Priority = bool
  531.        end
  532.    })
  533.  
  534.    farm_tab:AddDropdown({
  535.        Name = "Prioritized Boss",
  536.        Default = nil,
  537.        Options = bosses_on_floor[placeid],
  538.        Callback = function(boss)
  539.            settings.Prioritized_Boss = boss
  540.        end
  541.    })
  542.  
  543.    farm_tab:AddToggle({
  544.        Name = "Mob Priority",
  545.        Default = false,
  546.        Callback = function(bool)
  547.            settings.Mob_Priority = bool
  548.        end
  549.    })
  550.  
  551.    farm_tab:AddDropdown({
  552.        Name = "Prioritized Mob",
  553.        Default = nil,  
  554.        Options = mobs_on_floor[placeid],
  555.        Callback = function(mob)
  556.            settings.Prioritized_Mob = mob
  557.        end
  558.    })
  559.  
  560.    farm_tab:AddSlider({
  561.        Name = "Max Autofarm Radius",
  562.        Min = 0,
  563.        Max = 10000,
  564.        Default = 5000,
  565.        Color = Color3.new(255, 255, 255),
  566.        Increment = 100,
  567.        ValueName = "Studs",
  568.        Callback = function(v)
  569.            settings.MaxAutofarmDistance = v
  570.        end
  571.    })
  572.    
  573.    farm_tab:AddSlider({
  574.        Name = "Autofarm Y Offset",
  575.        Min = 0,
  576.        Max = 30,
  577.        Default = 10,
  578.        Color = Color3.new(255, 255, 255),
  579.        Increment = 1,
  580.        ValueName = "Y Offset",
  581.        Callback = function(v)
  582.            settings.Autofarm_Y_Offset = v
  583.        end
  584.    })
  585.  
  586.    farm_tab:AddSlider({
  587.        Name = "Tween Speed",
  588.        Min = 0,
  589.        Max = 100,
  590.        Default = 50,
  591.        Color = Color3.new(255, 255, 255),
  592.        Increment = 1,
  593.        ValueName = "Speed",
  594.        Callback = function(v)
  595.            settings.Tween_Speed = v
  596.        end
  597.    })
  598.  
  599.    local range = Instance.new("Part")
  600.    range.Size = Vector3.new(25, 25, 25)
  601.    range.CanCollide = false
  602.    range.Transparency = 1
  603.  
  604.    RunS.RenderStepped:Connect(function()
  605.        range.CFrame = game.Players.LocalPlayer.Character:GetPivot()
  606.    end)
  607.  
  608.    range.Parent = workspace
  609.  
  610.    local combat = require(game_module.Services.Combat)
  611.    local remote_key = getupvalue(combat.Init, 2)
  612.    local Event = Rs.Event
  613.  
  614.    local attacking = {}
  615.    local function killaura_function(enemy, player)
  616.        while true do
  617.            local i = table.find(attacking, enemy)
  618.            
  619.            local success = pcall(function()
  620.                if enemy.Entity.Health.Value <= 0 then error() end
  621.            end)
  622.  
  623.            local enemy_hrp = enemy:FindFirstChild("HumanoidRootPart")
  624.            if not enemy_hrp or not success or not settings.KA or enemy:FindFirstChild("Immortal") or (hrp.Position - enemy_hrp.Position).Magnitude > settings.KA_Range then
  625.                table.remove(attacking, i)
  626.  
  627.                break
  628.            end
  629.  
  630.            if player and not settings.AttackPlayers then
  631.                table.remove(attacking, i)
  632.  
  633.                break
  634.            end
  635.            
  636.            Event:FireServer("Combat", remote_key, {"Attack", nil, "1", enemy}) -- nil = skill (i think)
  637.            
  638.            task.wait(.3)
  639.        end
  640.    end
  641.  
  642.    local combat_style
  643.    local animations
  644.    for _, v in next, getgc(true) do
  645.        if typeof(v) == "table" then
  646.            local Initanis = rawget(v, "InitAnimations")
  647.            if Initanis then
  648.                local o = copy_table(v)
  649.                setrawmetatable(v, {
  650.                    __index = o,
  651.                    __newindex = function(self, i2, v2)
  652.                        rawset(o, i2, v2)
  653.  
  654.                        if i2 == "animations" then
  655.                            animations = v2
  656.                        end
  657.                    end
  658.                })
  659.                
  660.                animations = o.animations
  661.                table.clear(v)
  662.            end
  663.            
  664.            local calculate = rawget(v, "CalculateCombatStyle")
  665.            if calculate then
  666.                combat_style = calculate
  667.            end
  668.        end
  669.        
  670.        if combat_style and animations then break end
  671.    end
  672.  
  673.    coroutine.wrap(function()
  674.        while true do
  675.            if #attacking == 0 then task.wait(.1) continue end
  676.            
  677.            local animation_style = animations[combat_style()]
  678.            for _, v in next, animation_style do
  679.                if v.Name:find("Swing") then
  680.                    local length = v.Length
  681.                    v:AdjustSpeed(1 / length)
  682.                    v:Play()
  683.  
  684.                    task.wait(.5)
  685.                end
  686.            end
  687.        end
  688.    end)()
  689.  
  690.    range.Touched:Connect(function(touching)  
  691.        if not settings.KA or touching.Parent == char or touching.Name ~= "HumanoidRootPart" then
  692.            return
  693.        end
  694.  
  695.        local enemy = touching.Parent
  696.        if not table.find(attacking, enemy) then
  697.            local mob = table.find(mobs_on_floor[placeid], enemy.Name)
  698.            local boss = table.find(bosses_on_floor[placeid], enemy.Name)
  699.            local chest = enemy.Name:match("Chest")
  700.  
  701.            if mob or boss or chest then
  702.                table.insert(attacking, enemy)
  703.                killaura_function(enemy)
  704.  
  705.            elseif settings.AttackPlayers then
  706.                table.insert(attacking, enemy)
  707.                killaura_function(enemy, true)
  708.            end
  709.        end
  710.    end)
  711.  
  712.    farm_tab:AddToggle({
  713.        Name = "Kill Aura",
  714.        Default = false,
  715.        Callback = function(bool)
  716.            settings.KA = bool
  717.            attacking = {} -- to overwrite attacking table when toggled off
  718.        end
  719.    })
  720.  
  721.    farm_tab:AddToggle({
  722.        Name = "Attack Players",
  723.        Default = false,
  724.        Callback = function(bool)
  725.            settings.AttackPlayers = bool
  726.        end
  727.    })
  728.    
  729.    farm_tab:AddSlider({
  730.        Name = "Kill Aura Range",
  731.        Min = 0,
  732.        Max = 25,
  733.        Default = 20,
  734.        Color = Color3.new(255, 255, 255),
  735.        Increment = 1,
  736.        ValueName = "Range",
  737.        Callback = function(v)
  738.            settings.KA_Range = v
  739.        end
  740.    })
  741.  
  742.    local function getkabutton()
  743.        for _, v in next, orion:GetDescendants() do
  744.            if v:IsA("TextLabel") and v.Text == "Kill Aura" then
  745.                local o = v.Parent:FindFirstChild("TextButton")
  746.                if o then
  747.                    return o
  748.                end
  749.  
  750.                lib:MakeNotification({
  751.                    Name = "KA Keybind Error",
  752.                    Content = "Failed to find button",
  753.                    Image = "",
  754.                    Time = 5
  755.                })
  756.            end
  757.        end
  758.    end
  759.  
  760.    local ka_button = getkabutton()
  761.    farm_tab:AddBind({
  762.        Name = "Kill Aura Keybind",
  763.        Default = Enum.KeyCode.R,
  764.        Hold = false,
  765.        Callback = function()
  766.            if ka_button then
  767.                firesignal(ka_button.MouseButton1Down)
  768.                firesignal(ka_button.MouseButton1Up)
  769.            else
  770.                ka_button = getkabutton()
  771.                if not ka_button then return end
  772.  
  773.                firesignal(ka_button.MouseButton1Down)
  774.                firesignal(ka_button.MouseButton1Up)
  775.            end
  776.        end
  777.    })
  778. end
  779.  
  780. do
  781.    local farm_tab2 = window:MakeTab({
  782.        Name = "Farm Tab (util)",
  783.        Icon = "",
  784.        PremiumOnly = false
  785.    })
  786.  
  787.    local getStats
  788.    local getUpgrade
  789.    local function getRarity(item)
  790.        local rarity = item:FindFirstChild("Rarity")
  791.        return rarity and rarity.Value
  792.    end
  793.  
  794.    for _, v in next, getgc() do
  795.        if typeof(v) == "function" then
  796.            local info = getinfo(v)
  797.            
  798.            if info.name == "getStats" then
  799.                getStats = v
  800.            end
  801.            
  802.            if info.name == "getUpgrade" then
  803.                getUpgrade = v
  804.            end
  805.        end    
  806.    end
  807.  
  808.    local data = Rs.Database.Items
  809.    --[[
  810.    formulas
  811.  
  812.    non legends: math.floor(base + (base * 0.04 * upgrade_count))
  813.    legends: math.floor(base + (base * 0.05 * upgrade_count))
  814.  
  815.    ]]
  816.    
  817.    local ui_module = game_module.Services.UI
  818.    local dismantler_module = require(ui_module.Dismantle)
  819.    local inv_utility = getupvalue(dismantler_module.Init, 4)
  820.  
  821.    local profiles = Rs.Profiles
  822.    local highest_damage = 0
  823.    local highest_defense = 0
  824.    local inventory = profiles[plr.Name].Inventory
  825.    local rf = Rs.Function
  826.    local event = Rs.Event
  827.  
  828.    local rates = setmetatable({Legendary = .05}, {__index = function() return .04 end})
  829.    local function AutoEquip()
  830.        if not settings.AutoEquip then return end
  831.        task.wait(1)
  832.  
  833.        local highest_weapon
  834.        local highest_armor
  835.  
  836.        for _, item in next, inventory:GetChildren() do
  837.            local itemdata = inv_utility.GetItemData(item)
  838.            local class = itemdata.Type
  839.  
  840.            if class ~= "Weapon" and class ~= "Clothing" then continue end
  841.            
  842.            for _, v2 in next, data:GetChildren() do
  843.                if v2.Name == item.Name then
  844.                    local stats = getStats(v2)
  845.                    local base
  846.                    for _, v3 in next, stats do
  847.                        if v3[1] == "Damage" or v3[1] == "Defense" then
  848.                            base = tonumber(v3[2])
  849.                            break
  850.                        end
  851.                    end
  852.                    
  853.                    local upgrades = getUpgrade(item)
  854.                    local rarity = getRarity(v2)
  855.                    local stat = math.floor(base + (base * rates[rarity] * upgrades))
  856.                    
  857.                    if class == "Weapon" then
  858.                        if stat > highest_damage then
  859.                            highest_damage = stat
  860.                            highest_weapon = item
  861.                        end
  862.  
  863.                    elseif class == "Clothing" then
  864.                        if stat > highest_defense then
  865.                            highest_defense = stat
  866.                            highest_armor = item
  867.                        end
  868.                    end
  869.                end
  870.            end
  871.        end
  872.        
  873.        highest_damage = 0
  874.        highest_defense = 0
  875.        
  876.        if highest_weapon then
  877.            rf:InvokeServer("Equipment", {"EquipWeapon", highest_weapon, "Right"})
  878.        end
  879.  
  880.        if highest_armor then
  881.            rf:InvokeServer("Equipment", {"Wear", highest_armor})
  882.        end
  883.    end
  884.  
  885.    inventory.ChildAdded:Connect(AutoEquip)
  886.    farm_tab2:AddToggle({
  887.        Name = "Auto Equip Best Weapon/Armor",
  888.        Default = false,
  889.        Callback = function(bool)
  890.            settings.AutoEquip = bool
  891.            AutoEquip()
  892.        end
  893.    })
  894.  
  895.    local dismantle = {}
  896.    local function AutoDismantle()
  897.        local shouldDismantle = false
  898.        for _, v in next, dismantle do
  899.            if v then
  900.                shouldDismantle = true
  901.                break
  902.            end
  903.        end
  904.  
  905.        if not shouldDismantle then return end
  906.  
  907.        task.wait(1)
  908.        for _, item in next, inventory:GetChildren() do
  909.            local itemdata = inv_utility.GetItemData(item)
  910.            local class = itemdata.Type
  911.  
  912.            if class ~= "Weapon" and class ~= "Clothing" then continue end
  913.  
  914.            for _, v2 in next, data:GetChildren() do
  915.                if v2.Name == item.Name then
  916.                    local rarity = getRarity(v2)
  917.                    
  918.                    if dismantle[rarity] then
  919.                        event:FireServer("Equipment", {"Dismantle", item})
  920.                    end
  921.                end
  922.            end
  923.        end
  924.    end
  925.  
  926.    local rarities = {"Common", "Uncommon", "Rare", "Legendary"}
  927.    local names = {"Commons", "Uncommons", "Rares", "Legendaries"}
  928.  
  929.    for i, v in next, names do
  930.        farm_tab2:AddToggle({
  931.            Name = "Auto Dismantle " .. v,
  932.            Default = false,
  933.            Callback = function(bool)
  934.                local rarity = rarities[i]
  935.                dismantle[rarity] = bool
  936.            end
  937.        })
  938.    end
  939.  
  940.    inventory.ChildAdded:Connect(AutoDismantle)
  941. end
  942.  
  943. do
  944.    local farm_tab3 = window:MakeTab({
  945.        Name = "Mob Exclusion",
  946.        Icon = "",
  947.        PremiumOnly = false
  948.    })
  949.  
  950.    for _, mob_name in next, mobs_on_floor[placeid] do
  951.        farm_tab3:AddToggle({
  952.            Name = mob_name,
  953.            Default = false,
  954.            Callback = function(bool)
  955.                local excludedMobs = settings.excludedMobs
  956.                excludedMobs[mob_name] = bool
  957.            end
  958.        })
  959.    end
  960. end
  961.  
  962. do
  963.    local teleports_tab = window:MakeTab({
  964.        Name = 'Teleports',
  965.        Icon = "",
  966.        PremiumOnly = false
  967.    })
  968.  
  969.    local function getTouchPart()
  970.        for _, v in next, workspace:GetDescendants() do
  971.            if v.Parent.Name == "TeleportSystem" and v.Name == "Part" then
  972.                return v
  973.            end
  974.        end
  975.    end
  976.  
  977.    local function makespecialtpbutton(name, pos) -- floors 3 and 11
  978.        teleports_tab:AddButton({
  979.            Name = name .. " | may have to press twice",
  980.            Callback = function()
  981.                local totouch = getTouchPart()
  982.                firetouchinterest(hrp, totouch, 0)
  983.                task.wait(.1)
  984.  
  985.                for _ = 1, 100 do
  986.                    hrp.CFrame = pos
  987.                    task.wait()
  988.                end
  989.  
  990.                firetouchinterest(hrp, totouch, 1)
  991.            end
  992.        })
  993.    end
  994.  
  995.    local function makeTPbutton(name, part)
  996.        teleports_tab:AddButton({
  997.            Name = name,
  998.            Callback = function()
  999.                firetouchinterest(hrp, part, 0)
  1000.                task.wait(.1)
  1001.                firetouchinterest(hrp, part, 1)
  1002.            end
  1003.        })
  1004.    end
  1005.    
  1006.    local floor = math.floor
  1007.    local function loop_workspace(entrance, boss, miniboss, shop)
  1008.        for _, v in next, workspace:GetChildren() do
  1009.            if v.Name == "TeleportSystem" then
  1010.                for _, v2 in next, v:GetChildren() do
  1011.                    local posX = floor(v2.Position.X)
  1012.                    local posY = floor(v2.Position.Y)
  1013.                    local posZ = floor(v2.Position.Z)
  1014.                    local pos = Vector3.new(posX, posY, posZ)
  1015.  
  1016.                    if pos == entrance then
  1017.                        makeTPbutton("Dungeon Entrance", v2)
  1018.                    end
  1019.  
  1020.                    if pos == boss then
  1021.                        makeTPbutton("Boss Room", v2)
  1022.                    end
  1023.  
  1024.                    if pos == miniboss then
  1025.                        makeTPbutton("Mini Boss", v2)
  1026.                    end
  1027.  
  1028.                    if pos == shop then -- floor 10
  1029.                        makeTPbutton("Shop", v2)
  1030.                    end
  1031.                end
  1032.            end
  1033.        end
  1034.    end
  1035.  
  1036.    if placeid == 548231754 then -- floor 2
  1037.        local dungeon_entrance = Vector3.new(-2185, 161, -2321)
  1038.        local boss = Vector3.new(-2943, 201, -9805)
  1039.        
  1040.        loop_workspace(dungeon_entrance, boss)
  1041.    end
  1042.    
  1043.    if placeid == 555980327 then -- floor 3
  1044.        local dungeon_entrance = Vector3.new(1179, 6737, 1675)
  1045.        local boss = CFrame.new(448.331146, 4279.3374, -385.050385)
  1046.  
  1047.        makespecialtpbutton("Boss Room", boss)
  1048.        loop_workspace(dungeon_entrance)
  1049.    end
  1050.    
  1051.    if placeid == 572487908 then -- floor 4
  1052.        local dungeon_entrance = Vector3.new(-1946, 5169, -1415)
  1053.        local boss = Vector3.new(-2319, 2280, -515)
  1054.        
  1055.        loop_workspace(dungeon_entrance, boss)
  1056.    end
  1057.    
  1058.    if placeid == 580239979 then -- floor 5
  1059.        local dungeon_entrance = Vector3.new(-1562, 4040, -868)
  1060.        local boss = Vector3.new(2189, 1308, -122)
  1061.        
  1062.        loop_workspace(dungeon_entrance, boss)
  1063.    end
  1064.    
  1065.    if placeid == 548878321 then -- floor 8
  1066.        local dungeon_entrance = Vector3.new(-6679, 7801, 10006)
  1067.        local boss = Vector3.new(1848, 4110, 7723)
  1068.        local miniboss = Vector3.new(-808, 3174, -941)
  1069.        
  1070.        loop_workspace(dungeon_entrance, boss, miniboss)
  1071.    end
  1072.    
  1073.    if placeid == 573267292 then -- floor 9
  1074.        local dungeon_entrance = Vector3.new(878, 3452, -11139)
  1075.        local boss = Vector3.new(12241, 461, -3656)
  1076.        local miniboss_gargoyle = Vector3.new(-256, 3077, -4605)
  1077.        local miniboss_poly = Vector3.new(1973, 2986, -4487)
  1078.        
  1079.        loop_workspace(dungeon_entrance, boss, miniboss_gargoyle)
  1080.        loop_workspace(nil, nil, miniboss_poly)
  1081.    end
  1082.    
  1083.    if placeid == 2659143505 then -- floor 10
  1084.        local miniboss = Vector3.new(-895, 467, 6505)
  1085.        local boss = Vector3.new(45, 1003, 25432)
  1086.        local dungeon_entrance = Vector3.new(-606, 697, 9989)
  1087.        local shop = Vector3.new(-252, 504, 6163)
  1088.        
  1089.        loop_workspace(dungeon_entrance, boss, miniboss, shop)
  1090.    end
  1091.    
  1092.    if placeid == 5287433115 then -- floor 11
  1093.        local DaRaKa = CFrame.new(4846.48242, 1639.76953, 2090.85107)
  1094.        local duality_reaper = CFrame.new(5899.98291, 852.757568, -4255.58643)
  1095.        local neon_chest = CFrame.new(4834.57959, 2543.39868, 5274.56055)
  1096.        local sauraus = CFrame.new(5208.86279, 2349.82617, 5985.12402)
  1097.  
  1098.        makespecialtpbutton("Duality Reaper", duality_reaper)
  1099.        makespecialtpbutton("Da, Ra, Ka", DaRaKa)
  1100.        makespecialtpbutton("Neon Chest", neon_chest)
  1101.        makespecialtpbutton("Boss Room", sauraus)
  1102.    end
  1103. end
  1104.  
  1105. do
  1106.    local Character_tab = window:MakeTab({
  1107.        Name = "Character",
  1108.        Icon = "",
  1109.        PremiumOnly = false
  1110.    })
  1111.    
  1112.    local profiles = Rs.Profiles
  1113.    local animSettings = profiles[plr.Name].AnimSettings
  1114.  
  1115.    local animations = Rs.Database.Animations
  1116.    local ANIMATIONS = {}
  1117.    local blacklisted_animations = {"Spear", "Misc", "Daggers", "SwordShield", "Dagger"}
  1118.    for _, v in next, animations:GetChildren() do
  1119.        if not table.find(blacklisted_animations, v.Name) then
  1120.            table.insert(ANIMATIONS, v.Name)
  1121.            
  1122.            if not animSettings:FindFirstChild(v.Name) then
  1123.                local string_value = Instance.new("StringValue")
  1124.                
  1125.                string_value.Name = v.Name
  1126.                string_value.Value = ""
  1127.                string_value.Parent = animSettings
  1128.            end
  1129.        end
  1130.    end
  1131.  
  1132.    Character_tab:AddDropdown({
  1133.        Name = "Weapon Animations",
  1134.        Default = settings.Animation,
  1135.        Options = ANIMATIONS,
  1136.        Callback = function(animation)
  1137.            settings.Weapon_Animation = animation
  1138.        end
  1139.    })
  1140.  
  1141.    local combat = require(game_module.Services.Combat)
  1142.    
  1143.    local hook; hook = hookfunc(combat.CalculateCombatStyle, function(bool, ...)
  1144.        if bool ~= nil and not bool then
  1145.            return hook(bool, ...)    
  1146.        end
  1147.        
  1148.        return settings.Weapon_Animation
  1149.    end)
  1150.  
  1151.    local invisibility = false
  1152.    local function goinvisible(new)
  1153.        if not invisibility then return end
  1154.        local old_root = new:WaitForChild("LowerTorso"):WaitForChild("Root")
  1155.        local new_root = old_root:Clone()
  1156.  
  1157.        new_root.Parent = old_root.Parent
  1158.        old_root:Destroy()
  1159.    end
  1160.  
  1161.    plr.CharacterAdded:Connect(goinvisible)
  1162.  
  1163.    Character_tab:AddToggle({
  1164.        Name = "Invisibility (Client Sided Character)",
  1165.        Default = false,
  1166.        Callback = function(bool)
  1167.            invisibility = bool
  1168.            goinvisible(char)
  1169.        end
  1170.    })
  1171.  
  1172.    local Event = Rs.Event
  1173.    local infSprint; infSprint = hookmetamethod(game, "__namecall", function(self, ...)
  1174.        local ncm = getnamecallmethod()
  1175.        
  1176.        if settings.InfSprint and ncm == "FireServer"  then
  1177.            if self == Event then
  1178.                local args = {...}
  1179.                if args[1] == "Actions" then
  1180.                    if args[2][2] == "Step" then
  1181.                        return
  1182.                    end
  1183.                end
  1184.            end
  1185.        end
  1186.  
  1187.        return infSprint(self, ...)
  1188.    end)
  1189.  
  1190.    Character_tab:AddToggle({
  1191.        Name = "Infinite Jump",
  1192.        Default = false,
  1193.        Callback = function(bool)
  1194.            settings.InfJump = bool
  1195.        end
  1196.    })
  1197.  
  1198.    UserInputS.InputBegan:Connect(function(key, processed)
  1199.        if processed then return end
  1200.        if not settings.InfJump then return end
  1201.        
  1202.        if key.KeyCode == Enum.KeyCode.Space then
  1203.            pcall(function() -- dont know if this can error // dont want to find out
  1204.                humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
  1205.            end)
  1206.        end
  1207.    end)
  1208.  
  1209.    Character_tab:AddToggle({
  1210.        Name = "Infinite Sprint",
  1211.        Default = false,
  1212.        Callback = function(bool)
  1213.            settings.InfSprint = bool
  1214.        end
  1215.    })
  1216.  
  1217.    local walkspeed = humanoid.WalkSpeed
  1218.    local game_ws = humanoid.WalkSpeed
  1219.    local index_WS; index_WS = hookmetamethod(game, "__index", function(self, i)
  1220.        if self == humanoid and i == "WalkSpeed" and not checkcaller() then
  1221.            return game_ws
  1222.        end
  1223.        
  1224.        return index_WS(self, i)
  1225.    end)
  1226.    
  1227.    local newindex_WS; newindex_WS = hookmetamethod(game, "__newindex", function(self, i, v)
  1228.        if self == humanoid and i == "WalkSpeed" and not checkcaller() then
  1229.            if settings.speed then
  1230.                v = walkspeed
  1231.            end
  1232.  
  1233.            game_ws = v
  1234.        end
  1235.        
  1236.        return newindex_WS(self, i, v)
  1237.    end)
  1238.  
  1239.    Character_tab:AddToggle({
  1240.        Name = "WalkSpeed Toggle",
  1241.        Default = false,
  1242.        Callback = function(bool)
  1243.            settings.speed = bool
  1244.            
  1245.            if bool then
  1246.                humanoid.WalkSpeed = walkspeed
  1247.            else
  1248.                humanoid.WalkSpeed = game_ws
  1249.            end
  1250.        end
  1251.    })
  1252.  
  1253.    Character_tab:AddSlider({
  1254.        Name = "WalkSpeed",
  1255.        Min = 0,
  1256.        Max = 50,
  1257.        Default = walkspeed,
  1258.        Color = Color3.new(255, 255, 255),
  1259.        Increment = 1,
  1260.        ValueName = "Speed",
  1261.        Callback = function(speed)
  1262.            walkspeed = speed
  1263.  
  1264.            if settings.speed then
  1265.                humanoid.WalkSpeed = speed
  1266.            end
  1267.        end
  1268.    })
  1269. end
  1270.  
  1271. do  
  1272.    local Smithing = window:MakeTab({
  1273.        Name = "Smithing",
  1274.        Icon = "",
  1275.        PremiumOnly = false
  1276.    })
  1277.  
  1278.    local ui_module = game_module.Services.UI
  1279.  
  1280.    local dismantler_module = require(ui_module.Dismantle)
  1281.  
  1282.    local inv_utility = getupvalue(dismantler_module.Init, 4)
  1283.  
  1284.    local event = Rs.Event
  1285.    local inventory = Rs.Profiles[plr.Name].Inventory
  1286.    local function Dismantle_Rarity(rarity)
  1287.        for _, item in next, inventory:GetChildren() do
  1288.            local data = inv_utility.GetItemData(item)
  1289.            
  1290.            if data.rarity == rarity then
  1291.                for _, v2 in next, data do
  1292.                    if v2 == "Weapon" or v2 == "Armor" then
  1293.                        event:FireServer("Equipment", {"Dismantle", item})
  1294.                        break
  1295.                    end
  1296.                end
  1297.            end
  1298.        end
  1299.    end
  1300.    
  1301.  
  1302.    
  1303.    local function create_confirm()
  1304.        local oldscreen = CoreGui:FindFirstChild("ScreenGui")
  1305.        local screen = oldscreen or Instance.new("ScreenGui", CoreGui)
  1306.        
  1307.        local popup = CoreGui.RobloxGui.PopupFrame
  1308.        local new = popup:Clone()
  1309.        
  1310.        local thread = coroutine.running()
  1311.        new.PopupAcceptButton.MouseButton1Click:Connect(function()
  1312.            new:Destroy()
  1313.            coroutine.resume(thread, true)
  1314.        end)
  1315.        
  1316.        new.PopupDeclineButton.MouseButton1Click:Connect(function()
  1317.            new:Destroy()
  1318.            coroutine.resume(thread, false)
  1319.        end)
  1320.        
  1321.        new.PopupText.Text = "Confirm Dismantle? (CANNOT BE UNDONE)"
  1322.        new.Parent = screen
  1323.        new.Visible = true
  1324.        
  1325.        return coroutine.yield()
  1326.    end
  1327.  
  1328.    local crystalForge_module = require(ui_module.CrystalForge)
  1329.    Smithing:AddButton({
  1330.        Name = "Open Crystal Forge",
  1331.        Callback = function()
  1332.            crystalForge_module.Open()
  1333.        end
  1334.    })
  1335.  
  1336.    local upgrade_module = require(ui_module.Upgrade)
  1337.    Smithing:AddButton({
  1338.        Name = "Open Upgrader",
  1339.        Callback = function()
  1340.            upgrade_module.Open()
  1341.        end
  1342.    })
  1343.    
  1344.    Smithing:AddButton({
  1345.        Name = "Open Dismantler",
  1346.        Callback = function()
  1347.            dismantler_module.Open()
  1348.        end
  1349.    })
  1350.  
  1351.    Smithing:AddButton({
  1352.        Name = "Dismantle All Commons",
  1353.        Callback = function()
  1354.            local confirm = create_confirm()
  1355.  
  1356.            if confirm then
  1357.                Dismantle_Rarity("Common")
  1358.            end
  1359.        end
  1360.    })
  1361.  
  1362.    Smithing:AddButton({
  1363.        Name = "Dismantle All Uncommons",
  1364.        Callback = function()
  1365.            local confirm = create_confirm()
  1366.  
  1367.            if confirm then
  1368.                Dismantle_Rarity("Uncommon")
  1369.            end
  1370.        end
  1371.    })
  1372.  
  1373.    Smithing:AddButton({
  1374.        Name = "Dismantle All Rares",
  1375.        Callback = function()
  1376.            local confirm = create_confirm()
  1377.  
  1378.            if confirm then
  1379.                Dismantle_Rarity("Rare")
  1380.            end
  1381.        end
  1382.    })
  1383.  
  1384.    Smithing:AddButton({
  1385.        Name = "Dismantle All Legendaries",
  1386.        Callback = function()
  1387.            local confirm = create_confirm()
  1388.  
  1389.            if confirm then
  1390.                Dismantle_Rarity("Legendary")
  1391.            end
  1392.        end
  1393.    })
  1394. end
  1395.  
  1396. do
  1397.    local Stats = window:MakeTab({
  1398.        Name = "Session Stats",
  1399.        Icon = "",
  1400.        PremiumOnly = false
  1401.    })
  1402.    
  1403.    local time_label = Stats:AddLabel("Elapsed Time")
  1404.    coroutine.wrap(function()
  1405.        local floor = math.floor
  1406.  
  1407.        while true do task.wait(1) -- this is the last time i rewrite this
  1408.            local seconds = time()
  1409.            local minutes = seconds / 60
  1410.            seconds = floor(seconds - (60 * minutes))
  1411.            
  1412.            local hours = minutes / 60
  1413.            minutes = floor(minutes - (60 * hours))
  1414.            
  1415.            local days = hours / 24
  1416.            hours = floor(hours - (24 * days))
  1417.  
  1418.            local o1 = days == 1 and "Day" or "Days"
  1419.            local o2 = hours == 1 and "Hour" or "Hours"
  1420.            local o3 = minutes == 1 and "Minute" or "Minutes"
  1421.            local o4 = seconds == 1 and "Second" or "Seconds"
  1422.  
  1423.            local displayed = ("%s %s | %s %s | %s %s | %s %s"):format(days, o1, hours, o2, minutes, o3, seconds, o4) -- wtf
  1424.            time_label:Set("Time Elapsed: " .. displayed)
  1425.        end
  1426.    end)()
  1427. end
  1428.  
  1429. do
  1430.    local function removeEffects(func_name)
  1431.        for _, v in next, getgc(true) do
  1432.            local old = typeof(v) == "table" and rawget(v, func_name)
  1433.    
  1434.            if old then
  1435.                v[func_name] = function(...)
  1436.                    if func_name == "Damage Text" then
  1437.                       if settings.RemoveDamageNumbers then return end
  1438.  
  1439.                    elseif func_name == "DeathExplosion" then
  1440.                        if settings.RemoveDeathEffects then return end
  1441.                    end
  1442.  
  1443.                    return old(...)
  1444.                end
  1445.            end
  1446.        end
  1447.    end
  1448.  
  1449.    removeEffects("Damage Text") -- remove X variables are still false, does nothing until toggled
  1450.    removeEffects("DeathExplosion")
  1451.    
  1452.    local Performance_tab = window:MakeTab({
  1453.        Name = "Perf Boosters",
  1454.        Icon = "",
  1455.        PremiumOnly = false
  1456.    })
  1457.  
  1458.    local hiteffects = workspace:FindFirstChild("HitEffects")
  1459.    Performance_tab:AddToggle({
  1460.        Name = "Remove Hit Effects",
  1461.        Default = false,
  1462.        Callback = function(bool)
  1463.            hiteffects = hiteffects or workspace:FindFirstChild("HitEffects")
  1464.            if not hiteffects then return end
  1465.  
  1466.            if bool then
  1467.                hiteffects.Parent = nil
  1468.            else
  1469.                hiteffects.Parent = workspace
  1470.            end
  1471.        end
  1472.    })
  1473.  
  1474.    Performance_tab:AddToggle({
  1475.        Name = "Remove Damage Numbers",
  1476.        Default = false,
  1477.        Callback = function(bool)
  1478.            settings.RemoveDamageNumbers = bool
  1479.        end
  1480.    })
  1481.  
  1482.    Performance_tab:AddToggle({
  1483.        Name = "Remove Death Effects",
  1484.        Default = false,
  1485.        Callback = function(bool)
  1486.            settings.RemoveDeathEffects = bool
  1487.        end
  1488.    })
  1489.  
  1490.    local tomute = false
  1491.    local sound_names = {"SwordHit", "Unsheath", "SwordSlash"}
  1492.    local sounds = {}
  1493.  
  1494.    for _, v in next, workspace:GetDescendants() do
  1495.        if table.find(sound_names, v.Name) then
  1496.            sounds[v] = v
  1497.        end
  1498.    end
  1499.  
  1500.    local function muteswings(descendant)
  1501.        if table.find(sound_names, descendant.Name) then
  1502.            sounds[descendant] = descendant
  1503.            descendant.Volume = tomute and 0 or .3
  1504.        end
  1505.    end
  1506.  
  1507.    workspace.DescendantAdded:Connect(muteswings)
  1508.    workspace.DescendantRemoving:Connect(function(descendant)
  1509.        sounds[descendant] = nil
  1510.    end)
  1511.  
  1512.    Performance_tab:AddToggle({
  1513.        Name = "Mute Swing Sounds",
  1514.        Default = false,
  1515.        Callback = function(bool)
  1516.            tomute = bool
  1517.            for _, v in next, sounds do
  1518.                v.Volume = tomute and 0 or .3
  1519.            end
  1520.        end
  1521.    })
  1522. end
  1523.  
  1524. do
  1525.    local Misc_tab = window:MakeTab({
  1526.        Name = "Misc",
  1527.        Icon = "",
  1528.        PremiumOnly = false
  1529.    })
  1530.    
  1531.    local players_names = {}
  1532.    
  1533.    for _, v in next, Players:GetPlayers() do
  1534.        table.insert(players_names, v.Name)
  1535.    end
  1536.    
  1537.    local inventory = require(game_module.Services.UI.Inventory)
  1538.    local inventory_viewer = Misc_tab:AddDropdown({
  1539.        Name = "Inventory Viewer (Open Inventory)",
  1540.        Default = plr.Name,
  1541.        Options = players_names,
  1542.        Callback = function(player)
  1543.            setupvalue(inventory.GetInventoryData, 1, Rs.Profiles[player]) -- trick the game into getting the inventory data of the selected player instead of your own data
  1544.        end
  1545.    })
  1546.  
  1547.    local function refresh_inventoryViewer_list(dp)
  1548.        local players_instances = Players:GetPlayers()
  1549.        local players_names = {}
  1550.        
  1551.        for _, v in next, players_instances do
  1552.            table.insert(players_names, v.Name)
  1553.        end
  1554.        
  1555.        dp:Refresh(players_names, true)
  1556.    end
  1557.    
  1558.    Players.PlayerAdded:Connect(function(player)
  1559.        repeat task.wait() until Rs.Profiles:FindFirstChild(player.Name) ~= nil
  1560.        
  1561.        refresh_inventoryViewer_list(inventory_viewer)
  1562.    end)
  1563.    
  1564.    Players.PlayerRemoving:Connect(function()
  1565.        refresh_inventoryViewer_list(inventory_viewer)
  1566.    end)
  1567.    
  1568.    local fps = getfpscap and getfpscap() or 60
  1569.    Misc_tab:AddSlider({
  1570.        Name = "Set FPS Cap (Requires executor FPS unlocker on)",
  1571.        Min = 0,
  1572.        Max = 500,
  1573.        Default = fps, -- synapse does not have getfpscap (bad0)
  1574.        Color = Color3.new(255, 255, 255),
  1575.        Increment = 1,
  1576.        ValueName = "FPS",
  1577.        Callback = function(v)
  1578.            setfpscap(v)
  1579.        end
  1580.    })
  1581.    
  1582.    Misc_tab:AddToggle({
  1583.        Name = "Infinite Zoom Distance",
  1584.        Default = false,
  1585.        Callback = function(bool)
  1586.            if bool then
  1587.                plr.CameraMaxZoomDistance = math.huge
  1588.            else
  1589.                plr.CameraMaxZoomDistance = 15
  1590.            end
  1591.        end
  1592.    })
  1593.    
  1594.    Misc_tab:AddBind({
  1595.        Name = "GUI Keybind",
  1596.        Default = Enum.KeyCode.RightShift,
  1597.        Hold = false,
  1598.        Callback = function()
  1599.            orion.Enabled = not orion.Enabled
  1600.        end
  1601.    })  
  1602. end
  1603.  
  1604. do
  1605.    local updates = window:MakeTab({
  1606.        Name = "Updates",
  1607.        Icon = "",
  1608.        PremiumOnly = false
  1609.    })
  1610.    
  1611.    updates:AddParagraph("8/9/22", "Added Autofarm Radius Slider")
  1612.    updates:AddParagraph("8/9/22", "further improved teleports on f11")
  1613.    updates:AddParagraph("8/4/22", "Fixed auto equip & auto dismantle")
  1614.    updates:AddParagraph("8/4/22", "session time shows the correct time now")
  1615.    updates:AddParagraph("8/4/22", "Added support for more exploits")
  1616.    updates:AddParagraph("8/3/22", "Added teleport support for floor 11 dungeon")
  1617.    updates:AddParagraph("8/2/22", "Added KillAura Keybind")
  1618.    updates:AddParagraph("7/30/22", "Added Infinite Jump (avoid game making u fall through map on teleport)")
  1619.    updates:AddParagraph("7/29/22", "Added Killaura & Autofarm support for floor 11 dungeon")
  1620.    updates:AddParagraph("7/9/22", "removed esp (crashes)")
  1621.    updates:AddParagraph("7/8/22", "Attack animation now plays after death")
  1622.    updates:AddParagraph("7/7/22", "Fixed ESP crash (i think)?")
  1623.    updates:AddParagraph("7/7/22", "Added player ESP (mob soon)")
  1624.    updates:AddParagraph("7/3/22", "killaura animations works for players now")
  1625.    updates:AddParagraph("7/3/22", "Killaura now looks 'legit' (plays attack animation)")
  1626.    updates:AddParagraph("7/3/22", "Mute Swings now mutes others swings")
  1627.    updates:AddParagraph("7/3/22", "Added Auto Dismantle")
  1628.    updates:AddParagraph("7/2/22", "Added Mob Exclusion to Autofarm")
  1629.    updates:AddParagraph("7/2/22", "Killaura now supports chests (mostly useless (lol))")
  1630.    updates:AddParagraph("7/1/22", "Added Auto Equip Best Weapon")
  1631.    updates:AddParagraph("7/1/22", "Added Tween Speed")
  1632.    updates:AddParagraph("7/1/22", "Added Performance Boosters")
  1633.    updates:AddParagraph("6/28/22", "Killaura now works for baal & grim")
  1634.    updates:AddParagraph("6/27/22", "Moved dismantle confirm to an external popup box")
  1635.    updates:AddParagraph("6/15/22", "Added Upgrade Equipped Weapons (armors later)")
  1636.    updates:AddParagraph("6/15/22", "Added a confirm to dismantle all (there is a bug when u dismantle an equipped item)")
  1637.    updates:AddParagraph("6/15/22", "Added dismantle all of a certain rarity")
  1638.    updates:AddParagraph("6/13/22", "Included Crystal Forge to the smithing tab")
  1639.    updates:AddParagraph("6/13/22", "Fixed farm only bosses making your velocity 0")
  1640.    updates:AddParagraph("6/13/22", "Fixed farm only bosses not working")
  1641.    updates:AddParagraph("6/13/22", "Fixed A bug where changing Y offset would activate autofarm")
  1642.    updates:AddParagraph("6/13/22", "Skills Now Work with Animations")
  1643.    updates:AddParagraph("6/13/22", "Fixed Attack Players not toggling off")
  1644.    updates:AddParagraph("6/13/22", "Removed a Useless Animation Feature")
  1645.    updates:AddParagraph("6/12/22", "Made Autofarm Tweening Smooth")
  1646.    updates:AddParagraph("6/12/22", "Fixed an Autofarm Bug (Teleport after death)")
  1647.    updates:AddParagraph("6/5/22", "Made All Floors show actual TP locations")
  1648.    updates:AddParagraph("6/4/22", "Made Some Floors show actual TP locations (wip)")
  1649.    updates:AddParagraph("6/3/22", "Autofarm Added (improving)")
  1650.    updates:AddParagraph("6/2/22", "M1s are stopped when Kill Aura is enabled")
  1651. end
  1652.  
  1653. do
  1654.    local credits = window:MakeTab({
  1655.        Name = "Credits",
  1656.        Icon = "",
  1657.        PremiumOnly = false
  1658.    })
  1659.  
  1660.    credits:AddParagraph("Credits", "Made by OneTaPuXd on v3rm | PM Bugs")
  1661.    if setclipboard then
  1662.        credits:AddButton({
  1663.            Name = "Copy v3rm url to clipboard",
  1664.            Callback = function()
  1665.                setclipboard("https://v3rmillion.net/member.php?action=profile&uid=1229592")
  1666.            end
  1667.        })
  1668.  
  1669.        credits:AddButton({
  1670.            Name = "copy v3rm thread to clipboard",
  1671.            Callback = function()
  1672.                setclipboard("https://v3rmillion.net/showthread.php?tid=1172798")
  1673.            end
  1674.        })
  1675.    else
  1676.        credits:AddParagraph("v3rm url", "https://v3rmillion.net/member.php?action=profile&uid=1229592")
  1677.    end
  1678.  
  1679.    local http = game:GetService("HttpService")
  1680.    local request = (syn and syn.request) or (fluxus and fluxus.request) or request
  1681.    credits:AddButton({
  1682.        Name = "Discord Server (Auto Prompt) join code: eWGZ8rYpxR",
  1683.        Callback = function()
  1684.            if typeof(request) ~= "function" then return end
  1685.  
  1686.            request({
  1687.                Url = "http://127.0.0.1:6463/rpc?v=1",
  1688.                Method = "POST",
  1689.                Headers = {
  1690.                    ["Content-Type"] = "application/json",
  1691.                    ["Origin"] = "https://discord.com"
  1692.                },
  1693.                Body = http:JSONEncode({
  1694.                    cmd = "INVITE_BROWSER",
  1695.                    args = {
  1696.                        code = "eWGZ8rYpxR"
  1697.                    },
  1698.                    nonce = http:GenerateGUID()
  1699.                })
  1700.            })
  1701.        end
  1702.    })
  1703. end
  1704.  
  1705. lib:Init()

Texbin is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.