Runs a string as a Lua script


See also Utility functions.

Signature:

RunScript("script")

Arguments:

  • script - A Lua script to be run (string)

Examples:

-- Print to chat frame
local script = "print(\"Hello World\")"
RunScript(script)