Controlled sign||doc135446

September 20, 2022

Format

 Entity:isControl() 
  • The class to which the function belongs:Entity

Description

Returns whether the current entity is controlled by the player.


Value Returned

type Description
boolean Is it controlled by the player


Code Samples

if entity and entity:isValid() then
    local isControl = entity:isControl() 
    print(isControl)
end