الانتقال إلى المحتوى الرئيسي

أسماء بديلة

  • getscriptfunction

الوسائط

userdata
مطلوب
Script object to load. Supported ClassName values are ModuleScript, LocalScript, CoreScript, and Script with RunContext Client.

القيم الراجعة

function | nil
Loaded Lua closure, or nil when no usable bytecode is available or the Luau loader fails.

مثال

Load a function from a supported Roblox script Instance when bytecode is available.