# 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](/scripting/examples/simple-script.md) (_SimpleScriptExample.cs_)                                                                                                  | This script shows how you can use the new "Simple Script" base class.                                  |
| [Visitor Tracker](/scripting/examples/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](/scripting/examples/follow-the-path.md) (_FollowThePath.cs_)                                                                                                    | This script moves a dynamic object along a route of points, in a loop.                                 |
| [Random Movement ](/scripting/examples/random-movement.md)(_RandomMovement.cs_)                                                                                                   | This script randomly moves a dynamic object around its starting position.                              |
| [Teleport Hotkeys](/scripting/examples/teleport-hotkeys.md) (_TeleportHotkeys.cs_)                                                                                                | This script allows you to set hotkeys that will teleport users to another experience when pressed.     |
| [Stats Example](/scripting/examples/stats-example.md) (_StatsExample.cs_)                                                                                                         | This script provides useful statistics about the current experience.                                   |
| [Sound Randomizer ](/scripting/examples/sound-randomizer.md)(_SoundRandomizer.cs_)                                                                                                | This script plays randomly from a list of sounds at randomized intervals.                              |
| [Cannonball](/scripting/examples/cannonball.md) (_CannonGameExample.cs_)                                                                                                          | This script throws a cannonball from the avatar.                                                       |
| [Reflective Detector](/scripting/examples/reflective-detector.md) (_ReflectiveDetectorExample.cs_) & [Reflective Tracker](/scripting/examples/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