creator

Creates an instance in Workspace.

Syntax

Signature
creator(Class: string, Position: any?, Size: any?, Color: any?, Parent: any) -> Instance

Aliases

This function has no aliases.

Parameters

ParameterTypeDescription
ClassstringClass passed to Instance.new.
Positionany?Reserved and ignored.
Sizeany?Reserved and ignored.
Colorany?Reserved and ignored.
ParentanyRequired fifth argument. Its value is ignored.

Returns

TypeDescription
InstanceNew instance parented to workspace.

Notes

Position, Size, Color, and Parent are currently ignored. The fifth argument must still be supplied, even if it is nil.

Example

Luau
local Object = creator("Part", nil, nil, nil, workspace)
print(Object)