I have this gun system, and I’m trying to make it so when you’re not aiming the camera is locked to the center, and moves your camera around when you move your mouse around.
I’ve tried Enum.MouseBehavior.LockCenter
and Enum.MouseBehavior.LockCurrentPosition
. However, both do lock the mouse but the camera is unmovable from its current position without holding down right click.
tool.Equipped:Connect(function()
safety = true
uis.MouseBehavior = Enum.MouseBehavior.LockCurrentPosition
uis.MouseIconEnabled = false
idleAnim:Stop()
safetyAnim:Play()
ots:Disable()
ots:SetCharacterAlignment(false)
plr.Character.Humanoid.AutoRotate = true
end)
^ What’s supposed to happen is when you equip the gun, the camera is locked to the centre and can be moved around freely without holding down right mouse button.