Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by
GOECWW 2
4 years ago

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

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 misha123 83 — 4y
0
My answer does work. Memotag 226 — 4y

1 answer

Log in to vote
0
Answered by
Memotag 226 Moderation Voter
4 years ago
Edited 4 years ago

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)
0
i dont think so ive already tryed that. GOECWW 2 — 4y
Ad

Answer this question