3 min read

Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.

Adventure game part 2

Lesson description: Students continue developing the adventure game. They'll create scripts for using tools, selling items, and upgrading their spaces.

Lesson objectives
  • Apply knowledge of if/then statements to create collectible items.
  • Demonstrate knowledge of functions to create functions that allow players to sell items and upgrade their spaces variable.
Prep
  • Download the starter tool and load it on every student's desktop.

Overview

Duration Activity Description
5 min Introduction Introduce the session.
50 min Guided Tutorial: Scripting Game Mechanics Have students create scripts for tools, selling items, and upgrading spaces.
5 min Wrap-up Reflect on project and recap concepts learned.

Lesson plan

Introduction

  1. Explain that students will be adding the core gameplay mechanics of the adventure game today: using a tool to collect items, selling items, and upgrading their spaces to collect more items.
  2. Point out that this session will be heavy on guided tutorials. The next session will be more free-form, so students can work on their own or catch up.

Guided tutorial - Script game mechanics

  1. Make sure all students have access to the starter tool.
  2. Lead students through the following tutorials:

Wrap-up

  1. Recap what students have created.
  2. Optional - Ask students what feature they're excited to work on or add tomorrow as they finish their games.

Appendix

Troubleshooting and classroom tips

General troubleshooting

Scripting tips

Facilitation tips

Customize the lesson

Expand the lesson