
KeylessUniversal

-- LocalScript ضعيه في StarterPlayer > StarterPlayerScripts
-- هذا السكريبت بيشتغل على الـ Client فقط، يعني بيقتل الشخص محلياً (مش هيروح للسيرفر إلا لو في exploit)
-- لو عايز يشتغل على السيرفر، هتحتاج RemoteEvent بس ده للـ exploit أو لومك الخاص
local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")
local player = Players.LocalPlayer
local lastTouchedHumanoid = nil
local function setupCharacter(char)
local humanoid = char:WaitForChild("Humanoid")
lastTouchedHumanoid = nil
local connections = {}
local function onTouched(hit)
local hitHumanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
if hitHumanoid and hitHumanoid.Parent ~= char and Players:GetPlayerFromCharacter(hitHumanoid.Parent) then
lastTouchedHumanoid = hitHumanoid
end
end
-- ربط الـ Touched لكل جزء في الشخصية
for _, part in pairs(char:GetChildren()) do
if part:IsA("BasePart") then
local conn = part.Touched:Connect(onTouched)
table.insert(connections, conn)
end
end
-- لو إضاف جزء جديد (مثل accessories)
char.ChildAdded:Connect(function(child)
if child:IsA("BasePart") then
local conn = child.Touched:Connect(onTouched)
table.insert(connections, conn)
end
end)
-- تنظيف الاتصالات لما الشخصية تموت
humanoid.Died:Connect(function()
for _, conn in pairs(connections) do
conn:Disconnect()
end
end)
end
-- إعداد الشخصية الحالية
if player.Character then
setupCharacter(player.Character)
end
-- إعداد للشخصيات الجديدة (respawn)
player.CharacterAdded:Connect(setupCharacter)
-- الضغط على Z
UserInputService.InputBegan:Connect(function(input, gameProcessed)
if gameProcessed then return end
if input.KeyCode == Enum.KeyCode.Z then
if lastTouchedHumanoid then
lastTouchedHumanoid.Health = 0 -- قتل
-- أو بديل: lastTouchedHumanoid.Parent:BreakJoints() لو مش شغال
print("قتلت: " .. Players:GetNameFromUserIdAsync(lastTouchedHumanoid.Parent:FindFirstChild("HumanoidRootPart").Parent.UserId)) -- طباعة اسم الضحية
lastTouchedHumanoid = nil -- reset
else
print("مافيش حد ملموس!")
end
end
end)
print("السكريبت جاهز! اضغط Z وأنت لمس الشخص اللي عايز تقتله")



mobile version soon!
this is fake, does not actually kill, visual only
@MoondudeReal dude did u try it?
@Ayhamo yea
@MoondudeReal srry i am new at scripting