> For the complete documentation index, see [llms.txt](https://docs.sansar.com/latest/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sansar.com/latest/creating-in-sansar/importing-things-to-sansar/importing-accessories/importing-custom-scripts.md).

# Importing Custom Scripts

## Selling This Asset Type

To sell this asset type, follow this guide: [Selling Scripts](https://docs.sansar.com/latest/sansarstore/selling-your-content/selling-different-asset-types/world-based-items/scripts.md).

### Import a custom script

You must be editing a scene in order to import a custom script, it is suggested to create a blank scene to use for testing purposes as in order to test the script you must build the world and visit.

1. Navigate to edit mode via the left side menu and edit a scene of your choice or create a new one.

<figure><img src="https://1251409636-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeFXiTZShM8YWMV94n1eV%2Fuploads%2Fgit-blob-7d4999d6e60d181118ab51e2abaf776ff6792fbb%2Feditsceneguide.png?alt=media" alt="Customize avatar" width="475"><figcaption></figcaption></figure>

2. At the top left press 'Import' then 'Script'

<figure><img src="https://1251409636-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeFXiTZShM8YWMV94n1eV%2Fuploads%2Fgit-blob-d9a4b306ab384cce7174369d85b3673de47fbcde%2Fimportscript.png?alt=media" alt="Customize avatar" width="475"><figcaption></figcaption></figure>

3. Click 'Browse' and choose the script file you wish to import, you can import files with the extensions .cs or .json
4. Name your script, this is the name it will appear with in your inventory.
5. Click 'Import' and the importer will start compiling, if the script compiles it is now added to your inventory, if not check the log tab for more information on what the problem may be.
6. You can now test your script by adding it to a object in the scene then you must build and visit the world during runtime to test. If you are the owner of a world you can press CTRL+D to open the Debug window for scripts in a scene, this is where your `Log.Write(" ")` messages would appear for your scripts.
