Overview
Thesearch_objects tool performs powerful searches across all instances in your Roblox game. You can search by instance name, class type (e.g., “Part”, “Script”), or specific property values. This is essential for finding objects when you don’t know their exact paths.
Use Cases
- Find all instances with a specific name pattern
- Locate all instances of a certain class (e.g., all Scripts or all Parts)
- Search for objects with specific property values (e.g., all red parts)
- Discover instances when you only remember partial information
- Audit your game for specific types of objects
- Build lists of instances for batch operations
Parameters
The search query. Interpretation depends on
searchType:- For
name: Searches instance names (supports partial matching) - For
class: Searches class types (exact match) - For
property: Searches property values (requirespropertyName)
The type of search to perform:
name- Search by instance name (default)class- Search by class typeproperty- Search by property value
Required when
searchType is "property". Specifies which property to search.Examples: "Transparency", "BrickColor", "Anchored", "CFrame"Example Inputs
Response Structure
Array of matching instances
Full instance path in dot notation (e.g., “game.Workspace.Level_01.Platform_1”)
The name of the instance
The Roblox class type of the instance
Path to the parent instance
Example Response
Usage Examples
Search by Name
Search by Class Type
Search by Property Value
Batch Operations After Search
Advanced Filtering
Organize Search Results
Tips and Best Practices
Name searches are case-sensitive and support partial matching. Searching for “Platform” will match “Platform_1”, “PlatformStart”, and “BigPlatform”.
Performance Considerations
Large Games- Searching thousands of instances can take several seconds
- Consider using more specific searches (class type is faster than property search)
- Cache search results if you need to reference them multiple times
- Property searches are the slowest because they must read properties from each instance
- Use
search_by_propertyif you need more advanced property matching
Common Issues
Issue: Too many results- Refine your query to be more specific
- Use class type search to narrow down object types
- Filter results in your code after receiving them
- Verify the search query matches actual instance names/classes
- Check that
searchTypeis correct for your query - For property searches, ensure
propertyNameis spelled correctly
- Property values are compared as strings; ensure your query matches the string representation
- Some properties might be serialized differently than expected (e.g., Vector3, Color3)
Related Tools
search_by_property- More advanced property searching with exact value matchingget_descendants- Get all descendants from a specific starting point with filterssearch_files- Search for instances by name, type, or script content (similar functionality)get_tagged- Find instances by CollectionService tag