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