Function roblox::function::require_id [−][src]
pub fn require_id<'a>(module: i64) -> Variant<'a, ()>
Expand description
Equivalent to Variant require(int64 module)
in Luau.
If the ModuleScript
the user
wants to use is an Instance in the current place, it can be loaded by using
the require
function on the asset ID of the
ModuleScript.
Returns
Runs the supplied ModuleScript if it has not been run already, and returns what the ModuleScript returned (in both cases).