> ## Documentation Index
> Fetch the complete documentation index at: https://docs.projectreal.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# getscriptglobals

> Retorna uma new table contendo os current LUA_GLOBALSINDEX values para _G e shared. A function nao recebe arguments, cria uma fresh table, atribui _G a partir de LUA_GLOBALSINDEX._G e shared a partir de LUA_GLOBALSINDEX.shared, e retorna exactly one value. Ela nao retorna a full global table, e nenhum alias e registrado para getscriptglobals.

<div className="real-function-page">
  ```lua theme={null}
  getscriptglobals(): table
  ```

  ## Retornos

  <ResponseField name={"globals"} type={"table"}>
    Fresh table com \_G e shared fields copiados de LUA\_GLOBALSINDEX.
  </ResponseField>

  ## Exemplo

  Read the \_G and shared values copied from LUA\_GLOBALSINDEX.

  ```lua theme={null}
  local globals = getscriptglobals()

  print(globals._G)
  print(globals.shared)
  ```
</div>
