Prompt user to load/save file from plugin

As a developer, it’s difficult to write tools for Studio that import or export files without resorting to hacky workarounds like pasting the file contents from the clipboard into a script or third-party software users need to install on their computer to generate files. This severely decreases the usability of these tools, making it difficult for newer developers to use them.

Proposed Solution:

Method to open a file picker window which returns file source (or nil if user cancels), and another method to open a file save window which can be cancelled by the user. This will empower plugins to use the local file system, but prevent abuse by giving the user full control over what they provide or accept.

If Roblox is able to address this issue, plugins would become more accessible to the community and not rely on third-party apps in some cases. In the above two examples:

  • Simplifies paste file contents into script to a file picker window
  • Removes need to install third-party software as plugin can generate file in Lua and prompt user with a file save window

This functionality is currently used by the localization plugin, so it’s clear how useful a feature like this can be.

25 Likes

This definitely makes sense, given the existence of the PromptSaveSelection function. Support!

6 Likes

Here is another program that could be implemented as a Roblox plugin instead of requiring users to go off-site.

2 Likes

Another program that could be implemented as a Roblox plugin instead of requiring users to download a 3rd-party app off-site:

5 Likes