Skip to main content
Menyimpan scriptable override untuk Roblox property di scriptable override cache dan mengembalikan previous scriptable state. Argumen pertama harus Instance object, argumen kedua harus string property name, dan argumen ketiga harus boolean. Jika cache entry sudah ada untuk instance reference dan property name yang sama, cached scriptable value diganti dan nilai cache lama dikembalikan. Saat cache miss, property name diselesaikan melalui Roblox property metadata dan Instance class descriptor. Jika descriptor tidak ada, atau field yang ditemukan hilang atau bukan property entry, function mengembalikan nil. Saat property entry ditemukan, function membaca scriptable state, menyimpan boolean yang diminta plus property reference di scriptable override cache, lalu mengembalikan previous scriptable state value. GameIndexHook dan GameNewIndexHook kemudian memakai cache ini dengan sementara mengatur property field scriptable flag untuk satu indexed read atau write, lalu memulihkan previous field flag.

Sintaks

Argumen

Return

Contoh

Temporarily change whether a property is scriptable, then restore the previous state when available.