This is kind of a bizarrely specific issue, but its an issue nonetheless.
Repro steps:
- Add a LocalScript to the StarterPlayerScripts with the following:
game:GetService("RunService"):BindToRenderStep("CameraUpdate",0,function ()
print("This is running!")
end)
wait(1)
print("Reached end of script.")
After one second, this is what the output looks like:
As you can see, the “This is running!” string only got printed one time, after 1 second had elapsed, because UnbindFromRenderStep got called on CameraUpdate for some reason.
This happens regardless if I override the default CameraScript or not, and it can be fixed if I just add a wait() to the top of the script.