get owner||doc135455

September 20, 2022

Format

 Entity:owner()
  • The class of the function:Entity

Description

Returns the owner of the entity.


Precautions

  • When the entity object is also a player object, the returned owner will be the current player object

Value Returned

type Description
Object owner instance


Code Samples

on the client side of the objectmount script, get the owner of the entity.

local owner = this:owner()