Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

How to send a firework in the air? [closed]

Asked by 8 years ago

Hello,

I was wondering if someone could show me how to send a firework in the air using Cframe.

Thanks,

Anthony

Closed as Not Constructive by TheeDeathCaster and Pyrondon

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 8 years ago

Here is a script I made, that will send a rocket up at a decent speed with and explosion, and firework noise. Keep in mind I used a button(ClickDetector) so you may have to change the way the script is executed, if you want to make it fire when a player simply touches it.

01local button = script.Parent
02local Firework = script.Parent.Parent.Part
03 
04 
05function makesound()
06    local sound = Instance.new("Sound") -- makes the sound a thing
07sound.SoundId = "http://www.roblox.com/asset/?id=138080762"  -- the firework sound it makes
08sound.Parent = game.Workspace -- makes the sound a part of the rocket
09sound:Play() -- plays the noise as implied
10end
11 
12function mexplosion() -- function that creates explosion
13    local cracker = Instance.new("Explosion") -- actually makes the explosion existent
14    cracker.Parent = workspace -- makes the explosion'tangible'
15    cracker.Position = Firework.Position -- makes the explosion happen at the exact location of the rocket
View all 31 lines...
0
btw I'd add smoke particles to the script to, to add to the effect! macabe55101 38 — 8y
Ad