GetMapObject
Returns a MapObject, given a descendant instance (or the instance itself), and a tag to search for. This is often used to find a character model, given a character part, or a prop, given a prop part.
Parameters
Section titled “Parameters”| Name | Type | Default | Description |
|---|---|---|---|
descendant | Instance | The descendant instance (or the instance itself) of the MapObject to find. | |
tag | string | The tag to search for. |
Returns
Section titled “Returns”MapObject?