Functions Intake
BrawlDev's Functions scripting tutorial was distilled into a Lumber Legacy rule for named, testable gameplay functions instead of repeated inline script blocks.
Accepted Learning
- Repeated logic should be wrapped in action-named functions.
- Defining a function is not enough; proof must show the call and the state change.
- Functions create readable boundaries for tree damage, log spawning, cargo state, money, shops, and UI refresh.
Created Artifacts
knowledge/roblox-studio/sources/video-note-functions-f7aFVY5lCW4-2026-05-16.mdknowledge/roblox-studio/patterns/function-wrapped-gameplay-logic-pattern.md- Updated scripting, gameplay, source registry, pattern index, and KB index routing.
Next Proof Candidate
LL_FUNCTION_WRAPPED_GAMEPLAY_LOGIC_PROOF: a source-controlled proof module that calls named functions for tree-health and cargo-slot transitions, then records before/after state.
Boundary held: local/project knowledge only. No Roblox publish, public release, Marketplace/Toolbox dependency, monetization, copied protected LT2/Lumber Inc material, Claude lane, or workspace-claude edit.