Skip to main content

GetMapThing

info

This API can be used from both the client and the server.

tip

This API directly returns a function. You should not specify a function name.

Returns a MapThing, 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

NameTypeDefaultDescription
descendantInstanceThe descendant instance (or the instance itself) of the MapThing to find.
tagstringThe tag to search for.

Returns

MapThing?