> ## 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

> _G ve shared icin current LUA_GLOBALSINDEX values iceren new table dondurur. Function arguments almaz, fresh table olusturur, _G degerini LUA_GLOBALSINDEX._G uzerinden ve shared degerini LUA_GLOBALSINDEX.shared uzerinden atar, sonra exactly one value dondurur. full global table dondurmez ve getscriptglobals icin kayitli alias yoktur.

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

  ## Dönüşler

  <ResponseField name={"globals"} type={"table"}>
    LUA\_GLOBALSINDEX uzerinden kopyalanan \_G ve shared fields iceren fresh table.
  </ResponseField>

  ## Örnek

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

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

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