Lesson 6 of 6
AI for art: local models, Studio generation, licensing and ethics
Use AI texture tools without breaking a licence or crossing ethical lines. Compare Studio's Material and Texture Generators with local models in ComfyUI, read the SDXL-Turbo and FLUX.1-schnell licences, follow Roblox's terms and disclosure rules, and review every image before it ships.
By the end you can
- Tell Studio's Material Generator, Texture Generator and mesh generation apart, say what a local ComfyUI model adds, and where GenerationService fits
- Read a model's licence card, and say why Beacon Yard's course content cannot include SDXL-Turbo outputs while a permissively licensed model could
- Apply consent, style-mimicry and disclosure rules, review a generated texture for seams and moderation risk, and keep a record of where it came from
Before this: PBR textures: maps, Material Maker, Substance and CC0 libraries
1The texture the course did not ship
Beacon Yard once planned a texture for its walkway that came from an AI image model. It never shipped. Here is what the repo says about it:
Up to `m12`, the walkway slot (`STEEL_PLATE_COLOR_MAP_ID`) was meant for a steel plate generated with ComfyUI and SDXL-Turbo, and the other texture slots for images from Studio's material generator. A model's licence decides whether you may ship what it generates, and that is hard to check. From `m13` the texture slots are these four CC0 sets, so every image has a licence you can read.
The reason is one sentence long: a model's licence decides whether you may ship what it generates. This lesson is about reading that licence before you press Generate.
According to the repo's credits file, why do the m13-art-pass textures come from four CC0 sets instead of generated images?
Answer
A model's licence decides whether you may ship its output, and that is hard to check; a CC0 set has a licence you can read. The credits file says the licence of the model decides whether generated output may ship, and that this is hard to check. CC0 sets avoid the question.
Open this step in lesson mode · Link to this step · This confused me
2Studio's two generators
Studio has two built-in tools, and they are made for different jobs. The Material Generator turns a phrase into a tileable material variant: you type words such as "stained glass", pick a result, set Studs Per Tile, choose a base material that supplies the physical properties, and save1. The Texture Generator paints a mesh you select. Its Fast mode makes a 1K diffuse texture in under 30 seconds and applies it as a texture id on the MeshPart; its Quality mode makes a 4K PBR texture, takes a couple of minutes, and applies it as a SurfaceAppearance. Roblox says it is best for assets where the texture depends on the object, and that the Material Generator suits repeating surfaces such as a wood floor2.
Both tools write what they make into your place and your inventory, which brings a licence question of its own, covered in a few steps.
Match each Beacon Yard surface to the Studio generator that fits it.
Answer
The walkway, which repeats every 8 studs: Material Generator; The drone's body mesh, painted once: Texture Generator; A quick 1K draft for the beacon: Texture Generator, Fast mode; A 4K PBR set on the drone, parented as a SurfaceAppearance: Texture Generator, Quality mode. The Material Generator makes tileable variants such as the walkway's. The Texture Generator paints a selected mesh such as the drone, with Fast giving a 1K diffuse texture and Quality a 4K PBR set.
Open this step in lesson mode · Link to this step · This confused me
3A model on your own computer
ComfyUI is a program that runs image models on your own machine. You wire a model, a prompt and a save step into a graph and run it3. The model weights come in a file called a CheckpointCheckpointThe file of trained weights that an image model runs from.Think of it as the recipe book an image program cooks from.. ComfyUI is licensed under GPL-3.0, but that is the licence of the program. It says nothing about the checkpoint you load into it, which has its own card and its own terms.
A texture for a repeating surface must be a Seamless tileSeamless tileAn image whose left edge continues its right edge and whose top continues its bottom, so it repeats without visible lines.Think of it as wallpaper that lines up wherever you hang the next strip.: the left edge must continue the right edge, and the top the bottom. You can check this by pasting four copies in a two-by-two square and looking for lines. You can also measure it. This cell measures how far the opposite edges of a tiny four-by-four "image" differ:
local tile = {
{ 1, 4, 7, 2 },
{ 2, 5, 8, 3 },
{ 3, 6, 9, 4 },
{ 4, 7, 1, 5 },
}
local function seamError(t: { { number } }): number
local n = #t
local sum = 0
for i = 1, n do
sum += math.abs(t[i][n] - t[i][1]) -- right edge to left edge
sum += math.abs(t[n][i] - t[1][i]) -- bottom edge to top edge
end
return sum / (2 * n)
end
print(seamError(tile))
2.375What does seamError return for a perfectly seamless tile?
Answer
0. Every difference is zero, so the average is zero. Real images are never exactly zero, so you pick a threshold and look at the tile as well.
Open this step in lesson mode · Link to this step · This confused me
4Three licences, not one
Every generated picture sits under three separate sets of terms, and mixing them up is the usual mistake.
| In the picture | In Roblox |
|---|---|
| The oven's rental agreement | The model licence on the checkpoint's card |
| The oven itself | The program that runs it, such as ComfyUI, with its own licence |
| The cake | The generated image and the output terms around it |
Think of renting an oven. The oven's rental terms say who may bake with it and whether you may sell what you bake. The cake belongs to you, but the rental terms can still limit what you do with it.
Think of it as Renting an oven: the rental terms are separate from the cake you bake
The model licence is the rental agreement for the weights. The tool licence covers the program that runs them, and the output terms say what you may do with the picture. Here is what the sources say today.
Where a texture can come from, and its terms
| Option | What it is | When pros pick it | Trade-offs |
|---|---|---|---|
| SDXL-Turbo (Stability AI) | A fast image model. Its card lists the licence as sai-nc-community, which is the Stability AI Community Licence. | Personal and research use, and limited commercial use for organisations under 1 million US dollars of yearly revenue that register with Stability AI. | Beacon Yard's content is CC BY 4.0, which lets every reader use it commercially, so this course does not ship SDXL-Turbo output. The licence text says you own the output, but sets commercial conditions on the model; we did not want to rely on a reading of that. This is not legal advice. |
| FLUX.1 [schnell] (Black Forest Labs) | A fast image model. Its card lists the licence as Apache-2.0. | A permissive licence suits a CC BY project, so this is the model the course would choose for generated art. Downloading the weights from Hugging Face needs a free login. | The course has not generated or shipped anything with it, so nothing in the repo depends on it. A sibling model, FLUX.1 [dev], carries a non-commercial licence, so always read the card of the exact checkpoint you download. |
| Studio Material and Texture Generators | Roblox's own tools, run on Roblox's servers. | Quick materials and mesh textures inside Studio, under Roblox's Terms of Use for AI features. | Roblox says it does not claim ownership of new IP in your outputs, that outputs may not be unique, and that you are responsible for how you use them. |
| CC0 libraries (ambientCG, Poly Haven) | Photographed or procedurally made texture sets, dedicated to the public domain. | Any project, including this one. It is what Beacon Yard's m13-art-pass uses. | Not unique, and not always your style. |
| Painting it yourself | Material Maker, Substance, Krita or Blender. | Hero assets and anything that must match a style. | Slower; paid tools cost money. |
Match each item to the kind of terms that governs it.
Answer
The sd_xl_turbo checkpoint file: The model licence on its Hugging Face card; The ComfyUI program: The tool licence: GPL-3.0; The PNG a model produced for you: The output terms, plus any limits in the model licence; A texture from ambientCG: CC0 1.0, a public-domain dedication. A GPL program can load weights under any licence, and an image's rights can depend on both the model's terms and the law where you live.
Open this step in lesson mode · Link to this step · This confused me
5Read the card before you download
A licence is not a label to skim. The full SDXL-Turbo licence text4 is short enough to read in one sitting, and the FLUX.1 [schnell] card5 names its licence in its metadata. The one habit that prevents trouble is reading the card of the exact checkpoint, on the day you use it. Hugging Face shows the licence in the model's metadata, and you can read it as data. Today these two cards read:
Evidence, figure 5.1model-licences.log
# Model licences, read from the Hugging Face API on 2026-11-23
stabilityai/sdxl-turbo license: other license_name: sai-nc-community
black-forest-labs/FLUX.1-schnell license: apache-2.0 license_name: None
black-forest-labs/FLUX.1-dev license: other license_name: flux-1-dev-non-commercial-license
You want to add a generated texture to this CC BY 4.0 course repo. Using only the cards above, which model is the better candidate?
Answer
FLUX.1 [schnell], whose card lists Apache-2.0. A permissive licence is compatible with CC BY content. The non-commercial and community licences add conditions, and ComfyUI's GPL-3.0 covers the program, not the weights.
Open this step in lesson mode · Link to this step · This confused me
6What Roblox says about its own AI tools
For Studio's generators, the terms are Roblox's. Its Terms of Use say that Roblox does not assert ownership of new intellectual property in your outputs, that outputs may not be unique, and that you are responsible for them and for what you prompt6. A separate page covers training data: when you publish a game, you can choose whether Roblox may use it to improve its AI models. The setting is on by default for games published on or after 10 July 2024, and you can change it at any time7.
If your game itself talks to players through AI, the Creator Terms add duties: say that it is AI, and say that its output is artificial and may be wrong6. Beacon Yard has no such feature.
Which statements match Roblox's Terms of Use for AI features?
Answer
Roblox does not claim ownership of new IP in your outputs; Another user may receive a similar output; You are responsible for how you use an output. The terms say Roblox does not assert ownership, that outputs may not be unique, and that you are responsible. They offer no guarantee about third-party rights.
Open this step in lesson mode · Link to this step · This confused me
7A generated mesh: keep it or rebuild it?
Studio's Assistant can also make a textured 3D mesh. Type /generate_mesh and a prompt, or give it a reference image instead (one or the other, not both). If you select a Part first, the mesh is made to fit inside that Part's box, and you can ask for a maximum triangle count, which defaults to 10,0008. The same Roblox terms apply as for the texture tools.
Games can generate at runtime too. GenerationService uses Roblox's Cube 3D model: a server script calls GenerateModelAsync with a prompt and a schema, such as the predefined Car5, and gets back a model made of several MeshParts. It throws when a prompt is rejected or generation times out, so wrap it in pcall. Its older GenerateMeshAsync is scheduled for deprecation9. Everything these APIs take in and give back goes through Roblox's moderation10.
Build along
assets/textures/CREDITS.md
In a copy of your place, add a Part where a scrap crate could sit and select it.
You should see A plain Part about 4 by 3 by 4 studs sits by the shop, selected.
Open Assistant and enter
/generate_mesh a rusty scrap crate, low poly, flat colours, asking for at most 2,000 triangles.You should see Assistant adds a mesh that fits inside the selected Part's box. Delete the Part afterwards.
Look at the crate from the player's height next to the yard's metal surfaces. Decide whether to keep it or rebuild it in Blender from the course's art lessons.
You should see Your notes say keep or rebuild, with reasons: triangle count, silhouette, how its texture sits next to the CC0 metal, and any text, logo or odd detail.
Add the crate to your asset log in the same shape as the texture rows.
You should see A row in your log names the tool, the prompt, the date, Roblox's terms as the licence, any moderation message you saw, and your decision.
You want players to generate their own scrap crate during a round. Which plan matches the docs?
Answer
A server script calls GenerationService:GenerateModelAsync inside pcall, and treats a rejected prompt or a timeout as a normal outcome. Runtime generation is a server call that can fail for reasons outside your code. Plan the fallback (a stock crate) before you plan the prompt.
Open this step in lesson mode · Link to this step · This confused me
8Ethics: consent, style mimicry and disclosure
A licence tells you what is permitted on paper. Ethics asks how the asset was made and what you owe the artists and players around your game. Three questions come up on every real team:
- Consent and training data. Image models learn from large sets of existing art, often scraped without the original artists' consent. On Roblox itself, AI data sharing lets you opt out of Roblox using your published experience for training7. When consent matters to your team or audience, CC0 libraries and hand-painted textures avoid the question entirely.
- Style mimicry and authorship. Do not prompt for a living artist's name or copy a recognisable studio or franchise style: it undermines the artist's livelihood and can violate Roblox's Community Standards on intellectual property11. The U.S. Copyright Office also states that purely prompt-generated material lacks human authorship and cannot be registered for copyright in the United States12.
- Disclosure. Players and platforms increasingly expect honesty about where AI was used. Roblox requires disclosing interactive AI features in the Content Ratings Questionnaire and to players during sessions10, and outside Roblox, stores such as Steam require developers to disclose pre-generated and live-generated AI content on their store page13. Keeping a clean record of every generated asset lets you answer truthfully anywhere you ship.
Legal is a floor, not a ceiling
A permissive licence lets you ship an image, but it does not settle consent, style mimicry or what you owe players. Teams that want a clear conscience keep a paper trail and disclose honestly, or reach for CC0 sets and original art instead.
Which of these are responsible practices when working with AI-generated game art?
Answer
Avoiding prompts that imitate a named living artist's style; Recording the tool, prompt and licence so you can disclose AI use accurately; Checking opt-out settings like Roblox's AI data sharing for your own published work. Avoid mimicking living artists, keep an honest paper trail for platform and player disclosures, and know your consent controls. Never misrepresent AI output as hand-painted work.
Open this step in lesson mode · Link to this step · This confused me
9Review every image before it becomes an asset
A generated texture is a draft. Look at it on the real surface before you upload it. Reject it for visible seams, repeating blobs, text or logos, a recognisable copyrighted style, or anything a person could find offensive. Roblox's rules point the same way. Its guidance for generative AI says content you ship must follow the Community Standards, and that if you use a third-party model you are responsible for what it delivers, even when AI made it1011. Roblox's Avatar Setup docs warn that a newly imported model goes into a moderation queue, can be rejected, and can be appealed14. Plan for the same care with any asset you upload.
Before you upload any image, enable Asset Privacy in Creator Dashboard, Settings, Advanced (Opt-in to restrict assets on creation). Without that toggle on, newly uploaded Images default irreversibly to Open Use; once Asset Privacy is enabled, new Images arrive Restricted so you can grant only your own experience and keep a misjudged asset from loading anywhere else15.
Beacon Yard's code is built for rejecting a picture. If a texture id is 0, or the variant is missing, nothing breaks:
function WorldLook.apply(part: BasePart, slot: Slot)
local style = SLOTS[slot]
part.Material = style.material
local variant = MaterialService:FindFirstChild(style.variant)
if variant ~= nil and variant:IsA("MaterialVariant") then
part.MaterialVariant = style.variant
You reject a generated texture, so its id stays 0 and the variant is never created. What does WorldLook.apply do for a part in that slot?
local variant = MaterialService:FindFirstChild(style.variant)
if variant ~= nil and variant:IsA("MaterialVariant") then
part.MaterialVariant = style.variant
end
Answer
Sets the base material and leaves the variant unset, so the part keeps its plain material. The material is set from the slot, and the variant only when it exists. A rejected picture therefore costs you a plain Concrete or Metal surface, not a broken one.
Open this step in lesson mode · Link to this step · This confused me
10Where the rented oven breaks
Both sidesRemember: Licences on AI-generated images is renting an oven: the rental terms are separate from the cake you bake.
The picture says the cake is yours and the oven's terms are separate. Think about whether the cake is always safely yours before you open the breakdown.
Where does it break?“Renting an oven: the rental terms are separate from the cake you bake” is a good picture of licences on ai-generated images. Where does it stop being true?
It breaks here. Saying the cake is yours does not settle whether you can sell it: the law on owning AI output differs from place to place, the rental terms can still limit commercial use, and the output may not be unique.
The true model. Three layers apply: the model licence, the tool licence and the output terms, plus local law. A licence that says you own the outputs only to the extent permitted by law is not a promise that anyone can own them.
The SDXL-Turbo licence text says you own the outputs "to the extent permitted by applicable law". Why does that not settle whether the course can ship them?
Answer
The law on owning AI output differs by place, and the model's commercial conditions still apply to how it is used. Owning something "to the extent permitted by law" is not a promise that the law lets anyone own it. The model's commercial conditions also remain. A CC BY course cannot lean on a grey area.
Open this step in lesson mode · Link to this step · This confused me
11Build it: one reviewed texture, with its paper trail
This is what gen-assets.mjs prints on a fresh clone, where every image id is 0:
Evidence, figure 11.1gen-assets-m10.log
# Run 1: every id is 0 (the repo as cloned)
skip Beacon: set BEACON_MESH_ID, BEACON_EMITTER_MESH_ID
skip Coin: set COIN_MESH_ID
skip Drone: set DRONE_BODY_MESH_ID, DRONE_EYE_MESH_ID, DRONE_ROTOR_FL_MESH_ID, DRONE_ROTOR_FR_MESH_ID, DRONE_ROTOR_BL_MESH_ID, DRONE_ROTOR_BR_MESH_ID
skip Wrench: set WRENCH_HANDLE_MESH_ID, WRENCH_JAW_MESH_ID
skip beacon_yard_concrete: set CONCRETE_COLOR_MAP_ID
skip beacon_yard_floor: set CONCRETE_COLOR_MAP_ID
skip beacon_yard_plate: set METAL_PLATE_COLOR_MAP_ID
skip beacon_yard_rust: set RUST_COLOR_MAP_ID
gen-assets: 0 written, 8 skipped. Rebuild the place file so Studio picks them up.
exit 0
Retiring the analogy
You no longer need “renting an oven: the rental terms are separate from the cake you bake”. Three layers apply: the model licence, the tool licence and the output terms, plus local law. A licence that says you own the outputs only to the extent permitted by law is not a promise that anyone can own them.
Build along
assets/textures/CREDITS.md
Pick your route: Studio's Material Generator (no model to download), or a local model you have read the card of. Write down the licence and the page you read it on.
You should see Before generating, you have written the licence name and card URL of the tool or model you will use.
In a copy of your place, select a wall part, open Window, 3D, Material Generator, type a phrase about a surface you could photograph straight on, such as "worn grey concrete, top down, simple", pick a base material, and preview.
You should see A preview tile shows on the selected wall part, and Studs Per Tile reads the repeat you chose.
Look at the tile on the real wall from walking height. Reject it or accept it out loud.
You should see You can say, with a reason, whether you reject or accept it: seams, repeating blobs, text or logos.
If you accept it, add a row for it to your own credits notes, next to the CC0 rows: the tool, the prompt, the licence and the date.
You should see Opening the file shows a new row naming the asset, where it came from, the licence and the date.
Studio's Material Generator saves its variant straight into Material Manager rather than through
Ids.luau. For uploaded image sets (Beacon Yard's CC0 textures or a PNG exported from a local model), leave the texture ids at 0 and runnode scripts/gen-assets.mjsto see how the yard safely skips unconfigured variants and keeps its plain materials.You should see gen-assets lists the image-based CC0 variants as skipped while their ids are 0, and the server prints one [Ids] warning that names them.
Open this step in lesson mode · Link to this step · This confused me
12Challenges
Level 1, Apprentice
Challenge
Read the three cards yourself, today, and note any difference from this lesson. Licences change.
- Start from
- This lesson
Done means
- You wrote down the licence names of SDXL-Turbo, FLUX.1 [schnell] and FLUX.1 [dev] as their cards list them
- You said which of the three this CC BY course could use, and why
Hints
- Hugging Face shows the licence in the model card's metadata.
- CC BY 4.0 allows commercial use by every reader.
A generated tile with one bad edge is set to StudsPerTile 8, like beacon_yard_plate. How many studs apart would the seam line repeat across the walkway?
Answer
8 studs. A tile repeats every 8 studs, so a bad edge shows as a line every 8 studs. A low seamError does not catch blobs, text or a copied style either, so you still have to look.
Level 2, Builder
Challenge
Test one tile for seams the way an artist does, by eye.
- Start from
- Any tileable PNG you have the right to use
Done means
- You pasted four copies of the tile in a two-by-two square and looked at the joins
- You said whether the seams show, and which edge is at fault if they do
Hints
- Any image editor can tile; so can Studio on a wall part with Studs Per Tile set small.
- A CC0 tile from the earlier lesson should pass.
Level 3, Professional
Challenge
Ship one reviewed texture with a complete paper trail. A licence decision is not something a Luau test can grade, so the checklist in challenges/solutions/textures-and-ai.md is the acceptance.
- Start from
- The game at milestone m13 (download)
Done means
- A texture log for one generated or downloaded texture: tool, prompt or page, licence and its card URL, date
- You looked at the texture on a real part before uploading and wrote down your decision
- Asset Privacy is enabled (Creator Dashboard, Settings, Advanced) before upload so the asset is Restricted and granted to your own experience
- The id is only in your git-ignored Ids.local.luau, and node scripts/check-ids.mjs still passes
- With the id at 0 the yard keeps its plain material and the server prints one [Ids] warning
Hints
- Use the build-along's log row as a template.
- Enable Asset Privacy before uploading Images, because Open Use cannot be reversed.
- WorldLook.apply sets the variant only when it exists. The written checklist is challenges/solutions/textures-and-ai.md in the game repo.
Beacon Yard's credits file lists CC0 textures, which need no credit. Why keep the file?
Answer
So anyone can check each texture's source and licence later. The credits file says it credits ambientCG anyway, because it tells you where the maps came from. A traceable record is the point.
Open this step in lesson mode · Link to this step · This confused me
13Recap
Recap
- Studio's Material Generator makes tileable variants and the Texture Generator paints a selected mesh; ComfyUI runs a model on your own computer.
- Check three sets of terms: the model's licence card, the tool's licence, and the output terms. SDXL-Turbo lists sai-nc-community, so this CC BY course does not ship its output; FLUX.1 [schnell] lists Apache-2.0.
- Look at every image on the real surface, keep it Restricted, record its source, and build code that survives a rejected texture.
Licences on AI-generated images is renting an oven: the rental terms are separate from the cake you bake, until saying the cake is yours does not settle whether you can sell it: the law on owning AI output differs from place to place, the rental terms can still limit commercial use, and the output may not be unique.
Queued for review
- According to the repo's credits file, why do the m13-art-pass textures come from four CC0 sets instead of generated images?
- You want to add a generated texture to this CC BY 4.0 course repo. Using only the cards above, which model is the better candidate?
- You reject a generated texture, so its id stays 0 and the variant is never created. What does WorldLook.apply do for a part in that slot?
Open this step in lesson mode · Link to this step · This confused me