Error when trying to change particle system transparency

I am trying to change the transparency of a particle system every frame, and I am getting the error: Players.OliveGord.PlayerScripts.LocalScript:29: attempt to call a table value.

prevTransparency += math.clamp(math.random(-1,5)/20, 0, 1)
print(prevTransparency)
local keypoints = {
NumberSequenceKeypoint(0, prevTransparency),
NumberSequenceKeypoint(1, prevTransparency),
}

part.particles.Transparency = NumberSequence.new(keypoints)

First off you need to do NumberSequenceKeypoint.new(1, prevTransparency) since you’re just calling the table instead of making a new object. Comparable to doing Instance('Part') instead of Instance.new('Part')

But also if you’re just setting one value you could just do

part.particles.Transparency = prevTransparency

Thank you! The first solution worked.