---
description: Here is an example of Aty Scripts - UI Kit's text ui system usage.
---

# Text UI

## Text UI Usage Guide

### **Triggering a Text UI**

To trigger a text ui, use the following function:

```lua
aty.openTextUi("E", "Vending", "Press to open the vending machine.", "green")
```

***

## **Text UI Parameters**

### **Key**

* `"E"`\
  The key of the text ui.\
  **Type**: `string`

### **Title**

* `"Vending"`\
  The title of the text ui.\
  **Type**: `string`

### **Description**

* `"Press to open the vending machine."`\
  Detailed instructions or information displayed within the text ui.\
  **Type**: `string`

### **Color**

* `"green"`\
  A color for the text ui that you think looks the best.\
  **Type**: `string`\
  **Colors**: `green`, `blue`, `black`, `red`

***

## Closing a Text UI

```lua
aty.closeTextUi()
```
