Environment

setrbxclipboard

Writes a required string to the Windows clipboard using Roblox Studio clipboard data format.

Syntax

setrbxclipboard(text: string)

Arguments

NameTypeDescription
textstringString written to the Roblox Studio clipboard data format.

Description

Writes a required string to the Windows clipboard using Roblox Studio clipboard data format. The function returns no status value, whether the clipboard write succeeds or fails.

Call it with 1 parameter(s): text. The argument table explains which values are required and which ones only refine the behavior.

It does not return data. Treat the call as an action and handle errors around the call site when needed.

Example

Write a string with Real's registered Roblox Studio clipboard format.

setrbxclipboard("Real clipboard data")