Skip to main content

User

Provides user-based functions.

Functions​

FunctionDescription
SetClipboardSets the user's clipboard to the provided value.


User:SetClipboard(value)​

Sets the user's clipboard to the provided value. The exact behavior of this feature can be modified by the user.

Parameters​

ParameterTypeDescription
valuestringThe string to copy to the user's clipboard

Returns | boolean​

Indicates if setting the clipboard was immediately successful.

Usage​

script.lua
User:SetClipboard("Hello, clipboard!")