Player rotation locking to camera, while shiftlock is not enabled

  1. What do you want to achieve?
    I want player to not lock its rotation to camera position.
  2. What is the issue?

    (sorry for low frame rates I have a low end PC and OBS doesn’t work properly for me)
  3. What solutions have you tried so far?
    I don’t know what to do for the solutions.

This is the code that I think could affect that.

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Challenges = ReplicatedStorage.RemoteEvents.Challenges
local Players = game:GetService("Players")
local Player = Players.LocalPlayer

Challenges.BigJump.OnClientEvent:Connect(function()
	Player.Character:WaitForChild("Humanoid").JumpHeight = 20
end)

Challenges.HighSpeed.OnClientEvent:Connect(function()
	Player.Character:WaitForChild("Humanoid").WalkSpeed = 32
end)

Challenges.FirstPersonCamera.OnClientEvent:Connect(function()
	Player.CameraMode = Enum.CameraMode.LockFirstPerson
end)

Challenges.OverTheShoulder.OnClientEvent:Connect(function()
	Player.Character:WaitForChild("Humanoid").CameraOffset = Vector3.new(2,0,0)
end)

ReplicatedStorage.RemoteEvents.RemoveChallenges.OnClientEvent:Connect(function()
	Player.Character:WaitForChild("Humanoid").JumpHeight = 7.2
	Player.Character:WaitForChild("Humanoid").WalkSpeed = 16
	Player.CameraMode = Enum.CameraMode.Classic
	Player.Character:WaitForChild("Humanoid").CameraOffset = Vector3.new(0,0,0)
end)

Thanks for helping!

That was just a studio bug, everything’s fine.