Rotating a model with an unanchored hinge

You can write your topic however you want, but you need to answer these questions:

  1. I have an eotech magnifier model and i want to rotate the actual scope without rotating the rail mount

  2. It works when the hinge is anchored, the problem is i need it to be unanchored for my viewmodel. The scope need to be welded to the mount else the scope wont be attached.

Unanchored hinge attached to mount witch is attached to a anchored part: 2021-12-10 14-04-10
Anchored hinge: 2021-12-10 14-03-24
Unanchored hinge attached to an anchored part: 2021-12-10 14-02-36

  1. I tried to weld the scope to an anchored part but it won’t rotate Did you look for solutions on the Developer Hub?

It doesn’t have anything to do with the code, although i may be wrong so i’ll leave it here

local tweenService = game:GetService('TweenService')

local Scope = workspace.EoTechMagnifer.Scope
local ScopeHinge = Scope.PrimaryPart
local ScopeRotate =,Enum.EasingStyle.Quad,Enum.EasingDirection.Out,0,false,0)

local doorCFrame = tweenService:Create(ScopeHinge, ScopeRotate, {
	CFrame = ScopeHinge.CFrame * CFrame.Angles(math.rad(90),0,0)--Change 100 to whatever value. Range of swing.



Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.


So you set it unanchored, and when the player does something, like place it down, you anchor it. Simple as that! :slight_smile:

1 Like

The problem is it needs to be unanchored at all times, if i anchor it it stays in place and doesn’t follow on the gun anymore.

1 Like

Set it locked then unlocked? That would be the other solution I have for you.

1 Like