I’m setting camera CFrame to this treasure position. I’m setting the focus of the camera either to the character primary part or the treasure, but RANDOMLY, whenever Roblox decides I guess, I am streamed out and CFrames turn into nans and my focus is thrown off, my entire character is streamed out as well as my surroundings, gameplay gets paused, etc. This is the most confusing problem I have ever had on Roblox, and it has to do with StreamingEnabled. Someone please tell me this isn’t a bug. I am using typescript so I will provide both the typescript and the lua versions (lua will be cut up a bit so as to not look horrible). Please excuse the bad code as I am also extremely stressed and feeling like I’ve tried everything putting in patches all over the place. So here goes nothing.
You will see on the first treasure I dug up the cutscene worked perfectly. However you will see the problem occur on the second treasure and I explained exactly why it’s happening. I set CameraType to Scriptable and just set the CFrame to the treasure.
TS Code: code.ts · GitHub
LUA CODE: code.luau · GitHub
VIDEO WHERE ISSUE OCCURS: Watch Streaming issue? | Streamable
And I am 100% positive the issue occurs here in the code I have provided!
My streaming options are as follows:
StreamOutBehavior: Default
StreamingMinRadius: 128
StreamingMaxRadius: 1024
ModelStreamingBehavior: Default