Module 11 · In Studio · challenge 3 of 3 in this lesson
challenges/work/social_rules.luau offers the invite only after a lost drill, twice a session, 300 seconds apart
A test in Studio grades it and prints a pass code.
Open
Level 3, Professional
Challenge
Write the rules that keep Beacon Yard's invites, referrals, notifications and RSVP prompts honest. The test is on the game repo's main branch; run it with game.ServerScriptService.RunGameTests:Invoke("social-growth", "social-growth").
- Start from
- The game at milestone m14 (download)
- Grade it
- In Studio, press Play, then run
game.ServerScriptService.RunGameTests:Invoke("social-growth")in the server command bar. Copy the pass code from Output.
Done means
- challenges/work/social_rules.luau offers the invite only after a lost drill, twice a session, 300 seconds apart
- A referral pays once, after the friend's first drill, never for a self-referral, and an inviter earns at most 3 rewards a day
- notificationBody builds the Open Cloud body and rejects bad input; eventToPrompt skips running events
- The social-growth challenge prints TEST PASS for all 17 checks