script.Parent.ClickDetector.MouseClick:Connect(function(player)
print("Клик по объекту!")
end)script.Parent.ClickDetector.MouseClick:Connect(function(player)
print(player.Name)
end)local button = script.Parent
button.ClickDetector.MouseClick:Connect(function(player)
print("Кнопка нажата")
end)local door = script.Parent
door.ClickDetector.MouseClick:Connect(function(player)
door.Transparency = 0.5
door.CanCollide = false
end)script.Parent.ClickDetector.MouseClick:Connect(function(player)
if player then
print("Это игрок:", player.Name)
end
end)