Aliaslar
getcallbackmember
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Bir Instance uzerindeki callback property icinde saklanan Lua callback function degerini okur. Ilk arguman Instance object olmalidir ve ikinci arguman string property name olmalidir. instance reference gecerli olmalidir. property name Roblox property metadata uzerinden cozulur ve tipi LUA_CALLBACK olan bir property degerine isaret etmelidir. property descriptor yoksa, property LUA_CALLBACK degilse, callback field offset yoksa, saklanan callback yoksa, LiveLuaRef yoksa, callback farkli bir Lua global state icine aitse veya referans verilen deger function degilse function nil dondurur. Ilk callback slot callback icermediginde async callback field fallback de kontrol edilir. Function property degerini guncellemez.
getcallbackvalue(instance: Instance, property: string): function | nil
getcallbackmemberlocal bindable = Instance.new("BindableFunction")
bindable.OnInvoke = function(value)
return value * 2
end
local callback = getcallbackvalue(bindable, "OnInvoke")
if callback then
print(callback(21))
end