> 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/script-api-docs/example-scripts/example-scripts-in-sansar.md).

# Example Scripts in Sansar

## Example Scripts in Sansar

In Sansar, scripts allow you to add dynamic and interactive behaviors to objects. Here are a few example scripts that you can experiment with in Sansar.

| Example Script                                                                                                                                                                                                                                                                              | Script Details                                                                                         |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ |
| [Simple Script](https://docs.sansar.com/latest/script-api-docs/example-scripts/simple-script.md) (*SimpleScriptExample.cs*)                                                                                                                                                                 | This script shows how you can use the new "Simple Script" base class.                                  |
| [Visitor Tracker](https://docs.sansar.com/latest/script-api-docs/example-scripts/visitor-tracker.md) (*VisitorTrackerExample.cs*)                                                                                                                                                           | This script tracks the number of visitors that visited your experience over the course of a session.   |
| [Follow The Path](https://docs.sansar.com/latest/script-api-docs/example-scripts/follow-the-path.md) (*FollowThePath.cs*)                                                                                                                                                                   | This script moves a dynamic object along a route of points, in a loop.                                 |
| [Random Movement ](https://docs.sansar.com/latest/script-api-docs/example-scripts/random-movement.md)(*RandomMovement.cs*)                                                                                                                                                                  | This script randomly moves a dynamic object around its starting position.                              |
| [Teleport Hotkeys](https://docs.sansar.com/latest/script-api-docs/example-scripts/teleport-hotkeys.md) (*TeleportHotkeys.cs*)                                                                                                                                                               | This script allows you to set hotkeys that will teleport users to another experience when pressed.     |
| [Stats Example](https://docs.sansar.com/latest/script-api-docs/example-scripts/stats-example.md) (*StatsExample.cs*)                                                                                                                                                                        | This script provides useful statistics about the current experience.                                   |
| [Sound Randomizer ](https://docs.sansar.com/latest/script-api-docs/example-scripts/sound-randomizer.md)(*SoundRandomizer.cs*)                                                                                                                                                               | This script plays randomly from a list of sounds at randomized intervals.                              |
| [Cannonball](https://docs.sansar.com/latest/script-api-docs/example-scripts/cannonball.md) (*CannonGameExample.cs*)                                                                                                                                                                         | This script throws a cannonball from the avatar.                                                       |
| [Reflective Detector](https://docs.sansar.com/latest/script-api-docs/example-scripts/reflective-detector.md) (*ReflectiveDetectorExample.cs*) & [Reflective Tracker](https://docs.sansar.com/latest/script-api-docs/example-scripts/reflective-detector.md) (*ReflectiveTrackerExample.cs*) | These two scripts detects and tracks how many times the users hit the detectors in objects in a scene. |

**Note:** These files are also available in the client folder: Program Files > Sansar > Client > Script API > Examples

[Creative Commons License](https://docs.sansar.com/latest/creative-commons-license.md)

Have more questions? Join our [Discord!](https://discord.gg/sansarofficial)
