setclipboard Synchronous
Clipboard.setsetrbxclipboardsyn.write_clipboardtoclipboard
Replace the system clipboard text with the supplied string. Use it for a Copy action that exports a short result, generated text, or settings JSON. The copied value replaces the previous clipboard text.
Luau
setclipboard(text: string) -> ()Parameters
| Parameter | Type | Description |
|---|---|---|
text | string | Text to copy to the clipboard. |
Returns
()This function returns no values.
Example
Luau
setclipboard("Hello from Kawaii")