You can write your topic however you want, but you need to answer these questions:
-
I have an eotech magnifier model and i want to rotate the actual scope without rotating the rail mount
-
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
- 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 = TweenInfo.new(.5,Enum.EasingStyle.Quad,Enum.EasingDirection.Out,0,false,0)
wait(1)
local doorCFrame = tweenService:Create(ScopeHinge, ScopeRotate, {
CFrame = ScopeHinge.CFrame * CFrame.Angles(math.rad(90),0,0)--Change 100 to whatever value. Range of swing.
})
wait(.5)
doorCFrame:Play()
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.