Rail
Slides and moves objects along its surface when powered and triggered. Useful for creating retractable pistons and actuators, for turrets or other retractable devices. Rails will only move objects connected on the relative top surface of the rail.
Rails have 2 configurations, Position1
and Position2
.
Both configurations should be between 0 and 100. These are percents of where the attached objects should slide to.
For example, if a rail was 50 studs long and Position2
was 50 or 50%, the attached objects will slide to the middle or at 25 studs.
The rail can only be activated through the use of polysilicons.
Activating
polysilicons will set the rail toPosition1
.Deactivating
polysilicons will set the rail toPosition2
.FlipFlop
polysilicons will act like a switch, setting toPosition2
ifPosition1
and vice versa.
Due to roblox physics, rails may act weirdly. To prevent this from happening, you should always place your rails first before anything else. It is recommended to attach objects on the rail after the rail is safely placed down.
It is a craftable and spawnable non-flammable solid.
Here is a list of possible sizes that reach the maximum malleability (200) that have integer components: 1x200x1, 1x100x2, 1x50x4, 1x40x5, 1x25x8, 1x20x10, 2x50x2, 2x25x4, 2x20x5, 2x10x10, 4x10x5, 5x8x5, 8x5x5, 10x5x4
At its default size (2x1x16) it has a durability of 1, at its maximum size it has a durability of 2.
By default, its colour is #edeaea.
It requires 5 Gear
, 4 Rubber
, and 3 Wire
to be crafted.
Methods
SetPosition(depth)
Sets the position of the rail.
The depth parameter is a number
.
Configurables
Position1
Determines the position of the first state of the rail. It is a number
.
It ranges between 0 and 100.
Position2
Determines the position of the second state of the rail. It is a number
.
It ranges between 0 and 100.
TweenTime
Determines the time it takes for the rail to change positions. It is a number
.
It ranges between 0.5 and 60.