Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I make a local particle emitter?

So I was making a game but I wanted a way for players to reduce lag. So I made a settings option in my game to turn off the falling snow/make it a less detailed snow texture, but how would I make it so that it will only show for the player that enabled it? Sorry I am new to this whole scripting thing

2 answers

✓ Accepted answer

Well since this is client-sided this is quite easy to accomplish.

You can have a textbutton with a LocalScript with the following:

local MyParticle = workspace.ParticlePart.ParticleEmitter

local enabled = true

script.Parent.MouseButton1Click:connect(function()
	if enabled == true then
		enabled = false
		MyParticle.Enabled = false
		script.Parent.Text ="Disabled the particle"
	else
		enabled = true
		MyParticle.Enabled = true
		script.Parent.Text = "Enabled the particle"
	end
end)

1 comment

0

Thank you so much this has saved me so much time I cant tell you how long I have been trying to figure this out!

This discussion is preserved as it was. New answers, comments, and votes are closed.