LoadLibrary (Function)

From Legacy Roblox Wiki
Revision as of 05:29, 27 April 2023 by Realjame (talk | contribs) (Text replacement - "</SyntaxHighlight>" to "</syntaxhighlight>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
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'))

See Also