Why is this error occuring?

Did you try it multiple times? As shown in the video, it is not guaraunteed to encounter an error and the part I cut out involved me joining and leaving the menu more than 10 times before receiving an error. It depends on how lucky you get.

Secondly, no, I do not have another script controlling the cameras. If you are talking about scripts I made, the menu one is the only one.

Ultimately, dont feel guilty if you cant find the reason for why this error is happening. I can find a workaround or partly axe the feature as it is not a vital part of my project. Perhaps the root of my problem is just the fact that im using tweens.

Perhaps try setting the camera subject to be player.Character or player.Character.HumanoidRootPart ?

That does not seem to be working.

You shouldn’t script inside the default PlayerModule, as it is constantly subject to important changes and updates.

I am not scripting inside the PlayerModule! It’s just that the error addresses it, I didn’t even know it existed before.

Oh alright! I think i might found the problem. Does this error happen when you call the closeMenu function?

I suppose? The error occurs after you close the menu so that makes sense. What do you think is the problem?

My bad, I thought that I found the problem but I was wrong. I tried your code and it works well for me, with no errors thrown in output, even when running closeMenu and openMenu multiple time in a row.

Is the Player Module the latest version?
Other than that, I don’t know. It could be a new random bug due to a recent update. Try reporting it in #bug-reports (if you have access)

I don’t have access to bug reports. I’ll have to axe camera movement then.