Pivot Offset on a Tween

Does anyone know how I could rotate a door with the tweenservice while using the PivotOffset.

The code below is what I tryed and it didn’t work.

Here is what I would like it to look like:

How it works in-game:

Thanks to anyone that can help in advance!

1 Like

Hiya, could you please send the code as a text file, makes life easier.

local TS = game:GetService("TweenService")
local Part = script.Parent.Parent.Parent

Part.PivotOffset = CFrame.new(-5, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
local OpenDoor = TS:Create(Part, TweenInfo.new(1), {Orientation = Vector3.new(0, 90, 0)})

Might want to take a look into CFrame Math Operations.

1 Like

Ok, ill read through that and then retry the CFrame, Thanks.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.