of     2   
chevron_rightchevron_rightchevron_right

CyborgDonut
#139357215Saturday, July 05, 2014 10:26 PM GMT

Lets say I have the bundle of fireworks as a model. I place it in my place. How would I get it to go off at after a certain amount automatically, and it is looped that way?
Dark_Yugi
#139357324Saturday, July 05, 2014 10:27 PM GMT

scriptOn = true repeat --Code Here until scriptOn == false print('Script Off') You don't ever have to change script on.
CyborgDonut
#139357387Saturday, July 05, 2014 10:28 PM GMT

The code makes no sense though.
Dark_Yugi
#139357581Saturday, July 05, 2014 10:30 PM GMT

scriptOn = true --Makes the repeat go on when true repeat -- Repeats the code below --Code Here until scriptOn == false --Makes it so the script above always repeats until scriptOn == false print('Script Off') --Just prints that the script is off
CyborgDonut
#139357807Saturday, July 05, 2014 10:32 PM GMT

And I put this script in the bundle of fireworks?
Dark_Yugi
#139357858Saturday, July 05, 2014 10:32 PM GMT

Yeah, you need to add the code to make it actually work in there.
CyborgDonut
#139358020Saturday, July 05, 2014 10:34 PM GMT

Okay.
CyborgDonut
#139514717Monday, July 07, 2014 8:05 AM GMT

Okay, so I took the firework,'The Big one' and placed it in my place, I then took out the model, 'Handle' because that is basically the whole firework, and it isn't a tool, or animation like throwing it and pressing buttons on it. I place the script you gave inside the model handle and all it does it crash Roblox studio when testing and stops scripting in game. little help?
CyborgDonut
#139541401Monday, July 07, 2014 4:54 PM GMT

Bump
Badfitz100
#139541993Monday, July 07, 2014 5:00 PM GMT

[ Content Deleted ]
CyborgDonut
#139551083Monday, July 07, 2014 6:35 PM GMT

Okay, now it doesn't crash studio but it still doesn't activate the particles in the main script.
CyborgDonut
#139553614Monday, July 07, 2014 6:58 PM GMT

Bump
CyborgDonut
#139558420Monday, July 07, 2014 7:43 PM GMT

Bump..
Dark_Yugi
#139561538Monday, July 07, 2014 8:15 PM GMT

Give us your full code.
CyborgDonut
#139572775Monday, July 07, 2014 9:48 PM GMT

