What do you want to achieve? Keep it simple and clear!
I want a normal operating door that swings and pivots on the hinge.
What is the issue? Include screenshots / videos if possible!
It rotates on the wrong axis.
3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I have tried moving around the CFrame values but I cannot grasp how CFrames work. I have tried.
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
I have this line of code in a for loop:
It actually wasn’t too complex fortunately. Thank you for suggesting this. I do have one issue though and I wanted to see if you could help me understand why.
So with this I was hoping that it would be a smooth transition from open to close position. Instead of that though, there is no transition at all. It’s just open, or close. Any ideas? I just copied and pasted the code from that tutorial.
Yes. Everything is welded and anchored correctly according to the post.
local TweenService = game:GetService("TweenService")
local Panel = script.Parent
local PanelRoot = Panel.PrimaryPart
local PanelSwingInfo = TweenInfo.new() -- Let's use all defaults here
local PanelSwingTween = TweenService:Create(PanelRoot, PanelSwingInfo, {
CFrame = PanelRoot.CFrame * CFrame.Angles(0, math.rad(180), 0)
})
PanelSwingTween:Play()