# BedWars Scripting

When hosting a creative match, you have the option to edit the game's scripts (`Host Panel` -> `Scripts`).&#x20;

These scripts will run when the server starts or can manually be run and stopped from the Script panel.

### Scripting Language

Scripts are written in **Lua**, the same language used to write Roblox scripts. You have access to all functions described in this documentation.

### VSCode Extension

Download the VSCode extension to sync your code with Bedwars and many other useful features here: <https://marketplace.visualstudio.com/items?itemName=easy-games.bedwars-scripting-toolkit>

### Support

For support join our [Discord #creative channel](https://ptb.discord.com/channels/847855494106447942/1134558543987609600)

{% content-ref url="/pages/54WkCfVeDpOtxLQdVPYX" %}
[Changelog](/scripting/changelog.md)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.easy.gg/scripting/bedwars-scripting.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
