2DWorlds Forums
ParticleSystem - Printable Version

+- 2DWorlds Forums (http://2dworlds.buildism.net/forum)
+-- Forum: 2DWorlds (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=4)
+--- Forum: Scripting (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=13)
+--- Thread: ParticleSystem (/showthread.php?tid=8134)



ParticleSystem - Sazaho - 08-25-2011

I was wondering how do you enable a particle system? Is it something like:

ParticleSystem = enabled

to turn it on?

And in a weapon would it work like this:

if part.Parent:isA("NPC") or part.Parent:isA("Character") then
Tool.ParticleSystem = enabled

(and how would you turn it off after this? Just reverse it?)

(Please not the above script lines are from the original sword script)

Thanks you for your time.


RE: ParticleSystem - Qwertygiy - 08-25-2011

Instead of enabled (which is not a part of it) try this:

if part.Parent:isA("NPC") or part.Parent:isA("Character") then
particleSystem.Parent = tool
else
particleSystem.Parent = nil
end


Something like that.


RE: ParticleSystem - hopperkk - 08-26-2011

What he said! ^^^^
Lolz! Big Grin
I know I fail.
I'm not a great scripter anyways.
Sorry... I'll get out.