> ## Documentation Index
> Fetch the complete documentation index at: https://docsuncv2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# disassemble

Returns a human-readable Luau bytecode disassembly for a `LocalScript` or `ModuleScript`.

```luau theme={null}
disassemble(script: LuaSourceContainer): string
```

Where `decompile` rebuilds readable Luau source, `disassemble` stays one level lower and lists the script's compiled bytecode instructions as text. Reach for it when you want to see the exact opcodes, or when the decompiler can't recover part of a script.

Seliware uses the Konstant v2.1 disassembler.

## Parameters

| Parameter | Type                                                                                               | Description                |
| --------- | -------------------------------------------------------------------------------------------------- | -------------------------- |
| `script`  | [`LuaSourceContainer`](https://create.roblox.com/docs/reference/engine/classes/LuaSourceContainer) | The script to disassemble. |

## Returns

`string` - the script's bytecode disassembly, as readable text.

## Example

<CodeGroup>
  ```luau Example 1 theme={null}
  local asm = disassemble(workspace.Part.LocalScript)
  ```

  ```luau Example 2 theme={null}
  -- Alternative usage
  task.spawn(function()
      local asm = disassemble(game.Players.LocalPlayer.Character.Animate)
      print(asm)
  end)
  ```
</CodeGroup>

<Tip>
  Always check parameters and return values when working with this library function.
</Tip>
