The player who gains actual control||doc135502

September 20, 2022

Format

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

Description

Get the player who has control.


Value Returned

type Description
Player player instance


Code Samples

local player = entity:getCtrlPlayer()