Lua · Variables · Storage and web
clipboard
Copy and paste text.
| Function | What it does |
|---|---|
clipboard.get() | The clipboard text. |
clipboard.set(text) | Copies text. |
#clipboard.get
clipboard.get()The clipboard text.
Returns
string
-
#clipboard.set
clipboard.set(text)Copies text.
Example
if menu.button("Copy stats") then clipboard.set(json.encode(stats)) end