Glorpia Docs
Scripting / Method

IsA()

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

Syntax

instance:IsA(className)

Class-family behaviour

NameTypeDescription
Instancebase classReturns true for normal hierarchy instances.
BasePartbase classReturns true for Part and SpawnLocation.
Concrete classclassChecks 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