getrenv Synchronous

Read the Roblox runtime environment as seen from this session. Reach for it when you specifically need a host global rather than a value in Kawaii's shared environment.

Syntax
Luau
getrenv() -> Table

Parameters

This function takes no arguments.

Returns

Table

The live Roblox runtime environment view.

Usage notes

Changes to this table affect the runtime view, so ordinary scripts should treat it as read only.

Example

Example
Luau
local runtime = getrenv()
print("Current place:", runtime.game.PlaceId)
Kawaii documentation