
Keyless

local sz = 100
local hp = {"Head", "UpperTorso", "LowerTorso", "LeftUpperArm", "RightUpperArm", "LeftLowerArm", "RightLowerArm", "LeftUpperLeg", "RightUpperLeg", "LeftLowerLeg", "RightLowerLeg", "RightHand", "LeftHand", "RightFoot", "LeftFoot"}
local ch = hp[1]
local he = true
local pl = game:GetService("Players")
local rs = game:GetService("RunService")
local lp = pl.LocalPlayer
local fc = Drawing.new("Circle")
local vs = workspace.CurrentCamera.ViewportSize
fc.Position = Vector2.new(vs.X / 2, vs.Y / 2)
fc.Visible = true
fc.Color = Color3.fromRGB(255, 255, 255)
fc.Radius = sz
fc.Transparency = 1
fc.Filled = false
fc.NumSides = 64
task.spawn(function()
while task.wait(0.1) do
local ra = math.random(1, #hp)
ch = hp[ra]
end
end)
rs.PreRender:Connect(function()
local vp = workspace.CurrentCamera.ViewportSize
fc.Position = Vector2.new(vp.X / 2, vp.Y / 2)
end)
local hl = nil
local rt = 0
local function f1(c1)
if not he then return nil end
local h1 = Instance.new("Highlight")
h1.Parent = c1
h1.Adornee = c1
h1.FillTransparency = 0.5
h1.OutlineTransparency = 0
h1.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop
return h1
end
local function f2(h2, t2)
if not h2 or not h2.Parent then return end
local r = math.sin(t2 * 2) * 0.5 + 0.5
local g = math.sin(t2 * 2 + 2) * 0.5 + 0.5
local b = math.sin(t2 * 2 + 4) * 0.5 + 0.5
h2.OutlineColor = Color3.new(r, g, b)
h2.FillColor = Color3.new(r * 0.5, g * 0.5, b * 0.5)
end
local function f3()
if hl then
hl:Destroy()
hl = nil
end
end
local function f4(t4)
local c4 = workspace.CurrentCamera
local cr = lp.Character
if not cr then return false end
local or4 = c4.CFrame.Position
local di4 = (t4.Position - or4).Unit * (t4.Position - or4).Magnitude
local rp4 = RaycastParams.new()
rp4.FilterType = Enum.RaycastFilterType.Blacklist
rp4.FilterDescendantsInstances = {cr, t4.Parent}
rp4.IgnoreWater = true
local rr4 = workspace:Raycast(or4, di4, rp4)
if not rr4 then return true end
if rr4.Instance:IsDescendantOf(t4.Parent) then return true end
return false
end
local function f5(c5)
local at = c5:GetAttributes()
local h5 = at.Hostile
local tr = at.Trespassing
if h5 == true or tr == true then return true end
if tonumber(h5) and tonumber(h5) ~= 0 then return true end
if tostring(h5) == "true" or tostring(tr) == "true" then return true end
if c5:FindFirstChildOfClass("ForceField") then return true end
if c5:FindFirstChild("Hostile") then return true end
return false
end
local function f6(p6, f6_v)
f6_v = f6_v or math.huge
local cp6 = nil
local cc6 = nil
local cd6 = f6_v
local ce6 = Vector2.new(workspace.CurrentCamera.ViewportSize.X / 2, workspace.CurrentCamera.ViewportSize.Y / 2)
for _, p_in in pl:GetPlayers() do
if p_in == lp then continue end
if p_in.Team == lp.Team then continue end
local cr6 = p_in.Character
if not cr6 then continue end
local hu6 = cr6:FindFirstChildOfClass("Humanoid")
if not hu6 or hu6.Health <= 0 then continue end
local pt6 = cr6:FindFirstChild(p6)
if not pt6 then
for _, nm in ipairs(hp) do
local fd = cr6:FindFirstChild(nm)
if fd then pt6 = fd break end
end
end
if not pt6 then pt6 = cr6:FindFirstChild("HumanoidRootPart") end
if not pt6 then continue end
local is6 = false
if p_in.Team and tostring(p_in.Team) == "Criminals" then is6 = true end
if f5(cr6) then is6 = true end
if is6 then
local sp6 = workspace.CurrentCamera:WorldToViewportPoint(pt6.Position)
if sp6.Z <= 0 then continue end
if not f4(pt6) then continue end
local sd6 = (Vector2.new(sp6.X, sp6.Y) - ce6).Magnitude
if sd6 < cd6 then
cp6 = p_in
cc6 = pt6.Position
cd6 = sd6
end
end
end
return cp6, cc6
end
rs.RenderStepped:Connect(function(dt)
rt = rt + dt
local tp7, ts7 = f6(ch, sz)
if tp7 and tp7.Character then
fc.Color = Color3.fromRGB(255, 255, 0)
if not hl or not hl.Parent or hl.Adornee ~= tp7.Character then
f3()
hl = f1(tp7.Character)
end
if hl then
f2(hl, rt)
end
else
fc.Color = Color3.fromRGB(255, 255, 255)
f3()
end
end)
local f8 = function(fu8)
return function(...)
return fu8(...)
end
end
local ca = filtergc("function", {Name = "castRay"}, true)
local ol
ol = hookfunction(ca, f8(function(...)
local cp9, cc9 = f6(ch, sz)
if cp9 and cc9 then
local pt9 = cp9.Character:FindFirstChild(ch) or cp9.Character:FindFirstChild("HumanoidRootPart")
return pt9, cc9
end
return ol(...)
end))
solid
add dead check
@kaiserdegurechaff done