Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How can I make a live video camera in my place?

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

2 answers

✓ Accepted answer

It is not currently possible to display a Camera's view on a GUI (of any kind) or Decal. You can only do it by setting the Player's camera.

Sorry.

1 comment

2

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.