getrenv

Any changes to this environment shouldn't affect the executor; however it should affect game scripts.

Returns a table containing the Roblox environment.

function getrenv(): { any }

Example

getrenv().game = nil -- game scripts won't be able to access game
getrenv().warn = "Hello"
print(type(warn)) -- Output: string

Last updated