---
title: "Instance.new()"
description: "Creates a new unparented Glorpia instance of a supported class."
canonical: "https://docs.glorpia.com/scripting/functions/instance-new"
markdown: "https://docs.glorpia.com/scripting/functions/instance-new.md"
---
# Instance.new()

Creates a new unparented Glorpia instance of a supported class.

**Category:** Scripting / Function

## Syntax

```luau
Instance.new(className)
```

## Parameters and return value

| Name | Type | Description |
| --- | --- | --- |
| `className` | string | Class to create. |
| `return` | Instance | The newly created instance. |

## Supported classes

| Name | Type | Description |
| --- | --- | --- |
| `Part` | BasePart | General-purpose physical part. |
| `SpawnLocation` | BasePart | Character spawn part. |
| `Model` | Instance | Hierarchy group with pivot methods. |
| `Folder` | Instance | Hierarchy-only container. |
| `Humanoid` | Instance | Health and character movement controller. |
| `BasicSound` | Instance | Global or BasePart-emitted audio. |
| `ScreenGui` | Instance | 2D GUI container that renders from StarterGui/PlayerGui. |
| `SurfaceGui` | Instance | World-surface GUI container that renders when parented to a Part or SpawnLocation. |
| `BillboardGui` | Instance | World-space GUI container that renders when parented to a Part or SpawnLocation. |
| `Frame` | Instance | Rectangular GUI object used inside a valid GUI container chain. |
| `ScrollingFrame` | Instance | Scrollable rectangular GUI container. |
| `UIListLayout` | Instance | Automatically arranges sibling GUI objects in a list. |
| `UIGridLayout` | Instance | Automatically arranges sibling GUI objects into grid cells. |
| `TextLabel` | Instance | Text GUI object with selectable font families and styles. |
| `TextButton` | Instance | Clickable text GUI object with client-side button signals. |
| `UICorner` | Instance | Rounds a Frame, TextLabel or TextButton background. |
| `UIGradient` | Instance | Applies a two-endpoint colour/transparency gradient to a parent GUI object. |
| `UIBlur` | Instance | Blurs the rendered 3D backdrop behind a parent GUI object. |
| `BlurEffect` | Instance | Lighting post-effect that blurs the rendered 3D world. |
| `ColourCorrection` | Instance | Lighting post-effect for brightness, contrast, saturation and tint. ColorCorrection is accepted as an alias. |
| `ServerScript` | Instance | Public server script hierarchy object. Enabled copies start once when discovered under Workspace or ServerScriptService. |
| `LocalScript` | Instance | Public client script hierarchy object. Enabled copies start once when discovered under local PlayerGui, PlayerScripts or Character ancestry. |
| `RemoteEvent` | Instance | One-way client/server communication object. |
| `RemoteFunction` | Instance | Request/response client/server communication object. |
| `BinaryStringValue` | ValueBase | Stores binary/string-like data through Luau strings. |
| `BoolValue` | ValueBase | Stores true or false. |
| `CFrameValue` | ValueBase | Stores a position and rotation. |
| `Colour3Value` | ValueBase | Stores an RGB colour. Color3Value is accepted as an American-spelling alias. |
| `IntValue` | ValueBase | Stores a signed integer. |
| `NumberValue` | ValueBase | Stores a number. |
| `ObjectValue` | ValueBase | Stores an Instance reference or nil. |
| `StringValue` | ValueBase | Stores text. |
| `Vector3Value` | ValueBase | Stores a three-dimensional vector. |

> **Note:** `Instance.new()` does not create `BasePart`, `Player`, `Camera`, services, `CoreScript` or `CoreLocalScript`. Core script classes are engine-owned.

Parenting is unrestricted for created instances. Rendering, simulation and public-script execution still depend on runtime ancestry; for example, a ScreenGui outside StarterGui/PlayerGui remains in the hierarchy but does not render.

## Example: Create And Parent A Part

New instances start without a Parent. Configure the object, then parent it where you want it to appear.

```luau
local part = Instance.new("Part")
part.Name = "BlueBlock"
part.Size = Vector3.new(4, 2, 4)
part.Colour = Colour3.fromRGB(80, 140, 255)
part.Parent = workspace
```

