Module 4 · In Studio · challenge 3 of 3 in this lesson

A second action named YardHint is bound on the client with ContextActionService:BindAction

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

Open

Level 3, Professional

Challenge

Add a YardHint action with ContextActionService without disturbing the wrench. (Use ContextActionService: the test reads it.)

Start from
The game at milestone m06 (download)
Grade it
To grade work from an earlier milestone, apply your challenge changes to a checkout based on m14-ship, which includes the Course Runner. In Studio, press Play, then run require(game.ReplicatedStorage.GameTests.RunChallenge)("input-mobile", "input-yard-hint") in the client command bar. Copy the pass code from Output.

Done means

  • A second action named YardHint is bound on the client with ContextActionService:BindAction
  • YardHint creates a touch button (createTouchButton = true) and binds Enum.KeyCode.G and Enum.KeyCode.ButtonL2
  • The WrenchSwing binding via ContextActionService is unchanged: touch button, F and ButtonR2
  • challenges/input-mobile.luau, run on the client, prints TEST PASS yard_hint

The Course Runner prints this code when the test passes.