
Keyless

local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local CoreGui = game:GetService("CoreGui")
local LP = Players.LocalPlayer
local Heartbeat = RunService.Heartbeat
-- METHOD CACHE
local FindFirstChild = game.FindFirstChild
local WaitForChild = game.WaitForChild
local GetPlayers = Players.GetPlayers
local GetDescendants = ReplicatedStorage.GetDescendants
-- STATE
local enabled = false
local conn = nil
local remote = nil
local isRemoteEvent = true
local myRoot = nil
-- TARGET DATA (flat, no hash)
local tChars = {}
local tRoots = {}
local tCount = 0
local bestIdx = 0
-- PLAYER CACHE
local pCache = {}
local pCount = 0
-- CONSTANTS
local RANGE = 9999
local RANGE_SQ = RANGE * RANGE
-- FIND REMOTE (once)
do
local sys = FindFirstChild(ReplicatedStorage, "Systems")
if sys then
local act = FindFirstChild(sys, "ActionsSystem")
if act then
local net = FindFirstChild(act, "Network")
if net then
remote = FindFirstChild(net, "Attack")
end
end
end
if not remote then
for _, v in ipairs(GetDescendants(ReplicatedStorage)) do
if v.ClassName == "RemoteEvent" or v.ClassName == "RemoteFunction" then
local n = v.Name
if n:find("ttack") or n:find("amage") then
remote = v
break
end
end
end
end
if remote then
isRemoteEvent = remote.ClassName == "RemoteEvent"
end
end
-- CACHE PLAYERS
local function updateCache()
local plrs = GetPlayers(Players)
pCount = #plrs
for i = 1, pCount do
pCache[i] = plrs[i]
end
end
updateCache()
-- CHARACTER TRACKING
LP.CharacterAdded:Connect(function(char)
myRoot = WaitForChild(char, "HumanoidRootPart", 5)
updateCache()
end)
if LP.Character then
myRoot = FindFirstChild(LP.Character, "HumanoidRootPart")
end
-- INLINE MAIN LOOP - ZERO FUNCTION CALLS
conn = Heartbeat:Connect(function()
if not enabled then return end
if not myRoot then return end
if not remote then return end
-- RESET
tCount = 0
bestIdx = 0
-- CACHE POSITION
local myPos = myRoot.Position
local px, py, pz = myPos.X, myPos.Y, myPos.Z
local bestDist = 1e999
-- SCAN (inlined updateTargets)
for i = 1, pCount do
local plr = pCache[i]
if plr ~= LP then
local char = plr.Character
if char then
local root = FindFirstChild(char, "HumanoidRootPart")
if root then
local hum = FindFirstChild(char, "Humanoid")
if hum and hum.Health > 0 then
local pos = root.Position
local dx = pos.X - px
local dy = pos.Y - py
local dz = pos.Z - pz
local dist = dx*dx + dy*dy + dz*dz
if dist <= RANGE_SQ then
tCount = tCount + 1
tChars[tCount] = char
tRoots[tCount] = root
if dist < bestDist then
bestDist = dist
bestIdx = tCount
end
end
end
end
end
end
end
-- ATTACK (inlined, 3x fire)
if bestIdx > 0 then
local target = tChars[bestIdx]
if isRemoteEvent then
remote:FireServer(target, 1)
remote:FireServer(target, 1)
remote:FireServer(target, 1)
else
remote:InvokeServer(target, 1)
remote:InvokeServer(target, 1)
remote:InvokeServer(target, 1)
end
end
end)
-- GUI
local gui = Instance.new("ScreenGui")
gui.Name = "KA"
gui.ResetOnSpawn = false
gui.Parent = CoreGui
local frame = Instance.new("Frame")
frame.Size = UDim2.new(0, 120, 0, 80)
frame.Position = UDim2.new(0.85, 0, 0.65, 0)
frame.BackgroundColor3 = Color3.new(0.08, 0.08, 0.12)
frame.BorderSizePixel = 0
frame.Active = true
frame.Draggable = true
frame.Parent = gui
local btn = Instance.new("TextButton")
btn.Size = UDim2.new(0.8, 0, 0, 40)
btn.Position = UDim2.new(0.1, 0, 0.25, 0)
btn.BackgroundColor3 = Color3.new(0.78, 0.2, 0.2)
btn.BorderSizePixel = 0
btn.Font = Enum.Font.GothamBold
btn.Text = "OFF"
btn.TextColor3 = Color3.new(1, 1, 1)
btn.TextSize = 16
btn.Parent = frame
local GREEN = Color3.new(0.2, 0.78, 0.2)
local RED = Color3.new(0.78, 0.2, 0.2)
btn.Activated:Connect(function()
enabled = not enabled
btn.Text = enabled and "ON" or "OFF"
btn.BackgroundColor3 = enabled and GREEN or RED
if enabled then
updateCache()
else
tCount = 0
bestIdx = 0
end
end)
UserInputService.InputBegan:Connect(function(input, gp)
if not gp and input.KeyCode == Enum.KeyCode.K then
enabled = not enabled
btn.Text = enabled and "ON" or "OFF"
btn.BackgroundColor3 = enabled and GREEN or RED
if enabled then updateCache() end
end
end)
print("⚡ Instant Kill Aura v11 loaded - Press K")No comments yet for this script.