generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Making ROBLOX Fireworks

Previous Thread :: Next Thread 
PKyler2001 is not online. PKyler2001
Joined: 23 Feb 2011
Total Posts: 96
03 Jan 2014 09:43 PM
How do you make an actual firework in ROBLOX? I'm making a game called Fireworks City, and it's useless without FIREWORKS!! D:
Report Abuse
rocketzzz is not online. rocketzzz
Joined: 24 Dec 2013
Total Posts: 26
03 Jan 2014 09:44 PM
put fireworks in it
Report Abuse
PKyler2001 is not online. PKyler2001
Joined: 23 Feb 2011
Total Posts: 96
03 Jan 2014 09:48 PM
-_- I already have free models, but I want to know how do I make a firework MYSELF?? :O
Report Abuse
BunnyBoy26 is not online. BunnyBoy26
Joined: 17 Jun 2010
Total Posts: 5674
03 Jan 2014 09:50 PM
You would want the projectiles to spread out in random directions:

for i=1,25 do
local p = Instance.new("Part",workspace)
p.BrickColor = BrickColor.Red()
p.CanCollide = false
p.TopSurface = 0
p.BottomSurface = 0
p.FormFactor = 3
p.Size = Vector3.new(1,1,1)
p.Shape = 0
p.Position = Vector3.new(0,50,0)
p.Velocity = Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
end
Report Abuse
iWasted1000Robux is not online. iWasted1000Robux
Joined: 26 Oct 2013
Total Posts: 813
03 Jan 2014 09:51 PM
Why stop using free models if you already started?

#nerdsunited
Report Abuse
PKyler2001 is not online. PKyler2001
Joined: 23 Feb 2011
Total Posts: 96
03 Jan 2014 09:52 PM
Sweet! Thanks for that! And, is that what you type in as the script? :D
Also, how do you add a sound to that? :O
Report Abuse
PKyler2001 is not online. PKyler2001
Joined: 23 Feb 2011
Total Posts: 96
03 Jan 2014 09:54 PM
@iWasted to get more visits, and to get some positive reputation for my places which means MORE MONEY and to make the game UNIQUE, so more people will VISIT, which all in all means MORE MONEY AGAIN! $_$ $_$ :D
Report Abuse
iWasted1000Robux is not online. iWasted1000Robux
Joined: 26 Oct 2013
Total Posts: 813
03 Jan 2014 09:54 PM
We're not slaves ffs.

#nerdsunited
Report Abuse
PKyler2001 is not online. PKyler2001
Joined: 23 Feb 2011
Total Posts: 96
03 Jan 2014 09:56 PM
@iwasted >.> Did I say that? No. :P
Report Abuse
BunnyBoy26 is not online. BunnyBoy26
Joined: 17 Jun 2010
Total Posts: 5674
03 Jan 2014 09:57 PM
You need to insert a Sound object into the workspace, name it "FireWorks", and then put a sound ID into the Id property. Here is a good list of numerous sound IDs:

http://www.roblox.com/Sound-Reference-3-4-item?id=31344063

Add this to the end of the script (after the 'end'):

workspace.FireWorks:play()
Report Abuse
iWasted1000Robux is not online. iWasted1000Robux
Joined: 26 Oct 2013
Total Posts: 813
03 Jan 2014 09:58 PM
Then stop asking us to make all your scripts. We're here to help you fix them etc.. not just make them for you.

#nerdsunited
Report Abuse
BunnyBoy26 is not online. BunnyBoy26
Joined: 17 Jun 2010
Total Posts: 5674
03 Jan 2014 10:00 PM
Then stop posting about your complaints. Clearly if someone wants to help, he/she will, otherwise the asker won't get anything. I volunteered to help him and I don't feel like a slave.
Report Abuse
PKyler2001 is not online. PKyler2001
Joined: 23 Feb 2011
Total Posts: 96
03 Jan 2014 10:02 PM
@BunnyBoy thank you SO much!! :D If my game becomes famous now, I'll have YOU in the credits AT LEAST! :D :D :D
@iwasted ....True... :(
Report Abuse
PKyler2001 is not online. PKyler2001
Joined: 23 Feb 2011
Total Posts: 96
03 Jan 2014 10:11 PM
Do I need to change the Vector3 size to make the firework bigger or anything?
:)
Report Abuse
BunnyBoy26 is not online. BunnyBoy26
Joined: 17 Jun 2010
Total Posts: 5674
03 Jan 2014 10:18 PM
Add more parts (by increasing 25 at the beginning to say 40 or 50), and definitely increase the range, so math.random(-20,20) instead of math.random(-10,10) for all three.
Report Abuse
PKyler2001 is not online. PKyler2001
Joined: 23 Feb 2011
Total Posts: 96
03 Jan 2014 10:24 PM
Thank you!!! :D
Report Abuse
PKyler2001 is not online. PKyler2001
Joined: 23 Feb 2011
Total Posts: 96
03 Jan 2014 10:33 PM
How(if it is possible) could you add a MOVING PART that explodes in the air? :D
You're already going in my game's description btw :D :D :D :D
Report Abuse
PKyler2001 is not online. PKyler2001
Joined: 23 Feb 2011
Total Posts: 96
03 Jan 2014 10:35 PM
Also how do I activate it? D:
The shape option changes whether or not a shape goes up.. I think?
Report Abuse
BunnyBoy26 is not online. BunnyBoy26
Joined: 17 Jun 2010
Total Posts: 5674
03 Jan 2014 10:43 PM
math.randomseed(tick())
local p = Instance.new("Part",workspace)
p.BrickColor = BrickColor.Red()
p.CanCollide = false
p.TopSurface = 0
p.BottomSurface = 0
p.FormFactor = 3
p.Size = Vector3.new(1,1,1)
p.Shape = 0
p.Position = Vector3.new(0,2,0)
Instance.new("Fire",p).Color = Color3.new(210,30,0)
local v = Instance.new("BodyVelocity",p)
v.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
v.velocity = Vector3.new(0,20,0)
wait(3)
for i=1,50 do
f = p:Clone()
f.BodyVelocity:remove()
local a,b,c = math.random(-20,20),math.random(-20,20),math.random(-20,20)
f.CFrame = CFrame.new(p.Position,p.Position+Vector3.new(a,b,c))
f.Velocity = Vector3.new(a,b,c)
game:GetService("Debris"):AddItem(f,2)
end
p:remove()
Report Abuse
BunnyBoy26 is not online. BunnyBoy26
Joined: 17 Jun 2010
Total Posts: 5674
03 Jan 2014 10:48 PM
Better yet, put this in a script in a brick (and step on the brick):

