Skip to content
Astra
ProductDocumentationDownloadPricingCommunity
Sign inGet Astra

Explore Astra

Explore Astra

HomeProductPricingDocumentationDownloadRelease notesSystem status
Sign inDiscord
Roblox
IntroductionQuick start
Keys & licensingYour workspaceTroubleshooting
API reference
Closures
Debug
Environment
filtergcgetexecutorthreadgetfenvgetgcgetgenvgetreggetrenvgetthreadidentityisavailablenewproxysetfenv
Metatables
Scheduler
Instances
Cache
Scripts
Signals
Filesystem
Input
Console
Cryptography
JSON
Regex
System
Scene files
Drawing
UI library
Renderer
Requests
Network
API referenceEnvironment

getreg

Returns the current VM's registry table.

Syntax

Signature
getreg() -> table

Aliases

  • getregistry

Parameters

This function takes no parameters.

Returns

TypeDescription
tableThe current VM's registry table.

Notes

Changes affect the same table used by native libraries and runtime references.

Example

Luau
local Result = getreg()
print(Result)

Related functions

getthreadidentitygetgenvgetrenvgetexecutorthread
PreviousgetgenvEnvironmentNextgetrenvEnvironment

On this page

SyntaxAliasesParametersReturnsNotesExampleRelated functions
Astra

A complete Luau workspace.
Your editor, scripts, and accounts in one place.

Get Astra

WindowsmacOSFree keyPricingRedeemDashboard

Product

EditorScript HubAccountsFeaturesComparison

Community

DiscordSystem statusSupport

Learn

DocumentationRelease notes

Developers

API referenceLuau LSPBenchmarks

Legal

TermsPrivacyCookiesRefund policy
System statusSupportTermsPrivacyCookies

© 2026 Astra. All rights reserved.