---
title: Scripts
product: Unity Spark
canonical: https://docs.unity.com/en-us/unity-spark/create/build/scripts
last_updated: 2026-12-01
generated_at: 2026-12-01T21:01:47.830Z
locale: en-us
---

# Scripts

> Understand how Unity Spark scripts work, attach scripts to objects, open them in the Script window, and ask the assistant to write them for you.

Scripts control how your game behaves. Write them yourself in the **Script** window or have the assistant write them, then attach them to objects.

[Introduction to scripts in Unity Spark](/unity-spark/create/build/scripts/about-scripts.md): Understand how Unity Spark scripts work, how they differ from Unity Editor scripts, and what they can do.
[Write and attach scripts](/unity-spark/create/build/scripts/write-scripts.md): Open scripts in the Script window, attach them to objects, and ask the assistant to write them for you.
[Script window reference](/unity-spark/create/build/scripts/script-window-reference.md): Find the tabs, editor, and save controls in the Unity Spark Script window to read and edit your project's Luau scripts.


## Additional resources

* [Unity Spark fundamentals](/unity-spark/intro/concepts.md)
* [Components, tags, and layers](/unity-spark/create/build/components.md)
* [Find and fix errors with the Console window](/unity-spark/create/test-debug/find-fix-errors.md)
* [Limitations of Unity Spark](/unity-spark/intro/limitations.md)
