This property can only be read from. Attempting to write to it will cause an error.
This item is not replicated across Roblox’s server/client boundary.
A read-only string representing the class this
Instance belongs to.
This property can be used with various other functions of Instance that are used to identify objects by type, such as
Note this property is read only and cannot be altered by scripts. Developers wishing to change an
Instance’s class will instead have to create a new
Instance/IsA, ClassName can be used to check if an object belongs to a specific class ignoring class inheritance. For example:
for _, child in ipairs(game.Workspace:GetChildren()) do if child.ClassName == "Part" then print("Found a Part") -- will find Parts in model, but NOT TrussParts, WedgeParts, etc end end