Keyless
Key Required
Kill all open source
Lua Script•77 lines (2682 chars)
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local RunService = game:GetService("RunService")
local TweenService = game:GetService("TweenService")
local Workspace = game:GetService("Workspace")
local function Kill(Tool, Target)
local Event = Tool:FindFirstChild("RemoteEvent")
if not Event then return end
local LocalCharacter = LocalPlayer.Character
if not LocalCharacter then return end
local LocalRoot = LocalCharacter:FindFirstChild("HumanoidRootPart")
local TargetRoot = Target:FindFirstChild("HumanoidRootPart")
if not LocalRoot or not TargetRoot then return end
local StartPos = LocalRoot.Position
local Direction = (TargetRoot.Position - StartPos).Unit
local Magnitude = (TargetRoot.Position - StartPos).Magnitude
local RayParams = RaycastParams.new()
RayParams.FilterType = Enum.RaycastFilterType.Exclude
RayParams.FilterDescendantsInstances = {Workspace.Terrain}
local Raycast = Workspace:Raycast(StartPos, Direction * Magnitude, RayParams)
local EndPos = if Raycast then Raycast.Position else StartPos + Direction * Magnitude
local hitCFrame = CFrame.new(StartPos, EndPos) * CFrame.Angles(0, math.rad(90), 0) * CFrame.new(Magnitude / 2, 0, 0)
Event:FireServer(
Target:FindFirstChild("Humanoid"),
80,
{
Magnitude,
hitCFrame
}
)
end
local function HasTool(Player)
if Player.Backpack:FindFirstChildOfClass("Tool") then
return true
end
local character = Player.Character
if character and character:FindFirstChildOfClass("Tool") then
return true
end
return false
end
local function GetTarget()
for _, Player in pairs(Players:GetPlayers()) do
if Player == LocalPlayer then continue end
if Player.Team == LocalPlayer.Team then continue end
local TargetCharacter = Player.Character
if not TargetCharacter then continue end
local Humanoid = TargetCharacter:FindFirstChild("Humanoid")
if not Humanoid or Humanoid.Health <= 0 then continue end
if not HasTool(Player) then continue end
return TargetCharacter
end
return nil
end
RunService.RenderStepped:Connect(function(deltaTime)
local Character = LocalPlayer.Character
if not Character then return end
local HumanoidRootPart = Character:FindFirstChild("HumanoidRootPart")
if not HumanoidRootPart then return end
local Tool = Character:FindFirstChildOfClass("Tool")
if not Tool then return end
local Target = GetTarget()
if Target then
Kill(Tool, Target)
end
end)Features & Information
Kill all script open source
Community Comments (0)
No comments yet for this script.

