-- [[ Rscripts Risk Notice ]] -- This script is not verified by rscripts.net. Deal with caution. -- -- Stay safe: -- • Never log in on unofficial Roblox sites or lookalike domains. -- • Real Roblox links use roblox.com (check the .com ending). -- • Treat fake Roblox login / "claim reward" pages as phishing. -- [[ End Rscripts Risk Notice ]] local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local UserInputService = game:GetService("UserInputService") local ContextActionService = game:GetService("ContextActionService") local player = Players.LocalPlayer local shared = ReplicatedStorage:WaitForChild("Shared") local gameConfig = require(shared.Config) local registry = require(shared.Abilities.Registry) local characterUtil = require(shared.Util.CharacterUtil) local dashController = require(shared.Client.DashController) local behaviors = shared.Abilities.Behaviors local environment = type(getgenv) == "function" and getgenv() or _G for _, name in ipairs({ "CombatControls", "CombatTapDash", "CombatHoldSpam", "M1DashInput", "M1DashProbe", "CombatDashProbe", }) do local previous = environment[name] if previous and type(previous.unload) == "function" then pcall(previous.unload) end end local settings = { m1Interval = 0.09, m1TapDuration = 0.70, abilityInterval = 0.55, abilityTapDuration = 0.05, abilityCooldown = 0.05, dashCooldown = 0.02, } local active = true local held = { m1 = false, e = false, r = false } local deadline = { m1 = 0, e = 0, r = 0 } local running = { m1 = false, e = false, r = false } local originalValues = {} local behaviorCache = {} local connections = {} local function setCooldown(container, key, value) if type(container) ~= "table" or type(container[key]) ~= "number" then return end local previous = originalValues[container] if not previous then previous = {} originalValues[container] = previous end if previous[key] == nil then previous[key] = container[key] end container[key] = math.min(container[key], value) end local function applyCooldowns() setCooldown(gameConfig.Dash, "Cooldown", settings.dashCooldown) local moveset = registry.GetMoveset(player:GetAttribute("Moveset")) if not moveset then return end setCooldown(moveset, "DashRefill", settings.dashCooldown) for _, ability in ipairs(moveset.Abilities) do setCooldown(ability.Config, "Cooldown", settings.abilityCooldown) setCooldown(ability.Config, "MinCooldown", settings.abilityCooldown) end end local function restoreCooldowns() for container, values in pairs(originalValues) do for key, value in pairs(values) do container[key] = value end end table.clear(originalValues) end local function canAct() if player:GetAttribute("InGame") ~= true then return false end local character, humanoid, root = characterUtil.GetParts(player) return character ~= nil and humanoid ~= nil and root ~= nil and humanoid.Health > 0 end local function getAbility(mode) local moveset = registry.GetMoveset(player:GetAttribute("Moveset")) if not moveset then return nil end if mode == "m1" then return moveset.Abilities[1] end return registry.AbilityForSlot(moveset, mode == "e" and 1 or 2) end local function activate(mode) if not canAct() then return end local ability = getAbility(mode) if not ability then return end local kind = ability.Config.Kind if mode == "m1" and kind ~= "Attack" then return end local behavior = behaviorCache[kind] if not behavior then local module = behaviors:FindFirstChild(kind) if not module then return end local success, loaded = pcall(require, module) if not success then return end behavior = loaded behaviorCache[kind] = behavior end pcall(function() behavior.new(ability):Activate() end) end local function repeatAction(mode) if running[mode] then return end running[mode] = true local interval = mode == "m1" and settings.m1Interval or settings.abilityInterval while active and (held[mode] or os.clock() < deadline[mode]) do activate(mode) task.wait(interval) end running[mode] = false end local function beginAction(mode) held[mode] = true local duration = mode == "m1" and settings.m1TapDuration or settings.abilityTapDuration deadline[mode] = math.max(deadline[mode], os.clock() + duration) if not running[mode] then task.spawn(repeatAction, mode) end end local function endAction(mode) held[mode] = false end local function unload() if not active then return end active = false for mode in pairs(held) do held[mode] = false deadline[mode] = 0 end ContextActionService:UnbindAction("CombatControlsDash") for _, connection in ipairs(connections) do connection:Disconnect() end restoreCooldowns() environment.CombatControls = nil end environment.CombatControls = { unload = unload } ContextActionService:BindActionAtPriority("CombatControlsDash", function(_, state) if UserInputService:GetFocusedTextBox() then return Enum.ContextActionResult.Pass end if active and state == Enum.UserInputState.Begin then pcall(dashController.TryDash) end return Enum.ContextActionResult.Sink end, false, 3000, gameConfig.Keybinds.Dash.Keyboard, gameConfig.Keybinds.Dash.Gamepad) connections[#connections + 1] = player:GetAttributeChangedSignal("Moveset"):Connect(applyCooldowns) connections[#connections + 1] = UserInputService.InputBegan:Connect(function(input, processed) if input.KeyCode == Enum.KeyCode.F11 then unload() return end if processed or UserInputService:GetFocusedTextBox() then return end if input.UserInputType == Enum.UserInputType.MouseButton1 then beginAction("m1") elseif input.KeyCode == Enum.KeyCode.E then beginAction("e") elseif input.KeyCode == Enum.KeyCode.R then beginAction("r") end end) connections[#connections + 1] = UserInputService.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then endAction("m1") elseif input.KeyCode == Enum.KeyCode.E then endAction("e") elseif input.KeyCode == Enum.KeyCode.R then endAction("r") end end) applyCooldowns()