.LUAU

LUAU ファイル

Luau Script
質問する
クイック回答

.luauファイルは、RobloxがLua 5.1から派生させ、漸進的型システムを追加したスクリプト言語「Luau」で記述されたプレーンテキストのソースコードファイルです。Robloxのゲームやその他のLuauベースのソフトウェアを動かすコードを保持しています。Roblox Studio、Visual Studio Code、または任意のテキストエディタで開いたり編集したりでき、無料のluauコマンドラインツールで実行できます。

開発元: Roblox Corporation カテゴリ: 開発用ファイル オープンスタンダード MIME: text/x-lua
対応OS Windows macOS Linux Web
関連: .DO · .MD · .HEX · .XSD

このページの内容

19k+ 個の拡張子を索引済み
最終確認日:Sep 11, 2026

ファイルの種類がわかりませんか?

ファイルを識別ツールにドロップしてください。最初の数バイトを読み取って形式を特定します。

ファイルを識別する

LUAU ファイル形式とは?

.luauファイルは、.lua (Lua 5.1)から派生したRobloxのスクリプト言語であるLuauで書かれたソースコードを保持します。Roblox Corporationは2019年にLuauを開発者向けにリリースし、2021年にMITライセンスの下でオープンソースとして公開しました。このファイルはプレーンなUTF-8テキストであるため、あらゆるエディタで読み取ることができます。

LuauはLua 5.1との互換性を維持しつつ、漸進的型システム、型推論、文字列補間、およびサンドボックス化を追加しています。Roblox Studio内では、すべての Script、LocalScript、および ModuleScript が.luauファイルとしてディスクに保存されます。拡張子を分けることで、エディタやリンターが通常のLuaとしてではなく、Luauの構文として認識できるようになります。Roblox以外でも、RemedyやDigital Extremesなどのスタジオが自社のゲームエンジンにLuauを組み込んでいるため、Roblox以外の環境でも.luauファイルを見かけることがあります。

セキュリティと安全性

リスク: MEDIUM

A .luau file is plain-text source code and cannot run on its own; it only executes inside Roblox, the luau runtime, or another host that embeds Luau. Like any script, code from an untrusted source can perform unwanted actions when run, and the Roblox community has seen malicious model scripts (backdoors) shipped inside shared assets. Read the source before running it, and be cautious with obfuscated or copy-pasted scripts.

形式の詳細

概要
正式名称Luau Script別名 Luau source file, Roblox Luau script
開発元Roblox Corporation登場時期 2019
MIME タイプtext/x-lua
タイプPlain-text source code
標準規格オープン・ロイヤリティフリー

LUAU ファイルを開くプログラム

Windows4 apps
Sublime Text 有料 Open the file for editing and add a Luau or Lua syntax package for highlighting.
ROBLOX Studio 無料 Open a place or model and edit its Script, LocalScript, and ModuleScript objects; Studio reads and writes them as .luau on disk.
Visual Studio Code 無料 Open the .luau file directly; install the Luau Language Server extension for syntax highlighting, type checking, and autocomplete.
luau (CLI) オープンソース Run luau script.luau in a terminal to execute the file, or luau-analyze script.luau to type-check and lint it.
macOS3 apps
ROBLOX Studio 無料 Open a place and edit its script objects, which Studio stores on disk as .luau files.
Visual Studio Code 無料 Open and edit the .luau file; add the Luau Language Server extension for full language support.
luau (CLI) オープンソース Execute the file with luau script.luau or analyze it with luau-analyze script.luau from Terminal.
Linux3 apps
Visual Studio Code 無料 Open the .luau file and install the Luau Language Server extension for highlighting and diagnostics.
luau (CLI) オープンソース Build or download the binaries, then run luau script.luau to execute or luau-analyze script.luau to check the file.
Neovim オープンソース Edit the file and attach the Luau language server through nvim-lspconfig for type checking.
Web1 app
Roblox Creator Hub 無料 Manage projects whose scripts are saved as .luau; edit them in the browser-linked Studio environment.

技術的詳細

