Skip to content

SpawnOptions

The settings you pass to world.spawn to choose a new part's shape, position, size and look.

Fields

kind
string
Which shape the part is made in, and you always have to give it.
blockcylinderspherewedgeconetruss
name
string?
The part's Script Name, which must not already be in use or you get an error.
position
vector
Where the part is placed in the world, and you have to give it every time.
rotation
vector?
How the part is turned, as a rotation in degrees on each axis.
size
vector?
How big the part is in studs, which must be above 0 on each axis.
default 4, 1, 2
color
The part's color, which is grey when you leave it out.
tags
{ string }?
A list of tags to put on the part, which can hold at most 64.
parent
The group to put the part in, and leaving it nil puts it at the world root.
physics
{ enabled: boolean, density: number?, friction: number?, bounciness: number? }?
Settings that let the part fall and be pushed, and without them the part stays anchored in place.
audience
(Player | { Player })?
The only players who can see the part, given as one Player or a list of them, while everyone else is not sent it and walks through it.

Tip of the day

From: USBX

HOME Menu

Wii Menu

Wii Remote Settings