Yuari
Documentation
Docs/Instances/Instance.new

Instance.new

Creates an instance through Roblox's own class registry (with a creatability check) and optionally parents it. Returns nil and logs a reason on failure (class not found, not creatable, etc.).

Syntax

Instance.new(className: string, parent?: any) -> Instance

Parameters

ParameterTypeDescription
classNamestringThe Roblox class name to match.
parent?anyThe parent value used by the call.

Returns

TypeDescription
InstanceInstance?

Description

Instance.new is part of the Instances library. Instances are live proxies backed by game memory. Property reads and method calls go through Roblox's own objects.

Each call creates or returns a fresh object or value that you can store and pass to other functions.

Example

local part = Instance.new("Part", workspace)
part.Name = "MyPart"
part.Position = Vector3.new(0, 10, 0)

Notes

  • Instance proxies are backed by live game memory.