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

Why do people use CurrentCamera Instead of Camera?

Asked by 5 years ago

my friend and the wiki saids to use CurrentCamera instead of Camera is there any explanation on why this happenS?

0
Player Clones the Camera instance from Workspace so it becames CurrentCamera inside Player Instance. AswormeDorijan111 531 — 5y

2 answers

Log in to vote
0
Answered by 5 years ago

A little google is good for your brain sometimes. I found the answer very easily by just searching, CurrentCamera Next time when you have a question please attempt at finding the answer before making a question about it! But however feel free to make a question anyways just in case.

Ad
Log in to vote
0
Answered by
Amiaa16 3227 Moderation Voter Community Moderator
5 years ago

Because CurrentCamera is a property of workspace. If you used workspace.Camera you could accidently reference another object named "Camera".

This is also the reason why you use plr.Character rather than workspace[plr.Name].

Answer this question