Menu
Coddy logo textTech
lua iconLua ジャーニーの一部ジャーニー

Luauを学ぶ

無料のインタラクティブなLuau講座です。LuauはRobloxで生まれた漸進的型付けのLua方言で、すべてのRobloxゲームで使われています。毎レッスンで実際にLuauを書きます - 型注釈、型付きテーブル、ユニオン型、リテラル型、ジェネリクス、strictモード。型エラーで詰まったときはAIヒントが助け、修了すると証明書が出ます。Lua学習パスの4番目のセクションなので、Luauの土台となるLuaの基礎はすぐ隣にあります。

68,940+ 人のcoddersが登録中

73 レッスン57 チャレンジ420 クイズの問題

  • 初心者向け
  • sparkles iconAIによるコーディングサポート
  • hint icon実践的なインタラクティブレッスン
  • volume On icon全レッスンに音声ナレーション付き
  • quiz icon知識を確かめるクイズ
  • certificate icon無料の修了証明書

シラバス

1 セクション2 プロジェクト73 レッスン57 チャレンジ420 クイズの問題

このセクションは Lua ジャーニーの一部です。シラバス全体にはさらに多くのセクションがあります - 下のプレビューをクリックして、ジャーニーページで確認してください。

  1. セクション 1基礎90 レッスン
  2. セクション 2ロジックと制御フロー54 レッスン
  3. セクション 3オブジェクト指向プログラミング70 レッスン
  4. セクションを始める開始開く閉じる漸進的型システムを備えたLuaであるLuauで、Luaのスキルをさらに向上させましょう。型注釈、型付きテーブル、共用体(Unions)、ジェネリクスなどを学び、コードを実行する前にバグを検出できるようにします。

    Luauのはじめ方

    5 レッスン232

    基本の型

    7 レッスン748

    型付きテーブル:配列とマップ

    9 レッスン863

    関数を扱う

    8 レッスン856

    エイリアス、ユニオン、インターセクション

    7 レッスン748

    テーブルの形状の型定義

    8 レッスン755

    プロジェクト:Typed Task Manager

    プロジェクト6 レッスン1

    Enum、Luau流のアプローチ

    6 レッスン539

    ジェネリクス:概要

    6 レッスン539

    プロジェクト:汎用インベントリ

    プロジェクト5 レッスン1

    高度なトピック

    6 レッスン640
使える機能
コーディングを学ぶために使うすべて

Learn by Doing

Write real code, query databases, build websites, and master AI prompts. Our interactive lessons cover every skill modern developers need.

playground.js
Code Editor
1const greeting = "Hello, Coddy!"
2function sayHi(name) {
3    return greeting + " " + name
4}
5
bottombar Collapse icon
Test #1test Case Success icon
Test #2test Case Success icon
Test #3test Case Failure icon
Input
"Alex"
Output
"Hello, Coddy! Alex"

Build Your Coding Streak

Stay consistent and watch your progress grow! Track your daily coding habit, protect your streak with freeze days, and earn rewards for showing up every day.

12 days streak

Return tomorrow to keep your streak!

fire Filled icon
left icon

January 2026

right icon

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

21

22

23

24

25

26

27

28

29

30

product Double Or Nothing icon

Double or Nothing

Day 5 of 7

fire Freeze icon

Streak Freeze

2 left

Code Anywhere, Anytime

Take your coding journey on the go! No setup, no downloads - just open and start coding. Available on iOS, Android and Web with 4.9 star ratings.

Python
7Streak
250Score
5Energy
Variables
journey Hex Done Base iconjourney Hex Done Shadow iconjourney Hex Done Top iconjourney Lesson Done icon
journey Path Right Done icon
journey Hex Done Base iconjourney Hex Done Shadow iconjourney Hex Done Top iconjourney Lesson Done icon
journey Path Left Done icon
journey Hex Active Base iconjourney Hex Active Shadow iconjourney Hex Active Top iconjourney Lesson Theory Challenge icon
CONTINUE
journey Path Right icon
journey Hex Locked Base iconjourney Hex Locked Shadow iconjourney Hex Locked Top iconjourney Lesson Theory Challenge icon
journey Path Left icon
journey Hex Locked Base iconjourney Hex Locked Shadow iconjourney Hex Locked Top iconjourney Lesson All icon
Journey
Goals
Leaderboard
Profile
4.9
StarStarStarStarStar
Rating

You're Not Alone in This

Compete on global leaderboards, invite friends to earn rewards, and celebrate each other's wins. Coding is better with friends!

