Roblox Scripting Tutorial: New Years Fireworks!
LocalScript:
local fireworkFolder = script:WaitForChild("Fireworks"):Clone()
script.Fireworks:Destroy()
fireworkFolder.Parent = workspace.CurrentCamera
while wait() do
for _, firework in ipairs(fireworkFolder:GetChildren()) do
firework.Position = Vector3.new(math.random(-256, 256), math.random(75, 100), math.random(-256, 256))
firework.ParticleEmitter.Enabled = true
local explos = Instance.new("Explosion")
explos.BlastPressure = 10
explos.BlastRadius = 1
explos.DestroyJointRadiusPercent = 0
explos.ExplosionType = Enum.ExplosionType.NoCraters
explos.Position = firework.Position
explos.Parent = firework
wait(.25)
explos:Destroy()
firework.ParticleEmitter.Enabled = false
end
end
Be sure to follow me on Twitter after subscribing!
https://twitter.com/Rrrrry123
Also, follow me on Twitch for some live streams!
http://www.twitch.tv/Rrrrry123
Other Videos By RyGuyGaming
Other Statistics
Roblox Statistics For RyGuyGaming
At present, RyGuyGaming has 459,946 views spread across 106 videos for Roblox, and roughly a days worth of Roblox videos were uploaded to his channel. This makes up 17.76% of the content that RyGuyGaming has uploaded to YouTube.