詳細仕様
EncodingUTF-8 plain text (ASCII-compatible)
Byte orderN/A (text, no multibyte header)
ContainerNone; flat source file
Typical sizeA few hundred bytes to tens of kilobytes
StructureHuman-readable Luau source code. May start with an optional mode directive comment (--!strict, --!nonstrict, or --!nocheck), followed by statements, function and type definitions. Type annotations on variables, parameters and return values are optional.
IntegrityNone built in
PlatformsWindows, macOS, Linux, Web (Roblox platform)
Language Derived FromLua 5.1
Type SystemGradual, structural type inference (opt-in annotations)
RuntimeC++ Luau VM with rewritten interpreter, incremental garbage collector, and native x64/ARM64 code generation
Line TerminatorLF or CRLF
NotesLuau is backward compatible with Lua 5.1 source, so many .luau files also run under a plain Lua 5.1 interpreter unless they use Luau-only syntax such as type annotations, string interpolation, or the continue keyword.
リリース日2019
最新バージョンN/A (rolling releases; no versioned file format)
オープンスタンダードはい · ロイヤリティフリー
仕様書luau.org

LUAU の変換

コミュニティ Q&A

ユーザーからの質問
質問する
LUAU ファイルを扱うユーザーからヘルプを得られます。OSやソフトウェアのバージョンなど、具体的に記載してください。
アカウント不要 ・ 通常1日以内に回答されます

まだ質問はありません。LUAU ファイルについて最初の質問をしてみましょう。

よくある質問

.luauファイルとは何ですか?
これは、RobloxがLua 5.1から派生させたスクリプト言語「Luau」で書かれたプレーンテキストのソースコードファイルです。Robloxのゲームや、Luauを組み込んだ他のソフトウェアを実行するコードが含まれています。
.luauファイルはどうやって開きますか?
Roblox Studioで開いてゲームスクリプトとして編集するか、Visual Studio Codeや任意のテキストエディタでソースを表示・編集できます。ターミナルから無料のluauコマンドラインツールを使用して実行することも可能です。
.luauと.luaの違いは何ですか?
どちらもLuaファミリーのソースコードを保持しています。.luauは、型注釈などの機能が追加されたRobloxのLuau方言で書かれたファイルであることを示します。Roblox Studioはスクリプトを.luauとして保存しますが、.luaは標準のLuaや古いRobloxのエクスポートで使用されます。
Roblox以外で.luauファイルを実行できますか?
はい。プロジェクトのGitHubリリースからオープンソースのluauバイナリをダウンロードし、luau yourfile.luauを実行してください。ただし、Roblox固有のAPIを呼び出すスクリプトは、Robloxエンジン以外では動作しません。
.luauファイルを開いても安全ですか?
テキストエディタで開く分には、単なるテキストなので安全です。実行する場合は、中のコード次第で安全性が決まるため、不明なソースからのスクリプト、特に難読化されたものは実行前に内容を確認してください。
なぜRobloxは.luaから.luauに切り替えたのですか?
拡張子を分けることで、エディタ、リンター、構文ハイライターが、単なるLuaとしてではなくLuau特有の構文をターゲットにできるようになり、ファイルの方言が一目で明確になるためです。

参考文献

1Luau (programming language) - Wikipediaen.wikipedia.org
2Luau official documentation (getting started)luau.org

さらに探索

データベース全体から

今週のトップ拡張子

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.JPGJPEG Image
4.EXEWindows Executable (Portable Executable)
5.DATProgram Data File (generic)
6.RPMSGRestricted Permission Message
7.PARTPartial Download File
8.DBSQLite Database File
9.BINCD/DVD Disc Image (BIN/CUE)
10.MDMarkdown Document

関連する拡張子

.DOStata Do-File
.MDMarkdown Document
.HEXIntel HEX File
.XSDXML Schema Definition
.MAPSource Map (JavaScript / CSS)
.CONFIGConfiguration File

無料ファイルツール

ブラウザで動作するファイル識別および画像変換ツール。すべてお使いのデバイス上で実行されます。

ツールボックスを開く

ファイル拡張子を A-Z で閲覧