Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How can I fix this firework script and how can I make the particles work?

How can I make these fireworks work? This is my script:

wait(5) script.Parent.Anchored=false wait(1) script.Parent.Anchored = true script.Parent.Transparency = 1 script.ParticleEmitter.Enabled = true wait(.5) script.Parent.ParticleEmitter.Enabled = false wait(2) script.Parent:Destroy()

Basically it gets unanchored, shoots up, gets anchored, and becomes transparent. Then particles are activated making it look sort of like a firework. I got this from a tutorial and all the other inputs are correct. What do I need to do? Instead of shooting out the particles it just goes up and disappears without particles coming out.

3 comments

1

use the code button...

0

are you serious right now?

0

Format your code in Lua Code block. Much more pleasant to read through, then.

1 answer

✓ Accepted answer

Particle are emitted on their Parent, if script is the Parent , then particles are emitted on script but you can't see script anywhere in the map only at 0,0,0 .. ^^

script.ParticleEmitter.Parent = script.Parent
PARTE = script.Parent.ParticleEmitter
wait(5) 
script.Parent.Anchored=false 
wait(1) 
script.Parent.Anchored = true 
script.Parent.Transparency = 1 
PARTE.Enabled = true 
wait(.5) 
PARTE.Enabled = false 
wait(2) 
script.Parent:Destroy()

4 comments

0

It did not work :/

0

Ignore first line but make sure that ParticleEmitter is placed inside the Part not inside the script

0

The actual firework is a union, just thought I'd mention.

0

Thank you so much! It finally worked! :) Wish I had 25 rep to upvote.

This discussion is preserved as it was. New answers, comments, and votes are closed.