Simple Question about particles and transparency

I was trying to further my basic knowledge of scripting by practicing a few simple scripts but for some reason this does not work.

This script should turn on a particle effect when touched and then turn off after the wait.

script.Parent.Touched:Connect(function()
	script.Parent.Flame.Transparency = 0
	wait(1)
	script.Parent.Flame.Transparency = 1
end)

It gives me an error “Workspace.Testpart.Script:2: invalid argument #3 (NumberSequence expected, got number)”.

It sounds like it is having an issue with the number sequence for the transparency value. I use this same script with blocks and it works fine. Can someone explain why it does not work with a particle emiter?

Thanks.

script.Parent.Flame.Enabled = false

Its not actually fire. It is a particle that is called flame. I am trying to change the transparency. But thank you for that. I was wondering how to enable fire.

particleEmitter.Transparency = NumberSequence.new{
    NumberSequenceKeypoint.new(0, 0), -- (time, value)
    NumberSequenceKeypoint.new(.5, .75),
    NumberSequenceKeypoint.new(1, 1)
}

This works with Fire. But I still need the original question answered for particles.

script.Parent.Fire.Enabled = false
script.Parent.Touched:Connect(function()
	script.Parent.Fire.Enabled = true
	wait(1)
	script.Parent.Fire.Enabled = false
end)

You can’t set a numeric transparency if it’s asking you for a number sequence

As the guy above said, you can just use “enabled” which has the same effect

The Transparency property of ParticleEmitters are described via a NumberSequence value of the NumberSequence class, not a generic native to Lua number value.

https://developer.roblox.com/en-us/api-reference/property/ParticleEmitter/Transparency

This seems to trip up a lot of users as they expect the same behavior that is observed in BasePart instances.