The programming language used to script games in Roblox Studio is Lua, specifically Roblox’s Luau dialect, which is based on Lua 5.1. This language controls gameplay logic, interfaces, character behavior, and interactive systems.
Roblox Studio is both the platform’s game-development environment and its primary creation tool. Developers use scripts to make objects respond to players, manage inventories, create quests, build menus, and connect game events. The visual editor handles much of the world-building, while code supplies the rules and behavior.
Strictly speaking, modern Roblox development uses Luau rather than untouched standard Lua. Luau was created by Roblox as a gradually enhanced, performance-focused dialect and was open-sourced under the MIT License in 2021. That distinction is useful for developers, but Lua remains the fair, canonical quiz answer.
C++ is also used internally in parts of the Roblox engine, but it is not the normal scripting language available for game logic in Studio. Java and Python are not Roblox’s primary in-platform scripting languages.