you could do it like this:
function vectortosaveable(vector) return {X = vector.X, Y = vector.Y, Z = vector.Z} end
im not gonna self promote, but i made a tutorial on this