local player = game.Players.LocalPlayer
local character = player.Character
local humanoid = character:FindFirstChild("Humanoid")
humanoid.Health = 0local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
humanoid.Health = 0local player = game.Players.LocalPlayer
local gui = player:WaitForChild("PlayerGui")
local menu = gui:WaitForChild("MainMenu")local npc = workspace:WaitForChild("NPC")
local head = npc:WaitForChild("Head")local humanoid = character:FindFirstChild("Humanoid")
if humanoid then
humanoid.Health = 0
endlocal tool = player.Backpack:WaitForChild("Sword", 5)
if tool then
print("Меч найден!")
else
warn("Меч не появился в течение 5 секунд.")
end