LoadLibrary (Function): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>JulienDethurens No edit summary |
m Text replacement - "</code>" to "</SyntaxHighlight>" |
||
Line 14: | Line 14: | ||
<code lua> | <code lua> | ||
local RbxGui = assert(LoadLibrary('RbxGui')) | local RbxGui = assert(LoadLibrary('RbxGui')) | ||
</ | </SyntaxHighlight> | ||
==See Also== | ==See Also== |
Revision as of 03:45, 27 April 2023
LoadLibrary( string library ) | |
Returns | RbxLibrary |
Description: | Loads a library and returns it. If library is not the name of a valid library, false is returned, as well as an error message. |
Example
This code would load the RbxGui library and store it in the variable RbxGui:
local RbxGui = assert(LoadLibrary('RbxGui'))
</SyntaxHighlight>
See Also