Skip to main content
Version: Current

Clipboard Actions

  • os.setClipboard(text: string): SetClipboardAction

    Copies the given text to the player's clipboard. On Chrome and Firefox, this will act like a Ctrl+C/Cmd+C. On Safari and all iOS browsers this will open a popup which prompts the player to copy the text.

    The first parameter is a string and is the text that should be copied to the player's clipboard.

    Examples
    Copy "hello" to the player's clipboard.
    os.setClipboard("hello");