Challenger League
Challenger LeagueTop 7 advance
leaderboard First icon1
avatar 1 icon
fire Filled icon
Alex7+ Days
2840
leaderboard Second icon2
avatar 2 icon
fire Filled icon
Jordan7+ Days
2650
leaderboard Third icon3
avatar 3 icon
fire Filled icon
Sam7+ Days
2420
4
avatar 4 icon
Casey
2180
5
avatar placeholder icon
fire Filled icon
Morgan7+ Days
1950
leaderboard Arrow Up iconPromotion zoneleaderboard Arrow Up icon

Every way to learn

Read, listen, test yourself, ask the AI, or look up anything you've already covered. Every lesson meets you where you are.

Intro to Variables
Audio

A variable is a named container that stores a value you can reference later in your program.

In Python, you create one by writing the name, an equals sign, then the value you want to store.

The value can change over time - reassigning the name simply points it to a new value.

1xSarah

Prove Your Skills

Earn certificates for every course you complete. Add them to your LinkedIn profile and resume to showcase your coding expertise to employers.

CoddyCertificate of Completion
This certifies thatJohn Doehas successfully completed
PythonPython Fundamentals
Verified
DateJan 2026
LinkedInAdd to LinkedIn

CoddyでLuauを学ぶ理由

  • ブラウザでLuauを実行。Roblox Studioも、自分でビルドするluau CLIも、エディタ拡張も不要 - 型付きコードを書けば、出力と型エラーがその場で確認できます。
  • 型システムを少しずつ: 型注釈、any/unknown/never?によるオプショナル型、型付き配列とマップ、関数型、型エイリアス、ユニオン型と交差型、リテラル型、テーブルの形、列挙、ジェネリクス、型ガード。
  • 素のLuaにはないLuau固有の構文: バッククォートによる文字列補間、複合代入(+=..=)、continueif ... then ... else式、汎用イテレーション、table.freeze
  • AIヒントはLuauの型エラーが実際に何を伝えているかを、答えを渡さずに説明します。次のエラーは自分で読めるようになります。

Luau学習に関するよくある質問

Luauとは何ですか?

LuauはLua 5.1から派生したプログラミング言語で、Robloxが開発しオープンソース化しました。Luaの構文と速度をそのまま受け継ぎつつ、漸進的な型システムを追加しているため、コードのどこにどれだけ型を付けるかは自由です。すべてのRobloxゲームのスクリプト言語であり、高速で組み込みやすいスクリプト言語として単体でも使われています。

LuaとLuauの違いは何ですか?

LuauはLua 5.1のスーパーセットで、一部機能が取り除かれています。最大の追加点は型です: local hp: number = 100、型エイリアス、ユニオン型、ジェネリクス、そして3つのチェックモード(--!nocheck--!nonstrict--!strict)。さらにバッククォートによる文字列補間、+=..=などの複合代入演算子、continueif ... then ... else式、切り捨て除算//、汎用イテレーション、table.freezeなどの関数が加わります。一方でサンドボックス化のためloadstringloadfiledofileは削除されています。通常のLuaコードは基本的にそのままLuauとして動きます。

Luauの前にLuaを知っておく必要がありますか?

はい。Luauは型が乗ったLuaなので、テーブル、関数、メタテーブル、スコープは同じです。だからこのセクションはLua学習パスの4番目にあります。まず「基礎」「ロジックとフロー」「オブジェクト指向」を進めてもよいですし、Luaに慣れているなら直接ここから始められます。

LuauはRobloxのスクリプティングと同じものですか?

Luauは言語そのもので、Robloxのスクリプティングは言語+RobloxエンジンAPI(gameworkspaceInstance.new、イベント、サービス)です。この講座は言語そのものを扱います - どのLuauプロジェクトにも通じ、実際のRobloxコードを読み始めたときにつまずきやすい部分です。レッスンはブラウザ上で単体のLuauを実行するため、RobloxのエンジンAPIはここでは使えません。言語が身につけば、Roblox APIは学び直す言語ではなく調べるドキュメントになります。

Luauの型システムはTypeScriptに似ていますか?

考え方は同じで、動的な言語の上に任意の静的型を載せ、実行前に検査します。ユニオン型、ジェネリクス、リテラル型、絞り込みなど多くの概念がそのまま通じます。構文は異なり(local x: numbertype Point = { x: number, y: number }、関数型は(number) -> string)、Luauは注釈がなくても多くを推論します。TypeScript経験者なら1〜2レッスンで慣れるはずです。

Luauを無料でオンライン学習できますか?

はい。Luauセクションはすべて無料です - レッスン、コーディング演習、プロジェクト、クイズ、修了証まで。luauランタイムはブラウザのエディタに組み込まれているので、最初の型付き関数を書く前にインストールや設定は一切不要です。
Coddy programming languages illustration

Learn Luau入門 with Coddy

始める