---
title: "Set Global Variable"
description: "Variable, Value"
---

> Documentation Index
> Fetch the complete documentation index at: https://wiki.wrightkit.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Set Global Variable

## Description

Stores a value into a global variable, which is a variable that belongs to the game itself.

## Snippet

```
Set Global Variable(variableName, 0);
```

## Properties

**Returns**: _<span style="color: #c678dd">Void</span>_
**Parameters**: ==_Variable_==, ==_Value_==

> ==**Variable**==
> _Type: **Global Variable**, Default: **A**_
> Specifies which global variable to store the value into.

> ==**Value**==
> _Type: **Object** | **Array**, Default: **[Number](/values/number/)**_
> The value that will be stored.

Source: https://wiki.wrightkit.dev/actions/set-global-variable/index.mdx
