‹ All natives
Namespace: ENTITY
API set: server
Language: Luau Improve
entity:get
Also: player:get
entity:get(key: string): any
Reads a property of the entity.
Parameters#
- key (
string): property name
Returns#
any: nil if it is missing
Example#
if player:get("house") == "Greenveil" then
player:setBucket(12)
end
See also#