Сontent continues after AD

Script – Pixel Blade

Thank you for using our website
Your script:

				
					local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")

local localPlayer = Players.LocalPlayer
local character = localPlayer.Character or localPlayer.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")

local onHitRemote = ReplicatedStorage:WaitForChild("remotes"):WaitForChild("onHit")
local swingRemote = ReplicatedStorage:WaitForChild("remotes"):WaitForChild("swing")
local blockRemote = ReplicatedStorage:WaitForChild("remotes"):WaitForChild("block")

local auraEnabled = true
local auraRadius = 100

local function getNearbyEnemies(radius)
    local enemies = {}
    local rootPart = character:FindFirstChild("HumanoidRootPart")
    if not rootPart then return enemies end

    for _, obj in pairs(workspace:GetChildren()) do
        local humanoid = obj:FindFirstChild("Humanoid")
        local enemyRoot = obj:FindFirstChild("HumanoidRootPart")

        if humanoid and humanoid.Health > 0 and enemyRoot and obj ~= character then
            local dist = (rootPart.Position - enemyRoot.Position).Magnitude
            if dist <= radius then
                table.insert(enemies, {obj = obj, dist = dist})
            end
        end
    end

    table.sort(enemies, function(a, b) return a.dist < b.dist end)
    return enemies
end

spawn(function()
    local args = { true }
    while true do
        blockRemote:FireServer(unpack(args))
        wait(0.1)
    end
end)

spawn(function()
    while true do
        if auraEnabled then
            local enemies = getNearbyEnemies(auraRadius)
            if #enemies > 0 then
                swingRemote:FireServer()
                for _, enemyData in pairs(enemies) do
                    local humanoidTarget = enemyData.obj:FindFirstChild("Humanoid")
                    if humanoidTarget then
                        local args = {
                            humanoidTarget,
                            9999999999,
                            {},
                            0
                        }
                        onHitRemote:FireServer(unpack(args))
                    end
                end
            end
            wait(0.3)
        else
            wait(0.1)
        end
    end
end)

spawn(function()
    while true do
        if character:FindFirstChild("SpeedValue") then
            character.SpeedValue.Value = 16
        end
        wait(0.1)
    end
end)

RunService.Heartbeat:Connect(function()
    if humanoid then
        humanoid.WalkSpeed = 21
    end
end)
				
			

if the script does not work, try other scripts on our website