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

How do you increase NumberSequence in a loop?

I get an error that says Size is a UserData value.

for loop = 1, 15 do
wait(0.5)
script.Parent.Size = script.Parent.Size + NumberSequence.new(1)
end

1 answer

✓ Accepted answer

You can't add a vector3 and a numbersequence up. If you want to change the size of the brick constantly, you can use something like this:

local addSize = Vector3.new(0,1,0) --this is the amount it will resize.
for loop = 1, 15 do
	wait(0.5)
	script.Parent.Size = script.Parent.Size + addSize
end

Hope this helps!

1 comment

0

Thank you, I have been wondering how to use Number Sequences for months. :D

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