getclipboard
Reads the clipboard.
Syntax
getclipboard() -> string
Parameters
This function takes no parameters.
Returns
| Type | Description |
|---|---|
string | The returned string. |
Description
getclipboard is part of the Input library. Input helpers either read the current OS input state or synthesize OS-level events. Some game interactions also require the Roblox window to be focused.
The call is read-only: it resolves the current value when invoked and does not change the underlying state.
Example
print(getclipboard())
Notes
- Synthetic input may be ignored by games that validate input origins.