Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by
Hexcede 52
9 years ago

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

Log in to vote
2
Answered by
adark 5487 Badge of Merit Moderation Voter Community Moderator
9 years ago

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.

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. Goulstem 8144 — 9y
Ad
Log in to vote
0
Answered by
Hexcede 52
9 years ago

Thanks for letting me know!

Answer this question