CodeScreen

Show code being typed, line by line, in the Script window's own colours. Key Progress from 0 to 1 and the code writes itself.

The Courtyard Corner, granite blocks, a pine crate, a blue barrel and a steel bucket on packed sand, a red ball in the air, late afternoon sun.
Before
The same frame with a CodeScreen, six lines of Luau on a dark panel across the lower half.
After

After: A CodeScreen with Progress 1, Text Size 34 and Background Transparency 0.15.

A CodeScreen draws its Text as Luau with line numbers, a caret and the Script window's colours, typed in as Progress goes from 0 to 1; key Progress and Text like any property. FontFamily, TextSize, LineHeight and Padding set the look. BackgroundTransparency is 1 by default, so only the code shows; set it to 0 for the Background panel. Use it as a video layer, or as a Part's Texture to put live code on a board in your scene.

Properties

Code

NameTypeDefaultDescription
BackgroundColor30.118, 0.122, 0.141The colour of the panel behind the code; set BackgroundTransparency to 0 to show it.
BackgroundTransparencynumber1
0 to 1
At 1 the screen paints only the code, line numbers and caret, so it sits over gradients; 0 shows the Background panel.
Caretbooleantrue
FontFamilystring"Cascadia Mono"
LineHeightnumber1.35
0.1 to 10
LineNumbersbooleantrue
Paddingnumber28
0 to 10000
Progressnumber1
0 to 1
Types the code in as it goes from 0 to 1; keyable.
Textstring"local part = Instance.new(\"Part\")\npart.Color = Color3.new(1, 0, 0)\npart.Parent = workspace\n"The Luau code on the screen, drawn in the Script window's colours with line numbers and a caret.
TextSizenumber28
1 to 1000

Scripts

StrokeColorColor3scripts only
StrokeThicknessnumberscripts only
StrokeTransparencynumberscripts only

Layout

ScaleVector21, 1
Rotationnumber0
any value
Rotates the layer around its AnchorPoint, in degrees.

Layer

BlendModechoiceNormal
Normal, Dissolve, Darken, Multiply, ColorBurn, ClassicColorBurn, LinearBurn, DarkerColor, Lighten, Screen, ColorDodge, ClassicColorDodge, Add, LighterColor, Overlay, SoftLight, HardLight, VividLight, LinearLight, PinLight, HardMix, Difference, Exclusion, Subtract, Divide, Hue, Saturation, Color, Luminosity, StencilAlpha, StencilLuma, SilhouetteAlpha, SilhouetteLuma, AlphaAdd, LuminescentPremul
Blends the layer with any of the Photoshop and After Effects blend modes.
MattesourceAny image used as this layer's matte: another track, an AOV or an image.
MatteModechoiceNone
None, Alpha, AlphaInverted, Luma, LumaInverted

Appearance

ColorColor31, 1, 1Tints the layer in the composite.
Transparencynumber0
0 to 1
Fades the layer.
VisiblebooleantrueOff inside the video's Tracks, the screen follows the video's clock without showing as a layer.

Animation

InAnimationchoiceNone
None, Fade, Slide, Pop, Typewriter, Wipe
How the layer animates in at its clip's In point; applied when drawn, so keys and scripts are untouched.
InDurationnumber0.5
0 or more
How long the In animation lasts; in Cook, drag the inner edge of its ramp to change it.
OutAnimationchoiceNone
None, Fade, Slide, Pop, Typewriter, Wipe
How the layer animates out at its clip's Out point; applied when drawn, so keys and scripts are untouched.
OutDurationnumber0.5
0 or more
How long the Out animation lasts; in Cook, drag the inner edge of its ramp to change it.
SlideDirectionchoiceLeft
Left, Right, Up, Down
AnimationEasingchoiceSmooth
Smooth, Linear, Back
AnimationStartnumber0
any value
AnimationEndnumber-1
any value

Layer Style

FillOpacitynumber1
0 to 1
Like Photoshop's Fill: fades the layer's own pixels but not its layer styles.
From CookLayer 6
From Base2D 19
From CookClip 4
From BaseImageContent 6
From Instance 22