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

What is the difference between CurrentCamera and Camera in roblox?

Asked by
CMB1048 25
2 years ago
local CurrentCamera = game.Workspace.CurrentCamera
--Whats the difference?
local Camera = game.Workspace.Camera
0
The current camera is the camera that the client is using. chavalquepro 0 — 2y

1 answer

Log in to vote
0
Answered by 2 years ago

Roblox recommends you to use workspace.CurrentCamera then workspace.Camera because it accurately returns the Camera the client is using.

workspace.Camera
-- might be another camera due to another camera can be created
workspace.CurrentCamera
-- returns the camera the client is using so no mistakes can be made

That's why!

0
So let me get this straight. Should I use CurrentCamera most of the time? CMB1048 25 — 2y
0
Yes. Finty_james 269 — 2y
Ad

Answer this question