Hey, I’m trying to reset the player camera back to the player, but unfortunately the console gets spammed with these errors. I don’t know what else I can do to fix this error.
Code (Local):
game.ReplicatedStorage.HONEYCAM2.OnClientEvent:Connect(function()
local h = game.Players.LocalPlayer.Character.Humanoid
workspace.Camera.CameraType = Enum.CameraType.Custom
workspace.Camera.CameraSubject = h
end)
game.ReplicatedStorage.HONEYCAM2.OnClientEvent:Connect(function()
local h = game.Players.LocalPlayer.Character.Humanoid
workspace.CurrentCamera.CameraType = Enum.CameraType.Custom
workspace.CurrentCamera.CameraSubject = h
end)