Scripting / Function
Instance.new()
Creates a new unparented Glorpia instance of a supported class.
Syntax
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. |
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 = workspaceClass reference
PartPart defaults and BasePart inheritance.ModelGrouping and pivot operations.FolderHierarchy organisation.HumanoidHealth and movement properties.BasicSoundGlobal and spatial audio instance.ScreenGui2D player GUI container.SurfaceGuiPart-surface GUI container.BillboardGuiWorld-space GUI container.FrameGUI frame and container.ScrollingFrameScrollable GUI container.UIListLayoutHorizontal or vertical GUI layout component.UIGridLayoutGrid-based GUI layout component.TextLabelGUI text object with Enum.Font and Enum.FontStyle.TextButtonClickable GUI text object with client input signals.UICornerRounded GUI corners.UIGradientColour and transparency gradient component for GUI objects.UIBlurBackdrop blur component for GUI objects.BlurEffectWorld blur effect for Lighting.ColourCorrectionWorld colour correction effect for Lighting.LocalScriptPublic client-side script class; runtime PlayerGui, PlayerScripts and Character copies start when discovered.ServerScriptPublic server-side script class; enabled valid descendants start once when discovered.RemoteEventOne-way communication between LocalScripts and ServerScripts.RemoteFunctionRequest/response communication between LocalScripts and ServerScripts.ValueBaseShared Value and Changed API for value classes.BinaryStringValueBinary/string-like value class.BoolValueBoolean value class.CFrameValueCFrame value class.Colour3ValueColour value class.IntValueInteger value class.NumberValueNumber value class.ObjectValueInstance-reference value class.StringValueText value class.Vector3ValueVector3 value class.CoreScriptPrivileged engine-only script class.CoreLocalScriptPrivileged engine-only local script class.