I already told you guys how I got the firework, and heres the script that was in it. --Made by Stickmasterluke --This code got messy quick. Forgive me local sp=script.Parent local launcher=sp local debris=game:GetService("Debris") local bang4=launcher:WaitForChild("Bang4") local pop2=launcher:WaitForChild("Pop2") local fountain=launcher:WaitForChild("Fountain") local bangsounds={160248459,160248479,160248493} function makerandombang() local bang=Instance.new("Sound") debris:AddItem(bang,10) bang.Volume=1 bang.Pitch=.8+math.random()*.4 bang.SoundId="http://www.roblox.com/asset/?id="..bangsounds[math.random(1,3)] return bang end local colors={"red","orange","yellow","green","blue","purple"} function flare(pos,vel,floaty,timer,color) local floaty=floaty or 0 local timer=timer or 2 local p=Instance.new("Part") p.Name="EffectFlare" p.Transparency=1 p.TopSurface="Smooth" p.BottomSurface="Smooth" p.formFactor="Custom" p.Size=Vector3.new(.4,.4,.4) p.CanCollide=false p.CFrame=CFrame.new(pos)*CFrame.Angles(math.pi,0,0) p.Velocity=vel local particles={} local s=Instance.new("Sparkles") s.SparkleColor=Color3.new(1,1,0) s.Parent=p table.insert(particles,s) local s2=Instance.new("Sparkles") s2.Parent=p table.insert(particles,s2) local s3=Instance.new("Sparkles") s3.SparkleColor=Color3.new(1,1,0) s3.Parent=p table.insert(particles,s3) local s4=Instance.new("Sparkles") s4.Parent=p table.insert(particles,s4) local f=Instance.new("Fire") f.Color=Color3.new(1,1,.5) f.SecondaryColor=Color3.new(1,1,1) f.Heat=25 f.Parent=p table.insert(particles,f) if color=="red" then s.SparkleColor=Color3.new(1,0,0) s3.SparkleColor=Color3.new(1,0,0) f.Color=Color3.new(1,0,0) elseif color=="blue" then s.SparkleColor=Color3.new(0,0,1) s3.SparkleColor=Color3.new(0,0,1) f.Color=Color3.new(0,0,1) elseif color=="green" then s.SparkleColor=Color3.new(0,1,0) s3.SparkleColor=Color3.new(0,1,0) f.Color=Color3.new(0,1,0) elseif color=="yellow" then s.SparkleColor=Color3.new(1,1,0) s3.SparkleColor=Color3.new(1,1,0) f.Color=Color3.new(1,1,0) elseif color=="purple" then s.SparkleColor=Color3.new(1,0,1) s3.SparkleColor=Color3.new(1,0,1) f.Color=Color3.new(1,0,1) elseif color=="orange" then s.SparkleColor=Color3.new(1,.5,0) s3.SparkleColor=Color3.new(1,.5,0) f.Color=Color3.new(1,.5,0) end if floaty>0 then local bf=Instance.new("BodyForce") bf.force=Vector3.new(0,p:GetMass()*196.2*floaty,0) bf.Parent=p end debris:AddItem(p,timer+3) p.Parent=game.Workspace delay(timer,function() for _,v in pairs(particles) do if v and v.Parent and v.Enabled then v.Enabled=false end end end) return p end function fireclassic() for i=1,3 do delay(0,function() local clr=colors[math.random(1,#colors)] local b4c=bang4:clone() debris:AddItem(b4c,7) b4c.Parent=launcher local flare1=flare(launcher.Position,(CFrame.Angles(math.pi/2,0,0)*CFrame.Angles((math.random()-.5)*.5,(math.random()-.5)*.5,0)).lookVector*100,.8,2) flare1.RotVelocity=Vector3.new(math.random()-.5,math.random()-.5,math.random()-.5)*100 local b=makerandombang() b.Parent=flare1 wait() if b4c then b4c:Play() end wait(2.5) if flare1 and b then b:Play() for i=1,7 do local f=flare(flare1.Position,(launcher.CFrame*CFrame.Angles((i/7)*math.pi*2,0,0)).lookVector*20,.95,3,clr) if i==7 then local s=Instance.new("Sound") s.Volume=1 s.SoundId="http://www.roblox.com/asset/?id=160247625" s.Pitch=.5 s.Parent=f wait() if s then s:Play() end end end end end) wait(.4) end end local clrcount=0 function firefan() fountain:Play() for i=1,7 do pop2:Play() clrcount=(clrcount+1)%(#colors) local f=flare(launcher.Position,(launcher.CFrame*CFrame.Angles(math.pi/2,0,0)*CFrame.Angles((((i-1)/6)-.5)*1.5,0,0)).lookVector*30,.95,2.,colors[clrcount+1]) local s=Instance.new("Sound") s.Pitch=.5+(math.random()*.1) s.SoundId="http://www.roblox.com/asset/?id=160248604" s.Parent=f wait() if s then s:Play() end wait(.3) end wait(.3) for i=1,7 do pop2:Play() clrcount=(clrcount+1)%(#colors) local f=flare(launcher.Position,(launcher.CFrame*CFrame.Angles(math.pi/2,0,0)*CFrame.Angles(((1-((i-1)/6))-.5)*1.5,0,0)).lookVector*30,.95,2,colors[clrcount+1]) local s=Instance.new("Sound") s.Pitch=.5+(math.random()*.1) s.SoundId="http://www.roblox.com/asset/?id=160248604" s.Parent=f wait() if s then s:Play() end wait(.3) end fountain:Stop() end function firedisplay() bang4:Play() flare(launcher.Position,(launcher.CFrame*CFrame.Angles(math.pi/2,0,0)*CFrame.Angles(.8,0,0)).lookVector*20,.95,2) flare(launcher.Position,(launcher.CFrame*CFrame.Angles(math.pi/2,0,0)*CFrame.Angles(-.8,0,0)).lookVector*20,.95,2) wait(.5) bang4:Play() flare(launcher.Position,(launcher.CFrame*CFrame.Angles(math.pi/2,0,0)*CFrame.Angles(.5,0,0)).lookVector*25,.95,2) flare(launcher.Position,(launcher.CFrame*CFrame.Angles(math.pi/2,0,0)*CFrame.Angles(-.5,0,0)).lookVector*25,.95,2) wait(.5) bang4:Play() flare(launcher.Position,(launcher.CFrame*CFrame.Angles(math.pi/2,0,0)*CFrame.Angles(.25,0,0)).lookVector*32,.95,2) flare(launcher.Position,(launcher.CFrame*CFrame.Angles(math.pi/2,0,0)*CFrame.Angles(-.25,0,0)).lookVector*32,.95,2) wait(1) bang4:Play() local flare1=flare(launcher.Position,Vector3.new(0,100,0),.8,1) local b=Instance.new("Sound") debris:AddItem(b,10) b.Volume=1 b.SoundId="http://www.roblox.com/asset/?id=160248522" b.Parent=flare1 wait(1) if flare1 and b then b:Play() for i=1,5 do clrcount=(clrcount+1)%(#colors) flare(flare1.Position,(launcher.CFrame*CFrame.Angles((i/5)*math.pi*2,0,0)).lookVector*20,.95,2,colors[clrcount+1]) end end end wait(.1) local fuse=Instance.new("Part") fuse.Name="EffectFuse" fuse.formFactor="Custom" fuse.Size=Vector3.new(0,0,0) fuse.Anchored=false fuse.CanCollide=false fuse.Transparency=1 local fusefire=Instance.new("Fire") fusefire.Size=0 fusefire.Parent=fuse fuse.Parent=sp local w=Instance.new("Weld") w.Part0=sp w.Part1=fuse w.C0=CFrame.new(-.3,-1.8,1.4) w.Parent=sp wait(7) if fusefire then fusefire.Enabled=false end wait(2) delay(0,firefan) wait(4.5) delay(0,firedisplay) wait(4) delay(0,firefan) delay(4.5,firefan) delay(9,firefan) wait(7) delay(0,fireclassic) wait(7) delay(0,fireclassic) wait(1) delay(0,fireclassic) wait(2) --delay(0,firefan) delay(0,fireclassic) wait(1) delay(0,firedisplay) wait(9) sp:remove()
CyborgDonut
#139616659Tuesday, July 08, 2014 5:11 AM GMT

bump
CyborgDonut
#139694677Tuesday, July 08, 2014 11:04 PM GMT

bump
EnzonianTheGreat
#139694967Tuesday, July 08, 2014 11:07 PM GMT

while true do --Script here end
CyborgDonut
#139695921Tuesday, July 08, 2014 11:16 PM GMT

Doesn't work.
CyborgDonut
#139697455Tuesday, July 08, 2014 11:33 PM GMT

bump again
EnzonianTheGreat
#139697769Tuesday, July 08, 2014 11:36 PM GMT

Remove the end from it.
CyborgDonut
#139701558Wednesday, July 09, 2014 12:14 AM GMT

Okay, well I figured out why the script wasn't doing anything. It was disabled in the properties. So, I abled it and now im getting a error in the out put as well ROBLOX Lua Debugger keeps popping up. The output keeps saying - Workspace.Firework.Firework
CyborgDonut
#139702976Wednesday, July 09, 2014 12:26 AM GMT

Come on guys, I need this done today. It's been 3 days.
CyborgDonut
#139706766Wednesday, July 09, 2014 12:59 AM GMT

Bump again
CyborgDonut
#139708127Wednesday, July 09, 2014 1:12 AM GMT

I guess you guys quit helping me... I'll just try to figure it out myself.. Even though I have no idea what I will be doing.

    of     2   
chevron_rightchevron_rightchevron_right