สคริปต์

getscriptbytecode

ส่งกลับ bytecode สำหรับอินสแตนซ์สคริปต์

ไวยากรณ์

getscriptbytecode(script: userdata): string

Arguments

ชื่อชนิดคำอธิบาย
scriptuserdataสคริปต์หรืออินสแตนซ์ ModuleScript เพื่อตรวจสอบ

Returns

ชื่อชนิดคำอธิบาย
bytecodestringBytecode หรือสตริงสคริปต์ที่ถูกทิ้ง

คำอธิบาย

ส่งกลับ bytecode สำหรับอินสแตนซ์สคริปต์

เรียกด้วย parameter 1 ค่า: script ตาราง arguments อธิบายค่าที่จำเป็นและค่าที่ปรับพฤติกรรม

ส่งคืน bytecode (string) ใช้ตาราง returns เพื่อแยกค่าที่สำเร็จ ผลลัพธ์ nil และ error ที่จัดการต่อได้

ตัวอย่าง

ตัวอย่างการเรียกใช้ด้วยค่าตัวอย่าง

local result = getscriptbytecode(game)
print(result)