#For loop wont work
28 messages · Page 1 of 1 (latest)
Code:
for y = tablet["YRange"]["Min"], tablet["YRange"]["Max"], 1 do
for z = tablet["ZRange"]["Min"], tablet["ZRange"]["Max"], 1 do
print(x..", "..y..", "..z)
local data = {
Position = Vector3.new(x,y,z),
Weight = (Vector3.new(x,y,z) - StartPosition).Magnitude + (Vector3.new(x,y,z) - EndPosition).Magnitude
}
table.insert(Grid, data)
end
end
end
First loop, x value is -7 and the 2nd value is 3
and first loop doesnt work
hihihihhi
tablet named table
but why ur code so nested, its amazingly ugly
hold on
bad condition?
I switched values
Its only few lines
rest are organized
guessed
never make lines look ugly
** You are now Level 2! **