local trap = script.Parent
trap.Touched:Connect(function(hit)
local character = hit.Parent
local humanoid = character:FindFirstChild("Humanoid")
if humanoid then
humanoid.Health = 0
end
end)local trap = script.Parent
trap.Touched:Connect(function(hit)
local humanoid = hit.Parent:FindFirstChild("Humanoid")
if humanoid then
humanoid:TakeDamage(20)
end
end)local part = script.Parent
part.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
wait(0.5)
part.Transparency = 1
part.CanCollide = false
wait(3)
part.Transparency = 0
part.CanCollide = true
end
end)local part = script.Parent
while true do
part.Position = part.Position + Vector3.new(0, 0, 10)
wait(1)
part.Position = part.Position - Vector3.new(0, 0, 10)
wait(1)
endlocal part = script.Parent
part.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
part.Color = Color3.fromRGB(255, 255, 0) -- предупреждение
wait(1)
local humanoid = hit.Parent:FindFirstChild("Humanoid")
if humanoid then
humanoid.Health = 0
end
end
end)