Auto Attack
Key Required

Auto Attack

Prison Lifestavstav 5.6K views 24 executesUpdated Oct 10, 2025
3.3/ 5(3 votes)
2167% Positive
Lua Script•44 lines (1035 chars)
--[[

    Auto Attack (Killaura)
    Kills the closest player towards you
    -- [ stav.lua ] --

]]

shared.Aura = true

local cloneref = cloneref or function(obj)
    return obj
end
local playersService = cloneref(game:GetService('Players'))
local replicatedStorage = cloneref(game:GetService('ReplicatedStorage'))
local lplr = playersService.LocalPlayer

local function getClosestPlayer()
    local closestdist, closestplr = math.huge, nil
    for i,v in playersService:GetPlayers() do
        if v == lplr then continue end

        pcall(function()
            local dist = lplr:DistanceFromCharacter(v.Character.PrimaryPart.Position)
            if dist < 6 and dist < closestdist then
                closestdist = dist
                closestplr = v
            end
        end)
    end

    return closestplr
end

task.spawn(function()
    repeat
        local plr = getClosestPlayer()
        if plr then
            replicatedStorage.meleeEvent:FireServer(plr)
        end

        task.wait()
    until not shared.Aura
end)

Features & Information

Automatically attacks players around you within six studs
#prison#prison life#op

Community Comments (2)

LilJohnLilJohnOct 10, 2025

doesn't work

Replying to @LilJohn
squhzsquhzJan 12, 2026

@LilJohn is working.

More Scripts for Prison Life