Module 5 · In Studio · challenge 2 of 2 in this lesson

A ScreenGui named BeaconSettings lives in LocalPlayer.PlayerGui with ResetOnSpawn = false and DisplayOrder > 20 (above the shop)

A test in Studio grades it and prints a pass code.

Open

Level 3, Professional

Challenge

Start from m14-ship. Add a music mute toggle to the existing BeaconSettings accessibility panel in src/client/SettingsGui.luau. The panel already draws above the shop. Have the button write and read LocalPlayer's MusicMuted attribute.

Press Play and run this in the client command bar. Copy the BY- code from PASS CODE: in Output when the checks pass.

luau
require(game.ReplicatedStorage.GameTests.RunChallenge)("ui", "ui-settings-menu")
Start from
The game at milestone m14 (download)
Grade it
In Studio, press Play, then run require(game.ReplicatedStorage.GameTests.RunChallenge)("ui", "ui-settings-menu") in the client command bar. Copy the pass code from Output.

Done means

  • A ScreenGui named BeaconSettings lives in LocalPlayer.PlayerGui with ResetOnSpawn = false and DisplayOrder > 20 (above the shop)
  • BeaconSettings contains a UIListLayout (or UIGridLayout) and a TextButton named MuteButton; use a Frame for tidy layout (self-check: the test accepts any layout under the gui)
  • The MusicMuted boolean attribute on LocalPlayer is what the UI follows, and MuteButton.Text updates whenever it changes (self-check: the test sets the attribute directly, so clicking the button is yours to try in Play)
  • challenges/ui.luau, run on the client, prints TEST PASS for ui_settings_gui, ui_settings_button and ui_settings_toggle

The Course Runner prints this code when the test passes.