Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

attempt to perform arithmetic (add) on NumberSequence and number error?

so i got that error also what i was trying to do is make the particle bigger here is the code line:

for i = 1,100,1 do
	ExplodingParticle.Size = ExplodingParticle.Size +1
	wait(0.01)
end

thats the code any help plz

2 comments

0

a number sequence isnt a solid number its more like a table i used this when i was having trouble with it https://developer.roblox.com/en-us/api-reference/datatype/NumberSequence it errors youre trying to add a normal number to a number sequence

0

My answer does work.

1 answer

The particle takes X, Y and Z parameters and you are not specifying which axis you want to increase the size of.

I assume you want to increase all of them and you can do this by doing:

ExplodingParticle.Size = ExplodingParticle.Size + Vector3.new(1, 1, 1)

1 comment

0

i dont think so ive already tryed that.

This discussion is preserved as it was. New answers, comments, and votes are closed.