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 » Scripters
Home Search
 

Re: How to pause an effect

Previous Thread :: Next Thread 
TheCoderOfLua is not online. TheCoderOfLua
Joined: 12 Apr 2016
Total Posts: 1599
22 Aug 2017 05:45 AM
Anyone know how? Liike to stop it until resumed. So it pauses at that frame.
Report Abuse
TheCoderOfLua is not online. TheCoderOfLua
Joined: 12 Apr 2016
Total Posts: 1599
22 Aug 2017 05:47 AM
Like anchoring a part..
Report Abuse
daw_daw07 is not online. daw_daw07
Joined: 13 Apr 2017
Total Posts: 20
22 Aug 2017 05:50 AM

are you a scripter ?
Report Abuse
TheCoderOfLua is not online. TheCoderOfLua
Joined: 12 Apr 2016
Total Posts: 1599
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
HexagonCode is not online. HexagonCode
Joined: 09 Dec 2015
Total Posts: 1216
22 Aug 2017 06:40 AM
What kind of effects? Particle Emitters?
Report Abuse
TheCoderOfLua is not online. TheCoderOfLua
Joined: 12 Apr 2016
Total Posts: 1599
22 Aug 2017 04:59 PM
all of them
Report Abuse
FarmerInMalaysia is not online. FarmerInMalaysia
Joined: 02 Jan 2015
Total Posts: 217
22 Aug 2017 05:02 PM
ParticleEmitter.Enabled = false
wait(3)
ParticleEmitter.Enabled = true
Report Abuse
FarmerInMalaysia is not online. FarmerInMalaysia
Joined: 02 Jan 2015
Total Posts: 217
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
TheCoderOfLua is not online. TheCoderOfLua
Joined: 12 Apr 2016
Total Posts: 1599
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
FarmerInMalaysia is not online. FarmerInMalaysia
Joined: 02 Jan 2015
Total Posts: 217
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
TheCoderOfLua is not online. TheCoderOfLua
Joined: 12 Apr 2016
Total Posts: 1599
22 Aug 2017 06:22 PM
now we talking.
Report Abuse
TheCoderOfLua is not online. TheCoderOfLua
Joined: 12 Apr 2016
Total Posts: 1599
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
TheCoderOfLua is not online. TheCoderOfLua
Joined: 12 Apr 2016
Total Posts: 1599
22 Aug 2017 06:31 PM
oh wow look it worked a bit
Report Abuse
FarmerInMalaysia is not online. FarmerInMalaysia
Joined: 02 Jan 2015
Total Posts: 217
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
Mouse_Potatoe is online. Mouse_Potatoe
Joined: 14 Jul 2011
Total Posts: 1563
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
TheCoderOfLua is not online. TheCoderOfLua
Joined: 12 Apr 2016
Total Posts: 1599
22 Aug 2017 06:52 PM
oh thats good
Report Abuse
FarmerInMalaysia is not online. FarmerInMalaysia
Joined: 02 Jan 2015
Total Posts: 217
22 Aug 2017 07:01 PM
ok yeah thats a better idea
Report Abuse
TheCoderOfLua is not online. TheCoderOfLua
Joined: 12 Apr 2016
Total Posts: 1599
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
TheCoderOfLua is not online. TheCoderOfLua
Joined: 12 Apr 2016
Total Posts: 1599
22 Aug 2017 07:07 PM
and its weird like if something is applied it only appliees to new particles
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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