Particles not working when part is being Moved near it

So I made a Jetpack. I used a particle emitter for a fire effect while it was being used. It worked just fine. Then I tried to make a bar to display how much fuel it had left. While the fuel bar was active, the particles completely didn’t show. After removing the fuel bar, the particles worked just fine. The fuel bar works by being resized and positioned down. Here is the script for the Jetpack fuel bar.

HB:Connect(function()
	if flying == true and Bar.Size.X >= 0.1 then
		Bar.Size = Vector3.new(Bar.Size.X - 0.01, Bar.Size.Y, Bar.Size.Z)
		Bar.Position = Vector3.new(Bar.Position.X, Bar.Position.Y - 0.005, Bar.Position.Z)
	end
end)

If I’m correct your error isn’t in the block you showed.

I think that this will fix it quickly:

Just put the particleEmitter.Enabled = true above whereever you start the fuel bar part.

If not:
Please show the part where you enable the particle emitter.

Didn’t work. As previously stated, it worked fine before I added the Fuel bar. Hes the full code for reference.

UIS.InputBegan:Connect(function(key)
	if key.KeyCode == Enum.KeyCode.Space and Human:GetState() == Enum.HumanoidStateType.Freefall and Bar.Size.X >= 0.1 then
		flying = true
		JP.E1.ParticleEmitter.Enabled = true
		JP.E2.ParticleEmitter.Enabled = true
		local BV = Instance.new("BodyVelocity")
		BV.Parent = Root
		BV.Name = "BV"
		BV.MaxForce = Vector3.new(1e5,1e5,1e5)
		BV.Velocity = Root.CFrame.UpVector * 20
	end
end)
UIS.InputEnded:Connect(function(key)
	if key.KeyCode == Enum.KeyCode.Space then
		flying = false
		JP.E1.ParticleEmitter.Enabled = false
		JP.E2.ParticleEmitter.Enabled = false
		local BV = Root:FindFirstChild('BV')
		if BV then
			BV:Destroy()
		end
	end
end)
HB:Connect(function()
	if flying == true and Bar.Size.X >= 0.1 then
		Bar.Size = Vector3.new(Bar.Size.X - 0.01, Bar.Size.Y, Bar.Size.Z)
		Bar.Position = Vector3.new(Bar.Position.X, Bar.Position.Y - 0.005, Bar.Position.Z)
	end
end)

What is the variable “HB” assigned to?

Runservice.Heartbeat (getting it to 30)