Skip to content

GetComponent

Description

GetComponent is a Function on Object
Returns a Component attached to the Object of the given type. This will return nil if there is no Component of the given type on this Object.

Example
local testVariable = Object.GetComponent("Toaster")
Usage

network usage: Any (Client or Server/Host)
returns: Component
parameters:
- name (string)