Intro to Coding and Game Design

Lesson Description: Get students creating and coding their first experience in Roblox. Learn how to build an obstacle course and code color changing blocks.

ISTE Standards: Innovative Designer 4a, 4c, 4d, Creative Communicator 6b, 6d

Lesson Objectives
  • Manipulate 3D parts to create an obstacle course.
  • Design and playtest an experience, focusing on a fun user experience.
  • Create scripts using variables and loops for in-game visual effects.
Skills and Concepts
  • Variable - A placeholder for information in code.
  • String - A variable that can store whole sentences, written in quotations.
  • Loop - A set of code that repeats until told otherwise.
Prep
  • Make sure each student has a Roblox account and knows their login information.
  • Print out handouts and prep presentation.
Materials

Overview

DurationActivityDescription
5 minIntroductionIntroduce the project and lesson structure.
30 minGuided Tutorial: Intro to StudioIntroduce the basics of Roblox Studio by building the first few pieces of an obstacle course.
60 minGuided Tutorial: Intro to CodingCreate scripts that change the colors of a part.
20 minIndependent Work: Finish Student ProjectsLet students catch up or continue building their project.
5 minWrap-upReflect on project and recap concepts learned.

Lesson Plan

Introduction

  1. Introduce the course:

    • Students will be making their own obby (obstacle course) that others can play.
    • Will also learn coding to create color changing parts to decorate their obby with.
  2. Make sure all students are actively logged into Roblox Studio. Note that if this is their first time, it's recommended to allot 5 minutes for this process in case any student has an issue logging in.

Guided Tutorial - Intro to Studio

  1. Lead students through the following tutorial: Introduction to Roblox Studio.

  2. As you teach, keep in mind the following:

    • Remind students to rotate their camera view to get an accurate view of their project.
    • Encourage students to use the Explorer, a foundational skill in Roblox Studio.

Guided Tutorial - Intro to Coding

  1. Inform students that they'll now start coding to add to their experience.

    • During this time, students should focus on coding and not continuing to work on their obby. They'll have time later to continue adding more parts or playtesting.
  2. Lead students through the following tutorials:

Independent Work - Finish Student Projects

  1. As students go into independent work, point out they have the following goals to achieve for their obstacle course.

    • A user can reach the end (with a reasonable level of difficulty).
    • Have a balance of easy and difficult jumps.
    • Be free of any unintended visual or code issues.
  2. Have students catch up with their coding projects. If finished, give them time to work on adding more to or improving their obstacle course.

  3. If there's time, two students can play-test each other's experiences and offer feedback.

Wrap Up

  1. Recap what students have created and vocabulary: variable, string, loop.
  2. Ask two or three students what they would add to their experience to improve it. For example, a more visually interesting endpoint or more challenging jumps

Appendix

Troubleshooting Tips

General Troubleshooting Tips

  • Introduce students to "Ask 3 Before Me": a student needs to ask three peers before asking the instructor for help.
  • Keep in mind students have different prior experience with computers. Emphasize exact steps when teaching, such as when to double-click or right-click.
  • Set strict time expectations for accomplishing a task, such as 1 minute to pick a color for a part, or two minutes to play test.

Intro to Studio

  • Emphasize that students are creating an experience that others can play, not just for themselves.
  • If you're running low on time, the lesson Colors and Materials can be optional.

Intro to Coding

  • The most common errors for students at this age are improper capitalization and typos.
  • Ask students leading questions rather than solving the issue for them as much as possible. This allows students to build valuable troubleshooting skills. For example: What symbols need to be around a string? - A quotation marks.

Customizing the Lesson

Expand the Lesson

Have students switch places and play-test each other's experience.

  • Start by having students offer feedback in the form of 2 Stars (What they liked) and a Wish (What they would want to see).
  • After receiving feedback, each student should implement a change based on feedback they received.

Extra Resources

If you're using this lesson as part of a workshop, we've included a description for public use.

Example Course Description: With over 60 millions users a month, Roblox is the world's largest social technology platform. But did you know that all Roblox experiences created by the users? Learn to create and code your own games using the free tools made available by Roblox. This is a perfect course for first time, aspiring game developers.

In this course, your student will:

  • Learn programming fundamentals with Lua.
  • Explore design thinking and 3D modeling by creating an obstacle course.
  • Take home a complete experience that can be played and shared online.