Module 2 · In your browser · challenge 2 of 3 in this lesson

Stun.new(seconds) returns an object whose metatable is Stun

A code cell with the real Luau runner grades it. No Studio needed.

Open

Level 2, Builder

Challenge

Build the Stun class in the cell below. Passing the tests completes this challenge.

Start from
The Run cell below
Check it here
Run the code cell; the challenge completes when it passes. No Studio needed.

Done means

  • Stun.new(seconds) returns an object whose metatable is Stun
  • start(now) and active(now) live on Stun, not copied onto each object
  • Two Stun objects track independent timers and pass all assertions
Luau
Ctrl Enter runs the cell. Checked by tests