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

I'm trying to increase the size of a brick every second but i can't do Vector3.new()+1?

Asked by 5 years ago
Edited 5 years ago

Maybe kinda stupid but is there any oother way to do this code:

while true do
script.Parent.Size = Vector3.new(2,2,2)+1
wait(1)
end

1 answer

Log in to vote
1
Answered by 5 years ago

So you want to make a part bigger every second by 1 studs?

local Part = script.Parent  

while true do
wait(1)
Part.Size = Part.Size + Vector3.new(1,1,1)
end

this will make the part bigger by 1 studs (X,Y,Z) every second.

I didn't test this code , I just write it out..

0
Thank You Danielkaya, Freddan2006YT 88 — 5y
0
Please explain the code, what you changed, what it does, and where they went wrong as it will help them greater in the future should they come to this issue again. awfulszn 394 — 5y
Ad

Answer this question