---
title: "IsA()"
description: "Checks whether an object matches a Glorpia class or supported base class."
canonical: "https://docs.glorpia.com/scripting/functions/is-a"
markdown: "https://docs.glorpia.com/scripting/functions/is-a.md"
---
# IsA()

Checks whether an object matches a Glorpia class or supported base class.

**Category:** Scripting / Method

## Syntax

```luau
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. |

> **Note:** `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
```
