What Is a "Code" in Roblox?

TIME : 2016-01-07
What Is a "Code" in Roblox?

In Roblox, what most people call a code is really a script — and scripts are the mechanism through which almost everything in a game gets built.

They are written in Lua, adapted by Roblox into its own variant with an API for handling parts, physics, player input, and data. When someone scripts on Roblox, they are creating behaviour: a door that opens when touched, a leaderboard that tracks scores, a weapon that fires.

The distinction is worth keeping straight, because "Roblox code" gets used online to mean two entirely different things — the scripts that make a game work, and the promotional codes you redeem for cosmetic items. Only the first is programming.