I have this tween which changes the position and rotation of a part, but it gives me the “unable to cast to dictionary” error. I’ve tried making them into separate tweens, but the rotation moves the part to around 0, 0, 0.
local openLeftDoorTween1 = game.TweenService:Create(workspace["Wardrobe Doors"]["Wardrobe Draw Left"], tweenInfo, {CFrame = CFrame.new(-14.125, -1.25, -11.625), CFrame.Angles(0, math.rad(90), 0)})
Does anyone know how to fix this?
04nv
(04nv)
July 12, 2022, 11:29pm
2
I assume you meant to multiply that CFrame, you added it as a value by mistake.
local openLeftDoorTween1 = game.TweenService:Create(workspace["Wardrobe Doors"]["Wardrobe Draw Left"], tweenInfo, {
CFrame = CFrame.new(-14.125, -1.25, -11.625) * CFrame.Angles(0, math.rad(90), 0)
})
1 Like
Instead of , CFrame.Angles, do you mean to multiply them?
No, I thought that you could rotate CFrames in a second argument for the CFrame but I must be mistaken.
You can in certain ways, but that’s not the second argument in a CFrame. That’s the second entry in a table.