LoadLibrary (Function): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>JulienDethurens
No edit summary
>JulienDethurens
No edit summary
Line 1: Line 1:
<onlyinclude>{{Function
<onlyinclude>{{Function
|name = LoadLibrary
|name = LoadLibrary
|arguments = [[string]] <var>library</var>
|arguments = {{type|string}} <var>library</var>
|returns = [[RbxLibrary]]
|returns = {{type|RbxLibrary}}
|description = Loads a library and returns it. If <var>library</var> is not the name of a valid library, [[false]] is returned, as well as an error message.
|description = Loads a library and returns it. If <var>library</var> is not the name of a valid library, {{false}} is returned, as well as an error message.
}}</onlyinclude>
}}</onlyinclude>



Revision as of 01:37, 17 March 2012

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