- 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:
door:SetPrimaryPartCFrame(CFrame.new(hingepos) * CFrame.Angles(0,math.rad(i),0) * CFrame.new(4,0,0))