ClassName (Property)
From Legacy Roblox Wiki
(Redirected from ClassName)
This is a read-only property. It cannot be written to, only read.
ClassName | |
Type | string |
Description | A unique string per type of Instance. Should only be used as a unique identifier, as it does not reveal any information about nature of the type hierarchy the type is in. For this use, see IsA. |
Member of | Instance |
Example
for _, child in ipairs(part:GetChildren()) do if child.ClassName == 'Part' then -- will find Parts, but NOT TrussParts, WedgeParts, and other part-like objects end end