creator
Creates an instance in Workspace.
Syntax
Signature
creator(Class: string, Position: any?, Size: any?, Color: any?, Parent: any) -> InstanceAliases
This function has no aliases.
Parameters
| Parameter | Type | Description |
|---|---|---|
Class | string | Class passed to Instance.new. |
Position | any? | Reserved and ignored. |
Size | any? | Reserved and ignored. |
Color | any? | Reserved and ignored. |
Parent | any | Required fifth argument. Its value is ignored. |
Returns
| Type | Description |
|---|---|
Instance | New 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)