|
| 09 May 2017 03:20 AM |
| how do u make a particle emitter with time? Like every 30 sec it will activate then after another 30 sec it will deactivate? |
|
|
| Report Abuse |
|
|
|
| 09 May 2017 03:32 AM |
U WANNA KNOW HUH? U WANNA KNOW??????? Here you go, change "particleemitter" to the address of your particle emitter. If you don't know how to do that, tell me exactly where in the game it is and I'll show you how.
while wait(30) do --how long it remains on for particleemitter.Enabled=false wait(30) --how long it remains OFF for particleemitter.Enabled=true end |
|
|
| Report Abuse |
|
|
|
| 09 May 2017 04:06 AM |
| You can try changing the lifetime or speed |
|
|
| Report Abuse |
|
|
| |
|
|
| 09 May 2017 04:49 AM |
| roblox, i know how the lifetime works but i want the particle emitter to be turn off and on automatically |
|
|
| Report Abuse |
|
|
LaeMVP
|
  |
| Joined: 24 Jun 2013 |
| Total Posts: 4416 |
|
|
| 09 May 2017 05:03 AM |
while wait(30) do ParticleEmitter.Enabled = not ParticleEmitter.Enabled end |
|
|
| Report Abuse |
|
|
|
| 09 May 2017 05:25 AM |
| Lae, that is ####### genius I had no idea you could do that but that's awesome! |
|
|
| Report Abuse |
|
|
|
| 09 May 2017 05:25 AM |
| show me your script friend |
|
|
| Report Abuse |
|
|
|
| 09 May 2017 06:56 AM |
while true do --so that it repeats script.Parent.ParticleEmitter.Enabled = false --Turns it off wait (20) --This is how long it waits before turning on again script.Parent.ParticleEmitter.Enabled = True --Turns it back on again end
This should work ;) |
|
|
| Report Abuse |
|
|
| |
|
|
| 09 May 2017 11:33 PM |
| LaeMVP & Johnny, it wont work D: |
|
|
| Report Abuse |
|
|
|
| 09 May 2017 11:38 PM |
| Both PoliceOfficial and LaeMVP's scripts work. You just need to reference the ParticleEmitter correctly. |
|
|
| Report Abuse |
|
|
|
| 10 May 2017 12:04 AM |
| Mister, do i have to put the script under the particle emitter or just put it under the brick, like the same as particle? |
|
|
| Report Abuse |
|
|
|
| 10 May 2017 12:07 AM |
| i really dont have any experience in scripting, do u mind to give me a model of it, pls? if not, then its fine. |
|
|
| Report Abuse |
|
|
|
| 10 May 2017 12:11 AM |
| whenever i do the script of police the "particleemitter" in the script has a blue underline. what does it mean? |
|
|
| Report Abuse |
|
|
Quirtx
|
  |
| Joined: 01 Aug 2014 |
| Total Posts: 522 |
|
|
| 10 May 2017 02:28 AM |
| while true do script.Parent.ParticleEmitter.Enabled = false wait(30) script.Parent.ParticleEmitter.Enabled = true ####### ### #### idk |
|
|
| Report Abuse |
|
|
Quirtx
|
  |
| Joined: 01 Aug 2014 |
| Total Posts: 522 |
|
|
| 10 May 2017 02:28 AM |
| Tags = wait(30) - then something I said |
|
|
| Report Abuse |
|
|
nullfeels
|
  |
| Joined: 31 Mar 2017 |
| Total Posts: 1215 |
|
|
| 10 May 2017 04:11 AM |
I like to use the existing value as a switch of sorts... So if the value of Enabled = false it will set it to true and vice versa. Not tested in Lua but works in every other language, so yeah... The other solutions will work fine as well, just thought I would mention this way as an alternative.
local run = true
while run do wait(30) yourParticleEmitter.Enabled = not yourParticleEmitter.Enabled end |
|
|
| Report Abuse |
|
|
| |
|
nullfeels
|
  |
| Joined: 31 Mar 2017 |
| Total Posts: 1215 |
|
|
| 10 May 2017 04:14 AM |
| Lol, you're correct! That's what I get for not reading all the posts... Too bad there isn't a delete button, right? :P |
|
|
| Report Abuse |
|
|
| |
|