This is the identity matrix which is what roblox counts as 0, 0, 0 rotation. @dthecoolest probably has the closest to what you want, but it depends on what you want this rotation for. Its possible you only need a direction not a CFrame.
for i,v in pairs(Info.Plot) do
local PlotInfo = nil
for i,Build in pairs(AllBuilds) do
if v.Object == Build.Name then
PlotInfo = Build:Clone()
end
end
PlotInfo.Parent = clone.Data
local X = clone:GetPivot().Position.X + v.X
local Z = clone:GetPivot().Position.Z + v.Z
PlotInfo:PivotTo(CFrame.new(Vector3.new(X,15.1,Z)) * CFrame.Angles(math.deg(v.Rotation.X), math.deg(v.Rotation.Y), math.deg(v.Rotation.Z)))
end
However the part isnt showing up
The model only started not showing up after I used your
Cframe:ToOrientation()
before that it was teleporting it to the correct position but not rotating it
ERROR:
Workspace.Plots.Script:189: attempt to index number with ‘X’
for i,v in pairs(Info.Plot) do
local PlotInfo = nil
for i,Build in pairs(AllBuilds) do
if v.Object == Build.Name then
PlotInfo = Build:Clone()
end
end
PlotInfo.Parent = clone.Data
local X = clone:GetPivot().Position.X + v.X
local Z = clone:GetPivot().Position.Z + v.Z
PlotInfo:PivotTo(CFrame.new(Vector3.new(X,15.1,Z)) * CFrame.Angles(math.rad(v.Rotation.X), math.rad(v.Rotation.Y), math.rad(v.Rotation.Z)))
end
I believe you do not know what to do and that you do not sufficiently understand my problem. You are manually changing the orientation of a part inside of a model in the properties tab. Thank you for your attempt but I believe this issue is too much for you
Edit: NVM found out it is due to needing a primary part for your model see the other post you made. Apologies for the inconvenience, although that is normal in the journey to find a solution.