On this page
Why Forja holds these scripts
Every file on Forja is read before buyers get it. Some code is the way backdoors get into Roblox games: it loads code from outside the file, hides what it does, or sends a buyer's data somewhere else. Forja can't check code like that, so a listing with it doesn't stay on sale.
It's often not your code. Free models, kits and old frameworks bring scripts like these with them, and a map can carry one in a tree or a light without anyone noticing.
The email and the banner on your listing's edit page name the file, the script and the line. Start there. People who already bought the listing keep their downloads while you fix it.
Find the line in Roblox Studio
Open your own copy
Open the file you uploaded in Roblox Studio (File, then Open from File). Save a spare copy first with Save to File As.
Search every script
Open Find All / Replace All (Ctrl+Shift+F on Windows, ⌘⇧F on Mac) and search for the word the notice names:
getfenv,require,loadstring,webhooksorInsertService.Jump to it
Double-click a result to open the script at that line. If a script isn't yours and the map or model works without it, deleting the whole script is the quickest fix.
getfenv or setfenv
getfenv and setfenv read or change a script's environment. Backdoors use them to reach code and objects without naming them, so nobody reading the script sees what runs.
- A script you don't need (an old "anti-lag", "fire" or "virus remover" script that came with a free model): delete it.
- Your own code: use the thing directly.
getfenv().scriptis justscript, andgetfenv(0).gameis justgame. - A framework that needs it: use a current version that doesn't, or leave it out of the file you sell.
require with an asset id
require(1234567890) loads a ModuleScript from the Roblox library by its number every time the game runs. Its owner can change that module whenever they like, and every game that loads it runs the new code. A require of a module inside the file, like require(script.Parent.Settings), is fine.
Bring the module into the file
Open View, then Command Bar, paste the line below with the module's number, and press Enter. The module appears in ServerScriptService.
Read it
Open the module and look through it. If it has its own
requireof a number,getfenvorloadstring, it's a backdoor: delete it and the line that loaded it.Point the script at it
A module loaded by its number is always named MainModule, so change
require(1234567890)torequire(game.ServerScriptService.MainModule). If you rename or move the module, use its new name and place.
game:GetObjects("rbxassetid://1234567890")[1].Parent = game.ServerScriptServiceThis only works for a module that's public on Roblox. If it isn't, or it's someone else's paid system, it can't go in a file you sell: leave that part out or write your own.
Scrambled (obfuscated) code
Code turned into a wall of random names and numbers can't be read, so Forja can't tell a buyer it's safe. Upload the readable code you wrote. Forja doesn't accept scrambled scripts, even your own.
Webhooks, loadstring, InsertService and the rest
Posts to a Discord webhook (
discord.com/api/webhooks)What to doDelete it. A game a buyer runs shouldn't send their data to your Discord.
Uses
loadstringorHttpGetto run text as codeWhat to doDelete it, and put the code it ran in the script itself if you need it.
Loads a model with
InsertService:LoadAssetand a numberWhat to doBring the model into the file the same way as a module (the command bar line above), and use it from there.
Runs a Roblox product's description as code
What to doDelete it. It's a hidden way to load outside code.
Reaches for the login cookie (
.ROBLOSECURITY)What to doDelete it. No game needs a player's login.
| The script… | What to do |
|---|---|
Posts to a Discord webhook (discord.com/api/webhooks) | Delete it. A game a buyer runs shouldn't send their data to your Discord. |
Uses loadstring or HttpGet to run text as code | Delete it, and put the code it ran in the script itself if you need it. |
Loads a model with InsertService:LoadAsset and a number | Bring the model into the file the same way as a module (the command bar line above), and use it from there. |
| Runs a Roblox product's description as code | Delete it. It's a hidden way to load outside code. |
Reaches for the login cookie (.ROBLOSECURITY) | Delete it. No game needs a player's login. |
Upload the fixed file
Save the file
In Studio, File, then Save to File As, as .rbxl or .rbxm like before.
Replace it on Forja
Open your listings, choose Edit on this one, remove the old file, upload the new one and press Save changes.
It's checked again right away
Forja reads the new file as you save. A clean file puts the listing back on the marketplace, with no one to wait for.
Not sure what's left in a file? The free file viewer shows every script in a .rbxl or .rbxm in your browser, and the backdoor scanner marks the risky lines.
Questions
Can someone at Forja clear my script instead?
The check decides by itself, the same way for every store, Forja's own included. Change the code and it passes.
Will buyers who already have it lose their download?
No. They keep it while the listing is off the marketplace, and the listing comes back as soon as a clean file is saved.
My map doesn't use any scripts. Why was it held?
Something in it does: a free model, a light or a tree often carries a script. Search for the word the notice names, or open the map in the file viewer to see every script in it.
Is every require a problem?
No. A require of a ModuleScript inside the file is normal. Only a require of a number loads code from outside.