Prison Life
5.6k Views
31 Executions

Auto Attack

Prison Life
1 year ago
Please login to perform these actions:

Auto Attack is a Prison Life script for Roblox, uploaded to ScriptBlox on Oct 10, 2025.

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Automatically attacks players around you within six studs

View Raw
--[[

    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


Comments

2
Log in to join the conversation. Login
LilJohn's profile picture
LilJohn1 year ago

doesn't work

1
squhz's profile picture
squhz9 months ago

@LilJohn is working.

1

Tags

More Prison Life scripts

See all
Prison Life
1.5M
7.2k
3 years ago
Key System
Prison Life
923.2k
1.5k
5 years ago
Key System
Prison Life
600.5k
2.4k
Bumped 1 year ago
Prison Life
6.1k
12.3k
Bumped 2 days ago
Prison Life
1.8k
1.8k
Approved 2 days ago
Key System
Prison Life
1.2k
1.4k
Approved 3 days ago
Prison Life
2.3k
4.7k
Approved 4 days ago