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 }
getrenv().game = nil -- game scripts won't be able to access game getrenv().warn = "Hello" print(type(warn)) -- Output: string
Last updated 2 months ago