Get Attributes
Retrieve all attributes attached to a Roblox instance. Returns a dictionary of attribute names and their values.Parameters
Roblox instance path using dot notation (e.g.,
"game.Workspace.Part")Response
Returns an object containing all attributes:{} if no attributes exist.
Example Usage
Get All Attributes
Inspect Configuration
Audit Game Configuration
Use Cases
Configuration Auditing
Inspect all configuration values on game objects to verify settings match design specifications.Data Migration
Retrieve all attributes before migrating data to a new system or updating attribute schemas.Debugging
Quickly view all attributes when troubleshooting why an object isn’t behaving as expected.Cloning with Attributes
Get all attributes from a source instance before cloning to preserve configuration.Documentation Generation
Extract attribute schemas from example instances to generate configuration documentation.Filtering Results
Process results to filter specific attribute types:Performance Considerations
- More efficient than calling
get_attributemultiple times for different attributes - Returns all attributes in a single round-trip
- Ideal for batch processing or configuration snapshots
Error Handling
- Throws error if
instancePathis invalid or instance doesn’t exist - Returns empty object
{}if instance has no attributes (not an error) - Complex types (Vector3, Color3) are returned as objects with named fields
Related Tools
Get Attribute
Get a single specific attribute
Set Attribute
Set or update an attribute value
Delete Attribute
Remove an attribute from an instance
Comparison with Individual Queries
Using get_attributes (Efficient)
Using get_attribute (Inefficient)
Notes
- Returns attributes in arbitrary order (not guaranteed to be sorted)
- Attributes are returned with their original types preserved
- Complex types maintain their structure (Vector3 as
{X, Y, Z}, etc.) - Empty instances return
{}, notnullor error - Maximum attributes per instance: ~150 (Roblox limit)