Glorpia Docs
Scripting / Function

Instance.new()

Creates a new unparented Glorpia instance of a supported class.

Syntax

Instance.new(className)

Parameters and return value

NameTypeDescription
classNamestringClass to create.
returnInstanceThe newly created instance.

Supported classes

NameTypeDescription
PartBasePartGeneral-purpose physical part.
SpawnLocationBasePartCharacter spawn part.
ModelInstanceHierarchy group with pivot methods.
FolderInstanceHierarchy-only container.
HumanoidInstanceHealth and character movement controller.
BasicSoundInstanceGlobal or BasePart-emitted audio.
ScreenGuiInstance2D GUI container that renders from StarterGui/PlayerGui.
SurfaceGuiInstanceWorld-surface GUI container that renders when parented to a Part or SpawnLocation.
BillboardGuiInstanceWorld-space GUI container that renders when parented to a Part or SpawnLocation.
FrameInstanceRectangular GUI object used inside a valid GUI container chain.
ScrollingFrameInstanceScrollable rectangular GUI container.
UIListLayoutInstanceAutomatically arranges sibling GUI objects in a list.
UIGridLayoutInstanceAutomatically arranges sibling GUI objects into grid cells.
TextLabelInstanceText GUI object with selectable font families and styles.
TextButtonInstanceClickable text GUI object with client-side button signals.
UICornerInstanceRounds a Frame, TextLabel or TextButton background.
UIGradientInstanceApplies a two-endpoint colour/transparency gradient to a parent GUI object.
UIBlurInstanceBlurs the rendered 3D backdrop behind a parent GUI object.
BlurEffectInstanceLighting post-effect that blurs the rendered 3D world.
ColourCorrectionInstanceLighting post-effect for brightness, contrast, saturation and tint. ColorCorrection is accepted as an alias.
ServerScriptInstancePublic server script hierarchy object. Enabled copies start once when discovered under Workspace or ServerScriptService.
LocalScriptInstancePublic client script hierarchy object. Enabled copies start once when discovered under local PlayerGui, PlayerScripts or Character ancestry.
RemoteEventInstanceOne-way client/server communication object.
RemoteFunctionInstanceRequest/response client/server communication object.
BinaryStringValueValueBaseStores binary/string-like data through Luau strings.
BoolValueValueBaseStores true or false.
CFrameValueValueBaseStores a position and rotation.
Colour3ValueValueBaseStores an RGB colour. Color3Value is accepted as an American-spelling alias.
IntValueValueBaseStores a signed integer.
NumberValueValueBaseStores a number.
ObjectValueValueBaseStores an Instance reference or nil.
StringValueValueBaseStores text.
Vector3ValueValueBaseStores 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 = workspace

Class 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.