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
| Name | Type | Default | Description |
|---|---|---|---|
| Background | Color3 | 0.118, 0.122, 0.141 | The colour of the panel behind the code; set BackgroundTransparency to 0 to show it. |
| BackgroundTransparency | number | 1 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. |
| Caret | boolean | true | |
| FontFamily | string | "Cascadia Mono" | |
| LineHeight | number | 1.35 0.1 to 10 | |
| LineNumbers | boolean | true | |
| Padding | number | 28 0 to 10000 | |
| Progress | number | 1 0 to 1 | Types the code in as it goes from 0 to 1; keyable. |
| TextSize | number | 28 1 to 1000 |
Scripts
| StrokeColor | Color3 | scripts only | |
| StrokeThickness | number | scripts only | |
| StrokeTransparency | number | scripts only | |
| Text | string | "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
| Scale | Vector2 | 1, 1 | |
| Rotation | number | 0 | Rotates the layer around its AnchorPoint, in degrees. |
Layer
| BlendMode | choice | "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. |
| Matte | source | Any image used as this layer's matte: another track, an AOV or an image. | |
| MatteMode | choice | "None" None, Alpha, AlphaInverted, Luma, LumaInverted |
Appearance
| Color | Color3 | 1, 1, 1 | Tints the layer in the composite. |
| Transparency | number | 0 0 to 1 | Fades the layer. |
| Visible | boolean | true | Off inside the video's Tracks, the screen follows the video's clock without showing as a layer. |
Animation
| InAnimation | choice | "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. |
| InDuration | number | 0.5 0 to 1e+06 | How long the In animation lasts; in Cook, drag the inner edge of its ramp to change it. |
| OutAnimation | choice | "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. |
| OutDuration | number | 0.5 0 to 1e+06 | How long the Out animation lasts; in Cook, drag the inner edge of its ramp to change it. |
| SlideDirection | choice | "Left" Left, Right, Up, Down | |
| AnimationEasing | choice | "Smooth" Smooth, Linear, Back | |
| AnimationStart | number | 0 | |
| AnimationEnd | number | -1 |
Layer Style
| FillOpacity | number | 1 0 to 1 | Like Photoshop's Fill: fades the layer's own pixels but not its layer styles. |
