Help with particle emitter button

Trying to make a button to change properties of a particle emitter

local Button = script.Parent
Button.RemoteEvent.OnServerEvent:Connect(function(Player)
	local Char = Player.Character
	assert(Char,"Character does not exist")
	local ParticleEmitter = {Char.LeftArm3.LightningMode.Particles}
	for _,ParticleEmitter in pairs(ParticleEmitter) do
		if ParticleEmitter.Size == 0 then
			ParticleEmitter.Size = 1
		else
			ParticleEmitter.Size = 0
		end
	end
end)

What is LeftArm3? Unless you have a custom character that shouldn’t be in the character.

ParticleEmitter.Size takes a NumberSequence, not a number.

2 Likes