What is loadstring?

It creates a function of interpreted lua code from a string

local test = loadstring("print('Hello world!')")

test() --> Hello world!
2 Likes