event:Connect(function()
-- код
end)script.Parent.Touched:Connect(function(hit)
print("Объект коснулся!")
end)local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(player)
print(player.Name .. " зашёл")
end)script.Parent.MouseButton1Click:Connect(function()
print("Кнопка нажата")
end)script.Parent.Touched:Connect(function(hit)
print(hit.Name)
end)event:Connect(function()
print("OK")
end)event:Connect(print("Ошибка"))local connection
connection = event:Connect(function()
print("Работает")
connection:Disconnect()
end)