Can the controller control the entity||doc136150

September 20, 2022

Format

 PlayerControl.enable

Description

Whether the current player controller can control the entity.


Value Returned

type Description
boolean If false, the current player controller cannot control the entity


Code Samples

Turn off player control in the client.

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