Module 4 · In Studio
Challenges
A test in Studio grades it and prints a pass code.
Open
Level 3, Professional
Challenge
Finish the migration from the build step: every yard control on the Input Action System, nothing left on ContextActionService.
- Start from
- The game at milestone m14 (download)
- Grade it
- In Studio, press Play, then run
game.ServerScriptService.RunGameTests:Invoke("input-actions")in the server command bar. Copy the pass code from Output.
Done means
- ReplicatedStorage.Inputs holds two InputContexts, PlayContext and MenuContext, and MenuContext has the higher Priority and Sink on
- WrenchSwing (F, ButtonR2), CameraFieldOfView (Q, ButtonY) and OpenSettings (P, DPadUp) are Bool InputActions in PlayContext, each with a touch binding whose UIButton is set
- CloseShop (ButtonB, no touch button) is in MenuContext, and no yard action is left in ContextActionService
- challenges/input-actions.luau, run on the client, prints TEST PASS for all seven checks