I have a growing part and I want it to stop growing when it gets to a certain size.
while true do
Part = script.Parent
xs = Part.Size.X
ys = Part.Size.Y
zs = Part.Size.Z
xp = Part.Position.X
yp = Part.Position.Y
zp = Part.Position.Z
Part.Size = Vector3.new(xs+.1,ys,zs)
wait()
if Part.Size == Vector3.new(1,0.2,0.23) then --The real size of the part is (0.45, 0.2, 0.23)
--How can I break the whole script from working here?
end
end

3 comments
add a break
or use a repeat until
Help please?