Module 1 · In Studio · challenge 2 of 2 in this lesson
Workspace has parts named RulerA and RulerB at least 4 studs apart
A test in Studio grades it and prints a pass code.
Open
Level 3, Professional
Challenge
For this stretch challenge, start from m14-ship and use the Luau you learn in Module 2. In edit mode, select RulerA then RulerB and press the plugin button to make the mark. Press Play and run the check in the server command bar:
game.ServerScriptService.RunGameTests:Invoke("studio-plugins")
- Start from
- The game at milestone m14 (download)
- Grade it
- In Studio, press Play, then run
game.ServerScriptService.RunGameTests:Invoke("studio-plugins")in the server command bar. Copy the pass code from Output.
Done means
- Workspace has parts named RulerA and RulerB at least 4 studs apart
- Your plugin creates Workspace.RulerMark exactly halfway between them
- RulerMark has a RulerDistance attribute equal to the distance, and is anchored with CanCollide off
- Self-check, the test cannot see it: running the plugin again replaces the older RulerMark, and Ctrl+Z undoes the change