Api > LuaBehaviour > OnBecomeOwner()
LuaBehaviour.OnBecomeOwner()⚓︎
Called when the current client becomes the owner of the object.
Usage⚓︎
local script = LUA.script;
--- OnBecomeOwner message from LuaBehaviour
function script.OnBecomeOwner()
-- your code here
end