I pass a cFrame from the client, to the server, and then on the server create a block and give it the same cFrame the client passed. Yet, the cframe the client passed is not the same as the one the server does to the block. This then breaks my other code which I use to get the orientation. Why is this happening? There’s no reason for cFrame and ConvertedBlock.CFrame to NOT be the same number?
print("CFrame passed from client", cFrame)
local x, y, z = require(Shared.Helpers).RotationFix(cFrame)
print("Should be", x, y, z)
print("Converted block CFrame", ConvertedBlock.CFrame)
local x, y, z = require(Shared.Helpers).RotationFix(ConvertedBlock.CFrame)
print("Was actually", x, y, z)
local ConvertedBlock = self.Handler:ConvertToBlock(NewBlock, cFrame)--(NewBlock, cFrame) -- Convert block to part based
function PlotManager:ConvertToBlock(block, position, yRot, rotationCFrame)
local Root = block:FindFirstChild("Root")
if not Root then return end
block.PrimaryPart = Root
local NewCFrame = position
block:PivotTo(NewCFrame)
Root.Name = block.Name
Root:SetAttribute("Id", block:GetAttribute("Id"))
return Root
end
