Hello all!
I randomly found this bug while coding a cutscene for a friend today. It was interesting so I decided to reproduce it in an empty baseplate and… it got stranger.
So first, a description:
When the camera is in scriptable mode, and tweened to look vertically down on a part, the player’s character is teleported to 0,0,0 (the origin) and then appears to loop respawn there.
https://i.gyazo.com/a0226fedb3b8296ff03b6f99242b5bb3.mp4
This happens in Roblox Studio and the Roblox Client. I noticed just today but I have no idea how long it has been in the engine. Moving your character after respawning at the origin seems to break the cycle and everything returns to normal.
I’ve attached a Roblox Place file for reproducing the glitch. It has one part in workspace and one client script to manipulate the camera and produce the bug. For reference, this is the only custom code in the entire place file:
Set the camera to scriptable. Play a tween. Set it back to custom. Quick and sloppy, nothing fancy.
(Setting it back to custom just lets you see the effects of the bug better, it’s not required to create the bug).
I found this on a desktop with modern hardware and can reproduce it on any device I’ve tried (phone, laptop).
Repro File: CameraBug.rbxl (21.6 KB)
This isn’t a super important bug, but it is… interesting? You can band-aid this by adding any amount to the X or Z axis on the tween instead of looking straight down.
Thanks for reading!