So I am wondering if there is a way to set up a camera that shows a live video of the camera view with a surface GUI or decal. I can create a camera and a screen but I am wondering what code would I use for live video taking and display. If anybody here knows then please tell me! So I have tried this and it works but Its not exactly what I want:
local plr = game.Players.LocalPlayer
local mouse = plr:GetMouse()
local incam = false
mouse.Button1Down:connect(function(mouse)
if mouse.Hit.Parent.Name == "CamScreen1" and not incam then
workspace.CurrentCamera.CameraSubject = workspace.Camera1.CamLens
incam = true
elseif incam then
workspace.CurrentCamera.CameraSubject = plr.Character.Humanoid
end
end)
All that does is set the camera subject to the lens in the first camera's model, but what I'm trying to do is display the video from the camera's lens on a surface GUI instead of changing the position of the player's camera. I wouldn't think that that would be possible seeing that there is no video/image capture. If there is such thing then I would appreciate it if you tell me.
Sincerely, crazycittykat

1 comment
Well you could raycast a crap ton from the end of the camera and get a really low resolution picture.. But yeah I can't think of any efficient, effective methods that would produce a live camera.