Help with warning "value of type NumberSequence cannot be converted to number"

Hi,

I have been getting this warning since today and it’s lagging my game out pretty bad at the moment and I have seemingly no idea on how to fix it.

the Output keeps printing it and it could be lagging my stuff out (no idea if it is, some other stuff is running in the BG aswell so could be harmless atm)

Please tell me I can fix this without having to remove the lines causing it, ROBLOX messed up first person effects recently and its been the only way I have to mending that issue.

1 Like

Hi, according to the errors in the output you’re trying to set value of NumberSequance to something thats not a number could you show a script where youre trying to update value of the NumberSequance or the code thats erroring ?

I linked the script in the main message.

lines affected are lines 17 and 18 and from what I know now its not affecting performance.

could you show what BlastBarrel exactly is ? is it a particle or what

It is a particleEmitter and it activates when you shoot a gun.

That video shows it, the particle is the one at the barrel of the gun, not the ball.

PlasmaRifleMK1:FindFirstChild("LargeBarrel").BlastBarrel.LocalTransparncyModifier = NumberSequence.new(PlasmaRifleMK1:FindFirstChild("LargeBarrel").BlastBarrel.Transparency)
Secondary:WairForChild("Barrel").BlastBarrel.LocalTransparncyModifier = NumberSequence.new(Secondary:FindFirstChild("LargeBarrel").BlastBarrel.Transparency)

just replace the lines with this since ParticleEmitter.Transparency is a NumberSequence, hope this helps.