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.

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.
TextSizenumber28
1 to 1000

Scripts

StrokeColorColor3scripts only
StrokeThicknessnumberscripts only
StrokeTransparencynumberscripts only
Textstring"local part = Instance.new("Part")The Luau code on the screen, drawn in the Script window's colours with line numbers and a caret.

Layout

ScaleVector21, 1
Rotationnumber0Rotates the layer around its AnchorPoint, in degrees.

Layer

BlendModechoice"Normal"
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.
MatteModechoice"None"
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

InAnimationchoice"None"
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 to 1e+06
How long the In animation lasts; in Cook, drag the inner edge of its ramp to change it.
OutAnimationchoice"None"
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 to 1e+06
How long the Out animation lasts; in Cook, drag the inner edge of its ramp to change it.
SlideDirectionchoice"Left"
Left, Right, Up, Down
AnimationEasingchoice"Smooth"
Smooth, Linear, Back
AnimationStartnumber0
AnimationEndnumber-1

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 18
From CookClip 4
From BaseImageContent 6
From Instance 22