ไวยากรณ์
getscriptbytecode(script: userdata): stringArguments
| ชื่อ | ชนิด | คำอธิบาย |
|---|---|---|
script | userdata | สคริปต์หรืออินสแตนซ์ ModuleScript เพื่อตรวจสอบ |
Returns
| ชื่อ | ชนิด | คำอธิบาย |
|---|---|---|
bytecode | string | Bytecode หรือสตริงสคริปต์ที่ถูกทิ้ง |
คำอธิบาย
ส่งกลับ bytecode สำหรับอินสแตนซ์สคริปต์
เรียกด้วย parameter 1 ค่า: script ตาราง arguments อธิบายค่าที่จำเป็นและค่าที่ปรับพฤติกรรม
ส่งคืน bytecode (string) ใช้ตาราง returns เพื่อแยกค่าที่สำเร็จ ผลลัพธ์ nil และ error ที่จัดการต่อได้
ตัวอย่าง
ตัวอย่างการเรียกใช้ด้วยค่าตัวอย่าง
local result = getscriptbytecode(game)
print(result)