Trouble tweening the size of a particle emitter

You can write your topic however you want, but you need to answer these questions:
In the particle pictured below, there is a black orb at the center.
particle
the goal of the script is for the orb to start out invisible and small, and become less transparent and larger as the tween goes on.

Here is the script I am using to pull this off

local TweenService = game:GetService("TweenService")
local part = script.Parent

local size = TweenInfo.new(
	4,
	Enum.EasingStyle.Linear,
	Enum.EasingDirection.Out,
	0,
	false,
	0
)

	


local Tween = TweenService:Create(part,size,part.Size == NumberSequence.new(1,5)
	
Tween:Play()
while Tween.PlaybackState == 2 do
	wait(0.1)
	print("tween is playing")	
	part.Transparency = part.Transparency+0.1
end

If I were to guess, it would be that something isn’t working out with the tween info and/or the tween goal. Messing around with those got me nowhere. Any help would be greatly appreciated!

This has to be a dictionary (and did you want to use math.random because NumberSequence doesn’t work for BasePart.Size):

local Tween = TweenService:Create(part, size, {Size = math.random(1,5)})

The problem is still there. I tried defining a separate dictionary and using that dictionary for the parameter but that also didn’t work

You can’t tween a particle emitter’s Size property, and also your script has many mistakes, I recommend checking your errors and maybe taking a peak at this post as it resolves this problem:

local temp = workspace.temp[“temp beam”] temp.Size = NumberSequence.new(0,51) try this with the given names or rename it to what u want…let me know if it works

just paste it into the command line