math.randomseed(tick())
d = false
script.Parent.Touched:connect(function(hit)
if d then return end
local t = hit.Parent:FindFirstChild("Torso")
if not t then return end
d = true
local p = Instance.new("Part",workspace)
p.BrickColor = BrickColor.Red()
p.CanCollide = false
p.TopSurface = 0
p.BottomSurface = 0
p.FormFactor = 3
p.Size = Vector3.new(1,1,1)
p.Shape = 0
p.CFrame = script.Parent.CFrame+t.CFrame.lookVector*12
Instance.new("Fire",p).Color = Color3.new(210,30,0)
local v = Instance.new("BodyVelocity",p)
v.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
v.velocity = Vector3.new(0,20,0)
wait(3)
for i=1,50 do
f = p:Clone()
f.BodyVelocity:remove()
local a,b,c = math.random(-20,20),math.random(-20,20),math.random(-20,20)
f.CFrame = CFrame.new(p.Position,p.Position+Vector3.new(a,b,c))
f.Velocity = Vector3.new(a,b,c)
game:GetService("Debris"):AddItem(f,2)
end
p:remove()
wait(1)
d = false
end)
Report Abuse
PKyler2001 is not online. PKyler2001
Joined: 23 Feb 2011
Total Posts: 96
03 Jan 2014 10:51 PM
so, do I put the 1=1,50 thing at the beginning of all that first?
Clone=50 I think?
Tick: to I put 50 inside of the parenthesis next to that word? Or is that supposed to be like it is shown? D:
I don't really know how to script. Sorry for all these questions. :(
Report Abuse
BunnyBoy26 is not online. BunnyBoy26
Joined: 17 Jun 2010
Total Posts: 5674
03 Jan 2014 10:52 PM
It is fine just how it is. Simply copy the test and paste it into a script. Ad put that script in a brick in Workspace.
Report Abuse
PKyler2001 is not online. PKyler2001
Joined: 23 Feb 2011
Total Posts: 96
03 Jan 2014 10:53 PM
after the end) I put in the sound. OK.
Also, I'd like it to be clickable, and not be activated when you STEP on it. xD
Report Abuse
PKyler2001 is not online. PKyler2001
Joined: 23 Feb 2011
Total Posts: 96
03 Jan 2014 10:54 PM
OK!!! thank you! :D :D :D :D :D
How do I make it activated when you click on it?? :D
Report Abuse
BunnyBoy26 is not online. BunnyBoy26
Joined: 17 Jun 2010
Total Posts: 5674
03 Jan 2014 10:57 PM
math.randomseed(tick())
d = false
Instance.new("ClickDetector",script.Parent).MouseClick:connect(function()
if d then return end
d = true
local p = Instance.new("Part",workspace)
p.BrickColor = BrickColor.Red()
p.CanCollide = false
p.TopSurface = 0
p.BottomSurface = 0
p.FormFactor = 3
p.Size = Vector3.new(1,1,1)
p.Shape = 0
p.CFrame = script.Parent.CFrame+Vector3.new(12,0,0)
Instance.new("Fire",p).Color = Color3.new(210,30,0)
local v = Instance.new("BodyVelocity",p)
v.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
v.velocity = Vector3.new(0,20,0)
wait(3)
for i=1,50 do
f = p:Clone()
f.BodyVelocity:remove()
local a,b,c = math.random(-20,20),math.random(-20,20),math.random(-20,20)
f.CFrame = CFrame.new(p.Position,p.Position+Vector3.new(a,b,c))
f.Velocity = Vector3.new(a,b,c)
game:GetService("Debris"):AddItem(f,2)
end
workspace.FireWorks:Play()
p:remove()
wait(1)
d = false
end)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image