Skip to content

Api > LuaBehaviour > OnLostOwnership()


LuaBehaviour.OnLostOwnership()⚓︎

Called when the current client loses the network ownership of the object.

Usage⚓︎

local script = LUA.script;

--- OnLostOwnership message from LuaBehaviour

function script.OnLostOwnership()
   -- your code here 
end