The client entity controlled by the controller||doc136149

September 20, 2022

Format

 PlayerControl.entity

Description

The client entity controlled by the current player controller.


Value Returned

type Description
Entity entity controlled by the player


Code Samples

Outputs the client entity controlled by the current player controller

local M = Blockman.Instance()
local control = M:control()
print(control.entity)