What's new
Heapleak - Scripthub

Get the most out of HeapLeak by creating a free account! Once signed in, you’ll gain full access to restricted content, be able to share your own scripts, and participate in our member-only discussions.

Auto Attack (Killaura)

Version / Update: v1.0.0
Download / Script Link
--[[

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)
[ View More ]
bd566ad9-fe9c-46a9-9145-429c05b05c33.webp


This works for the new update so have fun with it :)Automatically attack players around you.
 
Works on mobile
  1. Yes
Back
Top