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.
Luau
getrenv() -> TableParameters
This function takes no arguments.
Returns
TableThe 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
Luau
local runtime = getrenv()
print("Current place:", runtime.game.PlaceId)