trapspoofer
by TrapstarKS
README.md
<p align="center">
<img src="./src-tauri/icons/128x128.png" width="128" height="128" alt="TrapSpoofer">
</p>
<h1 align="center">TrapSpoofer</h1>
<p align="center">
Desktop tool for spoofing (re-uploading and replacing) Roblox assets.
<br>
Scan, preview, re-upload and swap animations, sounds, images and meshes across an entire place — no instance-by-instance editing.
</p>
<p align="center">
<kbd>Animations</kbd>
<kbd>Sounds</kbd>
<kbd>Images</kbd>
<kbd>Meshes</kbd>
<kbd>.rbxl / .rbxm files</kbd>
<kbd>MCP (AI)</kbd>
</p>
<p align="center">
<sub>Tauri 2 · Rust · React 19 · Luau</sub>
</p>
<p align="center">
<a href="https://gitlab.com/NotTrap/TrapSpoofer/-/releases/permalink/latest"><strong>Download</strong></a>
·
<a href="https://gitlab.com/NotTrap/TrapSpoofer/-/issues/new">Report a bug</a>
</p>
<br>
---
> **Disclaimer.** TrapSpoofer is a tool for working with Roblox assets. Only use it with content you have the right to use. You are responsible for complying with the Roblox Terms of Use and third-party rights.
TrapSpoofer is a heavily reworked fork of [ISpooferMotion V2](https://github.com/ISpooferMotion/ISpooferMotion-V2), focused on three things: a **simple, guided interface**, a **file mode** that works without Studio open, and **AI integration through MCP**.
---
## What it does
The app connects to Roblox Studio through a companion Luau plugin. Choose the target window in the Studio status menu, including when several windows have the same Place ID. Scans, progress and replacements stay attached to that window. The plugin works in the background; its panel opens only when you click its toolbar button.
<table>
<tr>
<td width="25%" valign="top">
<strong>Guided flow</strong><br><br>
<sub>One clear path: Source → Review → Upload → Apply. No hidden menus.</sub>
</td>
<td width="25%" valign="top">
<strong>File mode</strong><br><br>
<sub>Open a <code>.rbxl</code>/<code>.rbxlx</code>/<code>.rbxm</code>/<code>.rbxmx</code>, spoof it and save a new copy — Studio doesn't need to be open.</sub>
</td>
<td width="25%" valign="top">
<strong>MCP server</strong><br><br>
<sub>Let AI assistants (Claude Code, Claude Desktop, Cursor) scan, spoof and apply for you.</sub>
</td>
<td width="25%" valign="top">
<strong>Accounts & groups</strong><br><br>
<sub>Manage multiple Roblox accounts and Open Cloud keys, with credentials stored by the operating system.</sub>
</td>
</tr>
</table>
Also included: ownership detection (skips assets you already own), pause / resume / retry of failed uploads, spoof history, auto-updates, English and Portuguese (BR) UI, and zero telemetry.
---
## Install
Grab the latest version from the [releases page](https://gitlab.com/NotTrap/TrapSpoofer/-/releases/permalink/latest).
| Platform | Package |
| --------------------- | --------------------------------- |
| Windows | `TrapSpoofer_x.x.x_x64-setup.exe` |
| macOS (Apple Silicon) | `TrapSpoofer_x.x.x_aarch64.dmg` |
The Roblox Studio plugin (`TrapSpoofer.rbxmx`) ships with every release. The app installs and keeps it in sync in your local Studio plugin folders automatically when it starts.
> [!NOTE]
> Windows Defender and other antivirus software may flag unsigned builds. TrapSpoofer has no commercial code-signing certificate. You can verify it by building from source.
---
## Quick start
1. **Accounts** — the app can automatically import the accounts signed in to Roblox Studio on this computer. Each session is validated before it becomes a profile. Uploads can use this session, including for a selected group where the account has asset creation permission. An Open Cloud API key remains optional; when provided, the app uses that key for supported uploads.
2. **Source** — select a connected Studio window and scan it, open a `.rbxl`/`.rbxm` file, or paste IDs.
3. **Review** — pick the assets to spoof (assets you already own are flagged).
4. **Upload** — hit _Start spoof_. Each asset is downloaded and re-uploaded.
5. **Apply** — the new IDs are pushed into Studio (or into a new file, in file mode). Save your place.
**Studio accounts:** Automatic connection is enabled in Settings → General. The app checks Studio's saved sessions on startup, imports valid accounts without duplicates, and signs in with the current Studio account when no valid profile is already selected. An existing profile and its upload group stay selected. Accounts → Import Studio accounts repeats detection after adding or reconnecting an account in Studio. Expired or rejected sessions are skipped, and cookies are saved in the system credential store rather than displayed in the interface. Manual cookie entry remains available.
Asset owners are cached on disk for seven days, up to 50,000 entries. Successful uploads immediately add the new asset's creator to the cache. Repeated runs reuse that information, while failed owner lookups remain eligible for retry. Clear it through the existing cache controls in Settings.
**Optional API keys:** Personal and group uploads can use the validated Roblox session. In Accounts or the Send step, **Use Roblox session, even with saved keys** keeps the profile's keys saved while excluding them from uploads. With this option off, a group upload uses the saved group key, then the personal key if there is no group key, then the session if neither key is available. Personal uploads never use the group key. The authentication notice shows the exact method selected and the required creator permissions. A rejected key can be replaced, cleared, or left saved while using session mode.
API keys do not guarantee shorter upload times. Both paths are subject to Roblox request limits and asset processing. Rate-limit notices report the actual authentication method and retry wait; the app does not invent a speed penalty for publishing without a key.
**Native animation clips:** Settings → Upload behavior lets you update the Animation ID normally, replace the Animation with its editable KeyframeSequence/CurveAnimation, or add that native clip as its parent while retaining the Animation. The Studio plugin downloads the original clip through AnimationClipProvider, preserves its keyframes/curves and playback metadata, and leaves the original instance intact if loading fails. The clip format is preserved, not converted. Normal ID replacement is the default. Game code that expects an Animation at the original path must be adapted when using either native clip mode. File mode continues to update IDs only.
**Updates:** Settings → General → Updates controls automatic checking and downloading. The app checks on startup and every six hours, with retries after failures. A downloaded update waits for you to choose **Install and restart**; installation is blocked while scans, uploads or replacements are active. Update the bundled plugin and reopen Studio when moving to a release with the new window-selection protocol.
---
## AI integration (MCP)
TrapSpoofer runs a local [MCP](https://modelcontextprotocol.io) server so an AI assistant can drive the app: `get_status`, `scan_studio`, `scan_file`, `list_assets`, `spoof_assets`, `get_job`, `push_to_studio`, `replace_ids`, `write_spoofed_file`, and more. The **AI / MCP** tab in the app shows the URL, status and copy-ready config snippets.
- **Claude Code:** `claude mcp add --transport http trapspoofer http://127.0.0.1:14380/mcp`
- **Claude Desktop / Cursor (stdio):**
```json
{
"mcpServers": {
"trapspoofer": { "command": "C:/path/to/TrapSpoofer.exe", "args": ["--mcp"] }
}
}
```
The server only accepts local connections and can be turned off in Settings.
### Transporte Roblox → Blender (3.5.0)
`download_assets` baixa os arquivos originais sem publicá-los. `export_scene_bundle` captura hierarquia, transforms, materiais e referências de uma sessão explÃcita do Studio, com manifesto JSON e relatório de pendências. Atualize o plugin antes de exportar. A versão 3.5.0 fornece os arquivos de transporte; não inclui importador para Blender.
Consulte o [contrato e os exemplos em português](docs/roblox-blender-transport.md), incluindo cache, cancelamento, unidades, nomes duplicados e limitações de CSG/Terrain.
---
## Development
### Requirements
| Requirement | Version |
| ------------- | -------------- |
| Rust | Current stable |
| Bun | 1.x or newer |
| Node.js | 20 or newer |
| Tauri | 2.x |
| Roblox Studio | Current |
On Linux, Tauri also needs: `libwebkit2gtk-4.1-dev`, `libssl-dev`, `libayatana-appindicator3-dev`, `librsvg2-dev`.
### Run
```bash
git clone https://gitlab.com/NotTrap/TrapSpoofer.git
cd TrapSpoofer
bun install
bun run tauri:dev
```
<details>
<summary><strong>Useful commands</strong></summary>
<br>
| Command | Description |
| ---------------------- | -------------------------------------------- |
| `bun run tauri:dev` | Start the desktop app in development mode |
| `bun run check` | Run the full validation suite |
| `bun run build:plugin` | Build the Studio plugin into `dist-plugin/` |
| `bun run format` | Format TypeScript, Rust and Luau |
| `bun run test` | Run the frontend tests (Vitest) |
| `bun run rust:test` | Run the Rust tests |
| `bun run bump [patch]` | Bump the version everywhere before a release |
</details>
### Releasing
`bun run bump` → commit → push to `main`. CI builds Windows, macOS and Linux in parallel and publishes the release (with `latest.json` for the auto-updater) whenever the version is new. Publication requires successful checks, successful builds and signed updater artifacts for every required platform. Run `node --test scripts/updater-manifest.node.mjs` to validate the manifest generator.
---
## Project layout
```text
TrapSpoofer/
├── src/ React/TypeScript UI (services/, stores/, mcp/, components/)
├── src-tauri/ Rust/Tauri backend, Studio bridge and MCP server
├── plugin/ Roblox Studio Luau plugin
├── scripts/ Build and release scripts
└── .github/ CI and templates
```
---
## Credits & license
Based on **ISpooferMotion V2** by IncredibroXP. TrapSpoofer is licensed under the **GNU General Public License v3.0 or later** — see [`LICENSE`](LICENSE).
### MCP settings, local publishing and permissions
`get_settings` and `update_settings` use the interface's persistent configuration. A patch only changes supplied fields. `grantPermissions.subjectType` is `Universe`, `Group` or `User`; all Roblox IDs are strings. A `Universe` ID is used as supplied.
```json
{
"grantPermissions": { "enabled": true, "subjectType": "Group", "ids": ["764544807"] },
"skipOwned": true,
"keepNameAndDescription": true,
"animationMode": "animation"
}
```
Pass that object to `update_settings`. `spoof_assets` accepts `grantPermissions`, `skipOwned` and `keepNameAndDescription` as temporary overrides. Animation modes are `animation`, `clip_replace`, `clip_parent` and `clip_parent_id`. `retry_failed({"jobId":"<job UUID>"})` exposes recovery through the same job pipeline.
Use `get_status` to compare the active upload destination with each connected Studio's place and owner. `scan_studio` returns `localReferences`, including `rbxasset://` property values and quoted URIs in scripts, their disk paths when found, and instance/property usages. Select a window with `studioSessionId` when needed.
`publish_assets` publishes files through the existing uploader and job lifecycle:
```json
{
"files": [
{ "path": "/absolute/texture.png", "name": "Example texture" },
{ "path": "/absolute/body.mesh", "type": "Mesh" }
],
"profile": "<saved profile ID or name>",
"groupId": "764544807",
"grantPermissions": { "enabled": true, "subjectType": "Group", "ids": ["764544807"] },
"studioPathMap": { "/absolute/texture.png": "rbxasset://textures/example.png" },
"pushToStudio": true
}
```
Types are inferred from extensions: PNG/JPG/BMP/TGA, OGG/MP3/WAV/FLAC, FBX/OBJ/glTF/GLB and Roblox `.mesh` v2–7. Roblox mesh and OBJ files are converted to static GLB geometry; materials, rigging and facial animation are not preserved by this conversion. Mesh uploads create a **Model**: `assetId` identifies the model, while `meshId` identifies the MeshPart geometry used by the game. A model containing several different MeshParts reports an ambiguity instead of selecting one silently. Local files are limited to 20 MiB; a folder job accepts up to 1,000 supported files.
`publish_folder` accepts the same options with `dir`, `recursive` (default `false`) and optional relative `glob` (for example `**/*.png`) in place of `files`. Symlinks are skipped. glTF's local buffers and images are bundled with path traversal checks.
`get_job({"jobId":"<returned UUID>","waitSeconds":30})` reports per-asset `imageId`/`meshId`, `cacheHit`, moderation (`approved`, `pending`, `rejected`), permission (`granted`, `failed` with reason, `not_requested`) and `pathMappings` (`absolute path -> rbxassetid://ID`). Moderation has a bounded wait and may remain pending. Upload receipts and IDs are cached durably by SHA-256 and profile/group; retries resume an accepted operation or reuse its asset rather than uploading a second copy. Files whose permissions failed keep their cached upload for recovery.
Job responses contain only that job's assets. `status` is `queued`, `running`, `finished` or `failed`; `done` describes job completion, independently of pending Roblox moderation. The effective `waitSeconds` is capped at 600 seconds; `waitUntilDone:true` waits up to one hour. On timeout the response contains partial results and `done:false`; call again with the same `jobId`. `includeMappings:true` adds only the job's ID mappings. `summary:true` returns job state, counts and failures without asset payloads. `get_history` accepts `jobId`, `limit` and `summary`; full asset details are available through `get_job`, rather than repeated in history.
Each successfully published mesh includes `bounds: {min,max,center,size}` with `{x,y,z}` vectors in Roblox studs, measured from the returned `meshId`, plus an `axisConversion` description. OBJ has no declared axes: XYZ is preserved as Y-up, without guessing a Blender export convention. FBX reports its declared axes and importer policy. `sourceBounds` describes the decoded source pose when available. `normalizeCenter:true` on `publish_assets` or `publish_folder` centers vertex geometry before upload and uses a separate cache entry. Normalizing FBX/glTF/GLB converts the default pose to static geometry and reports lost material/rigging/animation information in `warnings`; unsupported compressed geometry is rejected before a normalized upload. Default passthrough uploads remain supported. If Roblox has not made mesh bounds available yet, the result retains its uploaded IDs and a `meshMetadataError`; retrying reuses the upload.
`apply_mesh_to_studio` applies a published mesh without a scan:
```json
{ "meshId": "123456789", "instancePath": "Workspace.MyModel.Body" }
```
For a Model path, also supply `meshPartName` to create a child at the Model's pivot. Existing MeshParts retain their identity, CFrame, Size, Color, Material, MaterialVariant, CanCollide, CastShadow and children, including Attachments, lights and particle emitters. `preserveSize:false` uses the loaded mesh dimensions; newly created parts also use those dimensions. `studioSessionId` selects a connected window. Update the bundled plugin first; it starts silently only in the Edit DataModel and does not connect in Play or Run. Save the place after applying.
Lightweight queries return only the requested assets:
- `lookup_ids({"ids":["123456789"]})` reads local original/uploaded IDs, type and moderation.
- `check_access({"assetIds":["123456789"],"universeId":"987654321"})` checks Use access; supply either `universeId` or `groupId`. `permissionGranted` reports explicit grants; `canUse:true` confirms a grant or matching asset ownership. Unconfirmed access returns `canUse:null`, with a reason.
- `recheck_moderation({"assetIds":["123456789"]})` queries only tracked pending uploads, updates local results and history, and never uploads or grants permissions.
With `pushToStudio`, the existing plugin replaces matching local image/texture/clothing/mesh references, including MeshPart and SpecialMesh, and reports replacement errors through `get_job`. Paths from the last Studio scan are inferred; `studioPathMap` supplies explicit mappings. Save the place after applying replacements.
For assets uploaded earlier, use `grant_permissions`:
```json
{ "assetIds": ["123456789"], "subjectType": "Group", "ids": ["764544807"] }
```
It returns a job ID; `get_job` includes the result for each asset. `get_permissions({"assetIds":["123456789"]})` reads existing recipients. Roblox enforces the signed-in profile's rights and API-key scopes. Failed files/permissions do not discard successful items.
Set `dry_run:true` on `spoof_assets`, `publish_assets`, `publish_folder` or `grant_permissions` to inspect counts, types, destination, cache hits and quota estimates without uploading, granting permissions or changing Studio. `list_profiles` exposes `hasCookie`/`hasApiKey` booleans; MCP responses and activity summaries remove credentials.
This server cannot be deployed
Maintenance
ActivityActive
ResponsivenessNo recent community issues