Hi! I’m trying to make a part increase by an increment of 1, on the X axis, 10 times. For some reason this doesn’t work, anyone know why?
![Capture4364366346436436436](/secure-uploads/uploads/original/5X/8/e/7/b/8e7bbf81f133717866bd62796349934051bdc558.png)
Hi! I’m trying to make a part increase by an increment of 1, on the X axis, 10 times. For some reason this doesn’t work, anyone know why?
It looks like the issue might be with your for
loop. You are using i++
as the increment, which is not a valid syntax in Lua. The correct syntax is i = i + 1
or i += 1
(but this is not supported in Lua). Try changing your for
loop to:
for i = 1, 10 do
part.Size = Vector3.new(part.Size.X + 1, part.Size.Y, part.Size.Z)
wait(1)
end
This should make the part increase in size by 1 on the X axis, 10 times with a delay of 1 second between each increment.
It works! Thanks for the explanation and help.
Stop using Chat GPT, you keep saying you arent. I just used it right now and i got the exact same answer as yours. I have the problem with you is lying about using it.
Way off topic but could you send a picture of your syntax highlighting settings?
I like the look of it.
while the script provided is completely correct, seems your AI is getting something wrong?
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.