## Class reference

- [Part](https://docs.glorpia.com/instances/part.md) — Part defaults and BasePart inheritance.
- [Model](https://docs.glorpia.com/instances/model.md) — Grouping and pivot operations.
- [Folder](https://docs.glorpia.com/instances/folder.md) — Hierarchy organisation.
- [Humanoid](https://docs.glorpia.com/instances/humanoid.md) — Health and movement properties.
- [BasicSound](https://docs.glorpia.com/instances/basicsound.md) — Global and spatial audio instance.
- [ScreenGui](https://docs.glorpia.com/instances/screengui.md) — 2D player GUI container.
- [SurfaceGui](https://docs.glorpia.com/instances/surfacegui.md) — Part-surface GUI container.
- [BillboardGui](https://docs.glorpia.com/instances/billboardgui.md) — World-space GUI container.
- [Frame](https://docs.glorpia.com/instances/frame.md) — GUI frame and container.
- [ScrollingFrame](https://docs.glorpia.com/instances/scrollingframe.md) — Scrollable GUI container.
- [UIListLayout](https://docs.glorpia.com/instances/uilistlayout.md) — Horizontal or vertical GUI layout component.
- [UIGridLayout](https://docs.glorpia.com/instances/uigridlayout.md) — Grid-based GUI layout component.
- [TextLabel](https://docs.glorpia.com/instances/textlabel.md) — GUI text object with Enum.Font and Enum.FontStyle.
- [TextButton](https://docs.glorpia.com/instances/textbutton.md) — Clickable GUI text object with client input signals.
- [UICorner](https://docs.glorpia.com/instances/uicorner.md) — Rounded GUI corners.
- [UIGradient](https://docs.glorpia.com/instances/uigradient.md) — Colour and transparency gradient component for GUI objects.
- [UIBlur](https://docs.glorpia.com/instances/uiblur.md) — Backdrop blur component for GUI objects.
- [BlurEffect](https://docs.glorpia.com/instances/blureffect.md) — World blur effect for Lighting.
- [ColourCorrection](https://docs.glorpia.com/instances/colourcorrection.md) — World colour correction effect for Lighting.
- [LocalScript](https://docs.glorpia.com/instances/localscript.md) — Public client-side script class; runtime PlayerGui, PlayerScripts and Character copies start when discovered.
- [ServerScript](https://docs.glorpia.com/instances/serverscript.md) — Public server-side script class; enabled valid descendants start once when discovered.
- [RemoteEvent](https://docs.glorpia.com/instances/remoteevent.md) — One-way communication between LocalScripts and ServerScripts.
- [RemoteFunction](https://docs.glorpia.com/instances/remotefunction.md) — Request/response communication between LocalScripts and ServerScripts.
- [ValueBase](https://docs.glorpia.com/instances/valuebase.md) — Shared Value and Changed API for value classes.
- [BinaryStringValue](https://docs.glorpia.com/instances/binarystringvalue.md) — Binary/string-like value class.
- [BoolValue](https://docs.glorpia.com/instances/boolvalue.md) — Boolean value class.
- [CFrameValue](https://docs.glorpia.com/instances/cframevalue.md) — CFrame value class.
- [Colour3Value](https://docs.glorpia.com/instances/colour3value.md) — Colour value class.
- [IntValue](https://docs.glorpia.com/instances/intvalue.md) — Integer value class.
- [NumberValue](https://docs.glorpia.com/instances/numbervalue.md) — Number value class.
- [ObjectValue](https://docs.glorpia.com/instances/objectvalue.md) — Instance-reference value class.
- [StringValue](https://docs.glorpia.com/instances/stringvalue.md) — Text value class.
- [Vector3Value](https://docs.glorpia.com/instances/vector3value.md) — Vector3 value class.
- [CoreScript](https://docs.glorpia.com/instances/corescript.md) — Privileged engine-only script class.
- [CoreLocalScript](https://docs.glorpia.com/instances/corelocalscript.md) — Privileged engine-only local script class.
