|
| 22 Aug 2017 05:45 AM |
| Anyone know how? Liike to stop it until resumed. So it pauses at that frame. |
|
|
| Report Abuse |
|
|
| |
|
daw_daw07
|
  |
| Joined: 13 Apr 2017 |
| Total Posts: 20 |
|
| |
|
|
| 22 Aug 2017 06:11 AM |
ye, this, I dont know how tot do though.
And no, i dont want to be a moderator for your game |
|
|
| Report Abuse |
|
|
|
| 22 Aug 2017 06:40 AM |
| What kind of effects? Particle Emitters? |
|
|
| Report Abuse |
|
|
| |
|
|
| 22 Aug 2017 05:02 PM |
ParticleEmitter.Enabled = false wait(3) ParticleEmitter.Enabled = true |
|
|
| Report Abuse |
|
|
|
| 22 Aug 2017 05:04 PM |
actually put this under the particle emitter
ParticleEmitter = script.Parent
ParticleEmitter.Enabled = false wait(3) ParticleEmitter.Enabled = true |
|
|
| Report Abuse |
|
|
|
| 22 Aug 2017 05:53 PM |
uhhh, dude.
that just turns it off and on.
I want it paused on the frame its on., and being able to resume |
|
|
| Report Abuse |
|
|
|
| 22 Aug 2017 06:18 PM |
ParticleEmitter = script.Parent function ParticlePause(minval,maxval) ParticleEmitter.Lifetime.min = minval ParticleEmitter.Lifetime.max= maxval wait(10) ParticleEmitter.Drag = 53 end
function ParticleUnPause() ParticleEmitter.Lifetime.min = 5 PartifleEmitter.Lifetime.max = 10 ParticleEmitter.Drag = -322 wait(2) ParticleEmitter.Drag = 0 end
sorry its a really ugly hack but it probably works |
|
|
| Report Abuse |
|
|
| |
|
|
| 22 Aug 2017 06:29 PM |
ParticleEmitter = script.Parent function ParticlePause(minval,maxval) ParticleEmitter.Lifetime = NumberRange.new(minval, maxval) wait(10) ParticleEmitter.Drag = 53 end
function ParticleUnPause() ParticleEmitter.Lifetime = NumberRange.new(5, 10) ParticleEmitter.Drag = -322 wait(2) ParticleEmitter.Drag = 0 end
game.Workspace.Value:GetPropertyChangedSignal("Value"):connect(function() if game.Workspace.Value.Value == true then ParticlePause(15, 20) else ParticleUnPause() end end)
Thats the working version of your code,
Howver, pausing doesent work, and unpausing sorta just restarts it |
|
|
| Report Abuse |
|
|
|
| 22 Aug 2017 06:31 PM |
| oh wow look it worked a bit |
|
|
| Report Abuse |
|
|
|
| 22 Aug 2017 06:44 PM |
| btw you can stop it by just upping the drag but it just expires quickly so thats why i added the lifetime change you know |
|
|
| Report Abuse |
|
|
|
| 22 Aug 2017 06:47 PM |
coroutines
like
local thread = coroutine.create(function() --loop here end) coroutine.resume(thread) and coroutine.pause(thread)
http://wiki.roblox.com/index.php?title=Global_namespace/Coroutine_manipulation
getfield(lua_State, -1, "MemeService") |
|
|
| Report Abuse |
|
|
| |
|
|
| 22 Aug 2017 07:01 PM |
| ok yeah thats a better idea |
|
|
| Report Abuse |
|
|
|
| 22 Aug 2017 07:05 PM |
ok so, I add unlimited lifetime until switched bcak, I put them at 0 speed or sometihng, and I make it so no more can be madee.
Then to unpause I put everything back?
How do I get speed to zero |
|
|
| Report Abuse |
|
|
|
| 22 Aug 2017 07:07 PM |
| and its weird like if something is applied it only appliees to new particles |
|
|
| Report Abuse |
|
|