Module 8 · In Studio · challenge 3 of 3 in this lesson
MaterialService contains a MaterialVariant named beacon_yard_corrugated
A test in Studio grades it and prints a pass code.
Open
Level 3, Professional
Challenge
Ship the fifth variant and use it on the yard. The check (challenges/textures-pbr.luau) lives in the game repo at m14-ship, which includes the m13-art-pass art pipeline, and the steps are in challenges/solutions/textures-pbr.md. The game's own written steps for the same job are challenges/solutions/pbr-textures.md.
- Start from
- The game at milestone m14 (download)
- Grade it
- In Studio, press Play, then run
game.ServerScriptService.RunGameTests:Invoke("textures-pbr", "textures-pbr-variant")in the server command bar. Copy the pass code from Output.
Done means
- MaterialService contains a MaterialVariant named beacon_yard_corrugated
- Its BaseMaterial is CorrodedMetal and its StudsPerTile is greater than 0
- At least one part in Workspace.Yard uses it as its MaterialVariant, set by code (WorldLook slot and MapBuilder), not placed by hand
- The test prints TEST PASS for variant_present, variant_base and variant_applied