---
title: "Play an explosion flipbook once in Roblox Studio"
description: "Play an explosion flipbook once in Roblox Studio: FlipbookMode OneShot, Rate 0, Lifetime equal to the clip, and Emit(1) from a script at the blast."
canonical: https://appliedmanifold.com/guides/roblox-play-flipbook-once/
site: "Applied Manifold: The spatial compute cloud for 3D reality"
---

1.  [Home](https://appliedmanifold.com/)
2.  [Guides](https://appliedmanifold.com/guides/)
3.  Play a flipbook once

GUIDE // ROBLOX STUDIO

# How to play an explosion flipbook only once in Roblox Studio

Set your ParticleEmitter's FlipbookMode to OneShot, its Rate to 0 and its Lifetime to the clip's length, then call Emit(1) from a script when the blast happens. OneShot spreads the frames evenly across each particle's lifetime, so compile the sheet with evenly spaced frames and it plays once from first to last.

[Get Free API Key](https://console.appliedmanifold.com/sign-in?next=/api-keys) [See the examples →](https://appliedmanifold.com/docs/pyrofx/examples/)

-   Godot 4 Available
-   Unity Manual setup
-   Unreal Engine Manual setup
-   **Roblox Studio** Manual setup
-   three.js Available

A draft compile is from $0.05, and new accounts start with $5 of usage.

**FIREBALLFINAL**

![First frame of the fireball bake](/bakes/fireball/poster.webp)

Fireball, 9.4 x 13.4 m, compiled with Spatial Compiler. [Spec →](https://appliedmanifold.com/docs/pyrofx/examples/#ex-fireball)

01 // HOW TO

## Set up a fireball you can trigger

1.  Ask your agent for the fireball with `export.tile_px = 128` and `export.pacing = "even"`, so each sheet is 1024 px and its frames are evenly spaced in time, the way OneShot plays them.
2.  Make two images. For smoke, put the green of `main_pos.png` (light from above) in RGB and its alpha as opacity, which `export.pack` can write for you. For flame, on black, multiply `main_colour.png` by the alpha of `main_neg.png` squared, because that alpha stores the square root of the flame brightness; the result is normalized to the clip's peak.
3.  Put two ParticleEmitters, FireballSmoke and FireballFlame, under `Fireball.lua`, each with its uploaded image as Texture, FlipbookLayout Grid8x8 and FlipbookMode OneShot.
4.  On both, set Rate to 0, Lifetime to 4 (the time the fireball's 64 frames span), Speed to 0, SpreadAngle to 0 and Rotation to 0, with the same Size and Orientation, so the flame stays on its smoke ([layer alignment](https://appliedmanifold.com/guides/roblox-fire-glow/#align)). A side-on blast should not spin.
5.  On the flame emitter, set LightEmission to 1, LightInfluence to 0 and Brightness to `scales.emit_max_hdr`, 5.09 for the fireball, so the flame adds light to what is behind it at its precomputed peak. Keep the smoke at LightEmission 0 so it stays solid.
6.  Call `explode` from the code that handles the hit.

Fireball.lua

```
local Debris = game:GetService("Debris")
local smoke = script.FireballSmoke -- OneShot, Rate 0, Lifetime 4
local flame = script.FireballFlame -- same, plus LightEmission 1

local function explode(position)
	local part = Instance.new("Part")
	part.Anchored = true
	part.CanCollide = false
	part.Transparency = 1
	part.Size = Vector3.new(1, 1, 1)
	part.Position = position
	-- one Attachment, so both emitters spawn at the same point
	local attachment = Instance.new("Attachment")
	attachment.Parent = part
	smoke:Clone().Parent = attachment
	flame:Clone().Parent = attachment
	part.Parent = workspace
	for _, emitter in attachment:GetChildren() do
		emitter:Emit(1)
	end
	Debris:AddItem(part, 4.5)
end
```

02 // REAL OUTPUT

## A smaller blast for shell hits

Impact's frames span 3.2 s, so its emitter needs Lifetime 3.2 and a Debris time of about 3.7.

**IMPACTFINAL**

![First frame of the impact bake](/bakes/impact/poster.webp)

Impact, 3.5 x 2.8 m, compiled with Spatial Compiler. [Spec →](https://appliedmanifold.com/docs/pyrofx/examples/#ex-impact)

03 // HOW IT ENDS

## Why nothing hangs in the air

OneShot ignores FlipbookFramerate and spaces the 64 frames evenly across Lifetime, so a Lifetime longer than the clip plays it in slow motion. A one-shot compile from Spatial Compiler runs until the effect has faded, so the last frame is almost empty when the particle dies.

The example fireball spends more of its frames on the first moments of the blast, and OneShot cannot space frames unevenly. Played as is, its flash and burst run slower than precomputed and its fading smoke faster. Precomputed with `export.pacing = "even"`, every frame covers the same time, so OneShot plays it at its real pace.

Debris removes the helper Part a moment after the particle is gone, so repeated blasts do not pile up in the workspace.

04 // RELATED

## Related pages

-   [One-shot explosion Godot 4Build a GPUParticles3D explosion in Godot 4 that plays once and frees itself, by hand or from a wired fireball scene.](https://appliedmanifold.com/guides/godot-one-shot-explosion/)
-   [Play an explosion once three.jsPlay an explosion sprite sheet once in three.js, then remove the sprite and free its material and texture.](https://appliedmanifold.com/guides/threejs-play-once/)
-   [Random start frame Roblox StudioStart each Roblox flipbook particle on a random frame with FlipbookStartRandom, and vary one-shot explosions with separate emitters.](https://appliedmanifold.com/guides/roblox-random-start-frame/)
-   [Roblox fireball Roblox StudioA fireball that bursts from the ground and rolls upward in 3.7 seconds, played in Roblox Studio by hand today.](https://appliedmanifold.com/effects/roblox-fireball/)
-   [Roblox Studio VFX Roblox StudioFire, smoke, explosion and dust effects in Roblox Studio: sprite sheets you set up by hand.](https://appliedmanifold.com/effects/roblox-vfx/)
-   [Loop vs one-shotLooping effects repeat until stopped and one-shot effects play once and fade out, and each needs its own frames and settings.](https://appliedmanifold.com/learn/loop-vs-one-shot/)
-   [OutputsWith the default export, each view writes four sheets, `<view>_pos.png`, `_neg.png`, `_colour.png` and `_aux.png`, plus `layout.json`, two still previews, the animated `preview_anim.png` and `bake_report.json`. Sheets are 8 x 8 tiles of 256 px by default.](https://appliedmanifold.com/docs/pyrofx/outputs/)

[All pages in Guides →](https://appliedmanifold.com/guides/)

[← Loop a flipbook in Roblox](https://appliedmanifold.com/guides/roblox-loop-flipbook/)[Random start frame →](https://appliedmanifold.com/guides/roblox-random-start-frame/)

05 // FAQ

## Roblox one-shot flipbook questions

[All questions →](https://appliedmanifold.com/faq/)

**README.ROBLOX\_PLAY\_FLIPBOOK\_ONCE**

### How do I play an explosion flipbook only once in Roblox Studio?

Set FlipbookMode to OneShot, Rate to 0 and Lifetime to the clip length, then call Emit(1). Compile with evenly spaced frames so OneShot plays at real pace.

### How do I trigger an explosion in Roblox Studio?

Call Emit on a ParticleEmitter from a script when the blast happens. Add an Explosion instance for the physics push and set Visible to false.

### Can I use an explosion sprite sheet in Roblox Studio?

Yes, upload square images up to 1024 pixels with 64 frames and play them with FlipbookMode OneShot. Put flame and smoke on separate emitters so flame can glow.

### How do I make a realistic explosion in Roblox Studio?

Play a precomputed explosion flipbook once, add a brief PointLight flash and a dust emitter and shake the camera. The sheet carries rolling fire and smoke.

## Compile your first effect

You pay per compile and see the price before it runs. New accounts start with $5 of usage.

[Get Free API Key](https://console.appliedmanifold.com/sign-in?next=/api-keys) [Outputs →](https://appliedmanifold.com/docs/pyrofx/outputs/)

[All effects, guides and explainers →](https://appliedmanifold.com/effects/)
