Make StudioService:CopyToClipboard() PluginSecurity

As a Roblox developer, it is currently impossible to make plugins that copy strings to the user’s clipboard. To make copy-able text, we have to show a TextBox, focus it, select the text, and then ask the user to copy it themselves.

If Roblox is able to address this issue, it would improve my development experience because I could make plugins that copy text to the clipboard for pasting elsewhere, such as asset IDs that can be pasted in the Properties widget, or other types of output strings like code snippets that could be pasted into scripts.


In the meantime, a workaround is making a readonly textbox. The text can be selected and manually copied by the user


Support - I currently have to use read-only textboxes as a lackluster compromise in my own plugins:


Being able to click to copy would make the process frictionless.


As long as it only works while the Studio window is focused, and/or notifies of the fact something got copied to my clipboard, I’d be okay with that. I don’t want plugins silently putting garbage / inappropriate text / security-invasive scripts in my clipboard that I might accidentally end up running somewhere in a chat / console while working on Roblox stuff.


This feature should be enabled and work similarly to android or apple applications where the user must accept the permission first on a plugin-by-plugin basis. Besides that, this feature would make a great addition to studio plugins.



If security is such a big concern, there are two things I suggest

  • PluginPermission - require the plugin permission to save contents to the clipboard
  • A prompt notifying the user that Plugin X wrote to the clipboard. This has proven to be useful on iOS

Also, this API would need to be more fleshed out besides just being text to support other MIME types