pasteblox

Uploading files

Open or drop a file, or import a whole folder at once.

Script too long to copy and paste? Load the file instead. One file goes straight into the editor. A whole folder of them becomes one script per file, with your folders made for you.

One file into the editor

On New paste (or when you edit a script), there are four ways to load a file. They all do the same thing.

HowWhat to do
Open fileClick the button at the top right of the code box and pick a file.
⌘O/Ctrl+OOpens the same file picker, from anywhere on the page.
Drop itDrag a file from your computer onto the page. Anywhere works, not just the code box.
Paste itCopy the file in Finder or Explorer, then press ⌘V/Ctrl+V on the page. You get the file's code, not its name.
A file dragged over the editor: Drop to load the file

Dragging a file over the editor. Let go anywhere on the page.

What happens next

  • The code replaces what's in the editor. Nothing is published yet.
  • The Title comes from the file name, if you haven't typed one: auto-farm.lua becomes auto farm, AutoFarmV2.lua becomes Auto Farm V2.
  • The Language follows the file: .lua picks Lua, .luau picks Luau. Anything else leaves it as it was.
  • A chip at the bottom of the editor says loaded auto-farm.lua · 18kb.
The loaded auto-farm.lua chip with an Undo button at the bottom of the editor
  1. 1Replaced some code by mistake? Click Undo on the chip. You get your old code, title and language back. It stays for 15 seconds, or until you start typing.
  2. 2The title came from the file name: auto-farm.lua → auto farm.
  3. 3The language switched to .lua to match the file.

On a phone

Tap Open file and pick the file from your Files app. On a phone every file can be picked (some phones grey out .luau otherwise). pasteblox checks it's a text file after you pick it.

Files that don't load

The file is read in your browser first. If something's wrong, a red note at the bottom of the editor says why, and nothing changes:

You seeWhyFix
that file is empty.There's no code in it.Pick the right file.
…, the limit is 512kb.Scripts can be up to 512 KB.Use the CLI for huge files, or split it up.
that's not a text file. scripts only.It's an image, a zip, an exe or another binary file.Open it and copy out the script.
that's a roblox place/model file..rbxm, .rbxmx, .rbxl and .rbxlx are places and models, not scripts.Open it in Studio and save the script itself.

Dropped more than one file on the editor? It only takes one. You'll see that's 5 files. with an Import all 5 button that sends them to bulk import. They go into the folder you picked in the editor.

Bulk import

Bulk import turns every file into its own script, each with its own page and loadstring. It can also copy your folder layout into folders. You need to be signed in.

  1. 1

    Open Import files

    In your dashboard, click Import files at the top. Or just drop files or a folder anywhere on the dashboard. While an import is running, dropping more shows an import is running / finish this one first, then drop these in. and nothing is added.

  2. 2

    Add your files

    Drop .lua files or a whole folder on the box, or click it to pick files. On a computer there's also Choose a folder. Files are read in your browser, and nothing is made until you hit import. See what an import takes.

  3. 3

    Check everything

    The Import files window: visibility, target folder, Keep folder structure and the files grouped by folder
    1. 1Visibility for all of them. It remembers what you used last time.
    2. 2The folder they go into. It starts as the folder you're looking at in the dashboard.
    3. 3Keep folder structure makes a folder for each folder you dropped. Folders with the same name are reused, not doubled.
    4. 4One group per folder, marked New if it will be made. Click a title to change it, or ✕ to leave a file out.
  4. 4

    Import

    Click Import 12 scripts. Two upload at a time and you can watch them go. Don't want to wait? Hide, keep going closes the window and the import keeps running. The dashboard button shows the progress, like importing 7/12.

  5. 5

    Done

    You get a list of the new scripts, each one linking to its page, and a line like 12 uploaded · 11 clean · 1 flagged. Every file is scanned right after it's made, and the done screen keeps checking for a few minutes: a row reads · scanning… until its result is in, and · 2 still scanning is added to the line while any are. If folders were made, Open folder takes you there.

How folders come across

  • The folder you drop is included, so dropping bedwars/ with esp/box.lua inside makes bedwars / esp.
  • Hidden folders like .git and node_modules are left out. So are other non-script files past the first 50, so a folder full of images doesn't bury your scripts.
  • Folders go 5 levels deep at most. Files deeper than that land in the deepest allowed folder, marked Deeper merged.
  • Turn off Keep folder structure to put every file straight into the folder you picked.

What an import takes

The import window with 106 files dropped: 100 checked, 4 unchecked to stay within one import, a README skipped as not a script file, and the Publish utilities when every scan is clean switch
  1. 1The size of this import, like 100 files · 5 kb of 10 mb · 4 unchecked · 2 skipped.
  2. 2Publish utilities when every scan is clean. See publishing the folder.
  3. 3Too many files for one import: the extra ones start unchecked, ready for the next batch.
  4. 4A file that won't be imported, crossed out with why.
WhatLimit
File types.lua, .luau and .txt only
What's insideHas to look like a Lua script. Obfuscated or minified code is fine. Notes, logs, JSON and HTML aren't.
One file512 KB
One import100 files and 10 MB
Per day300 files and 30 MB per account. It refills gradually over 24 hours, not all at once at midnight.

Dropped more than one import's worth? The list takes up to 200 files, but only what fits in one import is checked, with a note like 4 unchecked to stay within 100 files / 10 mb. they can go in a next batch. When the first import is done, Next batch (4) starts the rest. Checking more than fits says that's 104 files. one import takes up to 100, so uncheck some. Beyond 200, you'll see 12 more scripts didn't fit this list. import them in a next batch.

Skipped files

Some rows show up crossed out. They won't be imported:

LabelWhy
not a script fileNot .lua, .luau or .txt, like a README.md.
doesn't look like a lua scriptA .txt (or .lua) with notes, logs or data in it instead of code.
over 512kbToo big for one script.
not textA binary file, not a script.
emptyNo code in it.
roblox modelA place or model file.
same code as "esp"The exact same code is already in this import.

Publishing the folder

Importing into a folder at the top level, or making a new one with Keep folder structure? You can turn on Publish utilities when every scan is clean (with your folder's name). It's off by default. When the import is done, it waits for the scans and then makes the folder and its scripts public. The done screen says how it went:

  • publishing once the scans finish… while it waits.
  • published. the folder and its scripts are public now.
  • not published: 1 flagged. Anything flagged keeps the folder private. Move it out, then use Make public… in the folder's ⋯ menu.
  • not published yet: 2 still scanning. publish from the folder menu once they're done.

The folder's own rules still apply, so a flagged script that was already in it also keeps it private. The done screen then says why, like not published: 1 script was flagged by the risk scan. move it out first.

Pauses and errors

Imports have their own daily allowance (see what an import takes), separate from the 60 scripts an hour you can make in the editor. If you run out partway, the import stops and tells you when you can carry on, like you've imported 300 files today. the rest can go in tomorrow. the next one fits from 14:05. The files that didn't go in stay in the list for later.

If the server asks for a short break, the import waits by itself instead of failing: pacing to stay under the rate limit · next one in 42s. Leave it running and it finishes on its own.

If some files fail (say your wifi dropped), the reason shows on each one. Click Retry 2 failed on the done screen to try just those again.