Please enable JavaScript to use CodeHS


AP Computer Science Principles in Roblox

In this course, students utilize Roblox Studio and Lua to learn programming concepts. Students will build worlds and games in Roblox, and they will be encouraged to use Roblox for their Performance Task assessment. In addition, they will explore computer science concepts through Roblox simulations.

Overview & Highlights

High School
Contact Hours

Course Overview

To view the entire syllabus, click here or click to explore the full course.

Getting Started with Roblox
In this module, students will learn the basics of programming while becoming familiar with coding in Roblox Studio. The basic lesson structure will include an introductory programming concept in the CodeHS editor. Then, students will apply this concept to programming in Roblox Studio.
User Interaction and Control Structures
In this module, students extend their understanding of programming in Lua to use control structures to create more complex programs. Students also learn about the Humanoid object and how to use Touched Events to make their programs interactive.
Practice PT: Pair-Programming Obby
In this practice performance task, students will practice and use pair programming to create an obby (obstacle course) that utilizes at least six parts, a script, a function, a loop, variables, and a conditional statement.
Parameters and Return Values
In this module, students learn how to write reusable code with functions and parameters.
Practice PT: Scavenger Hunt
In this practice performance task, students will create a scavenger hunt in Roblox. They will work on creating milestones and using pseudocode to program game instructions that direct the user to find items hidden in the world. They will iterate and test their code along the way to make sure they have solved each milestone.
Data Structures
In this module, students learn about arrays as a way to store data more efficiently in their programs. They learn how to loop through arrays to access elements within an array and how to use folders to organize parts in Roblox Studio.
Digital Information
In this module, students learn about the various ways to represent information digitally including number systems, encoding data, programmatically creating pixel images, comparing data encodings, and compressing and encrypting data.
Practice PT: Create a Color Filter!
In this practice performance task, students pair up with a partner to develop a novel color filter that can be applied to a folder of parts in Roblox Studio. They will describe their color filter, and their development process, and embed their filter along with its description on their personal portfolio website.
Practice PT: Steganography
In this practice performance task, students will encrypt a secret message within the color code of Roblox parts! The player will be able to decrypt the message by clicking on each part.
The Internet
In this module, students explore the structure and design of the internet, and how this design affects the reliability of network communication, the security of data, and personal privacy. Students will learn about the protocols and algorithms used on the internet and the importance of cybersecurity.
Project: The Effects of the Internet
In this project, students will choose an innovation that was enabled by the Internet and explore the positive and negative impacts of their innovation on society, economy, and culture. Students will develop a computational artifact that illustrates, represents, or explains the innovation’s purpose, function, or effect.
In this module, students will explore using computational tools to store massive amounts of data, manipulate and visualize data, find patterns in data, and draw conclusions from data. Students will consider how the modern wealth of data collection has impacted society in positive and negative ways.
Project: Present a Data-Driven Insight
In this project, students will work with a partner to answer a question of personal interest using a publicly available data set. Students will need to produce data visualizations and explain how these visualizations led to their conclusions. They will develop a computational artifact that illustrates, represents, or explains their findings, and communicate their findings to their classmates.
Project: The Impact of Computing
In this project module, students will explore computing innovations, reflect on how data can be collected and used, and consider the privacy and security concerns when person information is collected.
Create Performance Task
Students will be given the chance to review course content and practice the skills necessary to complete each performance task.
AP Exam Review
Students review of the topics covered in the course and practice solving AP Exam-style multiple-choice questions.
Creative Development
In this module, students will brainstorm their own final project, discuss their ideas with their peers, scope their project to fit within the time constraints of the class, plan out milestones for incremental development, and create their own final product from scratch. This project allows students to think creatively about the applications of the concepts covered in the course, and create something of personal value.

Offline Handouts

Demo Programs

Explore programs that your students will build throughout this course!

Course Resources

Here are a few examples of teacher resources and materials to use in the AP Computer Science Principles in Roblox course


AP Computer Science Principles in Roblox is aligned with the following standards

Standards Framework View Alignment
AP Computer Science Principles 2020 View (100%)

Customizable Assignments

Create and organize Assignments in any CodeHS course that you're teaching. You can even add custom assignments to pre-existing CodeHS courses.

Learn More

Actions for Teachers

Didn’t find what you were looking for? Here are a few links that might be useful to you.

You also might like

Related Courses