Do you know how to make a ViewportFrame show what the player sees in the Workspace using CurrentCamera? I’m also going to put the ViewportFrame inside a SurfaceGui, but I don’t think it would interfere with this. Or are there other ways to replicate on a UI element what Workspace’s CurrentCamera shows?
No a surface gui wont interupt a viewport as far as im aware but theres a solution you could take in order to keep a performant Viewport without copying the entire workspace and pasting it into a viewport. Try seeing what is on the players screen by using WorldToScreenPoint() on each position of a part or model in the workspace this will most likely still lag a little bit but its the best solution I can think of currently
There are usually free models without viruses that have pre-written code that does this effectively without lag. Boatbomber actually has a viewport handler module that might be what your looking for
Hopefully this solves your issue: ViewportFrame Camera System - #59 by boatbomber
I was aiming to create a system that mirrors the player’s camera on a large monitor for when he’s driving, but I think I’ll replace the monitor’s content with something else. Thanks for your help anyway.
Your welcome Im glad I could help, if your looking about sort of a mirror try changing the “Reflection” property. You can also update the viewports position by binding it to the camera to get a realistic look
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.