Open 3dsboy08 opened 2 years ago
Try the following:
print(repr({Vector3.new(math.random(), math.random(), math.random())}))
...and you will see it print out Vector3.new(0, 0, 0).
Vector3.new(0, 0, 0)
This is because you use %d, not %g - return ("Vector3.new(%d, %d, %d)"):format(v.X, v.Y, v.Z)
%d
%g
return ("Vector3.new(%d, %d, %d)"):format(v.X, v.Y, v.Z)
I can submit a PR for this if need be - ping if you want me to do so.
@3dsboy08 When will hollywood become opensource
Try the following:
...and you will see it print out
Vector3.new(0, 0, 0)
.This is because you use
%d
, not%g
-return ("Vector3.new(%d, %d, %d)"):format(v.X, v.Y, v.Z)
I can submit a PR for this if need be - ping if you want me to do so.