local Open = false
game.ReplicatedStorage.RemoteEvent.OnServerEvent:Connect(function()
if Open == false then
for i = 1, 30 do
wait()
script.Parent.CFrame = CFrame.new(workspace.Hinge.Position) * CFrame.Angles(0,math.rad(i*3), 0) * CFrame.new(4,0,0)
Open = true
end
else
for i = 1, 30 do
wait()
script.Parent.CFrame = CFrame.new(workspace.Hinge.Position) * CFrame.Angles(0,-math.rad(i*3), 0) * CFrame.new(4,0,0)
Open = false
end
end
end)
When it is gonna close, it goes back to the normal position and then does the tweening. It is because it says to set the CFrame back to the original state. But I want it to go from open to closed smoothly. How would I be able to make it so that it can close from the open position smoothly?

2 comments
Could you please explain your situation a little more in depth?
cframe doesnt work to me at all