Scripting / Method
IsA()
Checks whether an object matches a Glorpia class or supported base class.
Syntax
instance:IsA(className)Class-family behaviour
| Name | Type | Description |
|---|---|---|
Instance | base class | Returns true for normal hierarchy instances. |
BasePart | base class | Returns true for Part and SpawnLocation. |
Concrete class | class | Checks the exact class name, such as Model or Humanoid. |
Workspace:IsA() returns true for Workspace and Instance.Example: Change Every BasePart
Luau
for _, object in ipairs(workspace:GetDescendants()) do
if object:IsA("BasePart") then
object.Bevel = 0.15
end
end