-
What is the issue? Include screenshots / videos if possible!
I want to implementing math.floor to CFrame:GetComponents to help with easier data saving
Not working (yet) code block that I tried to implement
-- cfi is CFrame Inversed from the model
local cframe = cfi * children[i].PrimaryPart.CFrame
local t = {cframe:GetComponents()}
for i,v in ipairs(t) do
t[i] = tostring(math.floor(v + 0.5))
end
local newCFrame = (unpack(t))
serial[tostring(newCFrame)] = children[i].Name
the working codeblock but with unnecessary decimal that takes alot of storage
-- cfi is CFrame Inversed from the model
local cframe = cfi * children[i].PrimaryPart.CFrame
serial[tostring(cframe)] = children[i].Name
the problem with non working code block is if I unpack it, It only return the first indexed value