getrenv
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: stringLast updated
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: stringLast updated