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

What is the difference between CurrentCamera and Camera in roblox?

local CurrentCamera = game.Workspace.CurrentCamera
--Whats the difference?
local Camera = game.Workspace.Camera

1 comment

0

The current camera is the camera that the client is using.

1 answer

✓ Accepted answer

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!

2 comments

0

So let me get this straight. Should I use CurrentCamera most of the time?

0

Yes.

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