I locked the mouse using UserInputService.MouseBehavior = Enum.MouseBehavior.LockCenter
Now I want that when the player moves the mouse the character / camera will follow the mouse but this is happening :
robloxapp-20200323-1744417.wmv (2,2 MB)
The mouse is jumping back
I think its because of this lines :
local function camUpdate()
UserInputService.MouseBehavior = Enum.MouseBehavior.LockCenter
cam.CFrame = CFrame.new(Torso.WeaponCam.WorldPosition,Vector3.new(x,y,face.Z*9999))
end
UserInputService.InputChanged:connect(function(move)
if move.UserInputType == Enum.UserInputType.MouseMovement then
local rotation = UserInputService:GetMouseDelta()
x = rotation.x
y = rotation.y
camUpdate()
end
end)
Im trying to make that for 5 hours now pls help