> ## 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 및 shared의 current LUA_GLOBALSINDEX values가 담긴 new table을 반환합니다. 이 function은 arguments를 받지 않고 fresh table을 만들며, _G를 LUA_GLOBALSINDEX._G에서, shared를 LUA_GLOBALSINDEX.shared에서 할당한 뒤 exactly one value를 반환합니다. full global table은 반환하지 않으며 getscriptglobals에 등록된 alias는 없습니다.

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

  ## 반환값

  <ResponseField name={"globals"} type={"table"}>
    LUA\_GLOBALSINDEX에서 복사된 \_G 및 shared fields가 있는 fresh table.
  </ResponseField>

  ## 예제

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

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

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