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.
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()