Hello! I’m trying to make my first elevator for my game. I have a problem with opening the doors:
I don’t know how to rotate the doors at different angles of rotating.
I tried to use CFrame.fromOrientation, but it doesn’t work.
The example for the left door I wrote:
local LeftGlassOpenAnim = TweenService:Create(LeftGlass, tweenInfo, {CFrame = CFrame.new(LeftGlass.Position.X - 1.08, LeftGlass.Position.Y, LeftGlass.Position.Z + 1.807) * CFrame.fromOrientation(0, math.rad(45), math.rad(-180))})
Please help me to understand CFrame