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

how can I access a local players camera?

Asked by 8 years ago

can someone teach me how to get a local players camera if the players name is test123? I've searched dozens of videos, checked all wikis related to cameras and none of them teach this :(

the only thing I know about this is this part game.Players.FindFirstChild("test123"). -- I don't know the rest

1 answer

Log in to vote
1
Answered by
xApRix 25
8 years ago

Place a local script in the PlayerGui, StarterPack (Backpack), or the players character.

In the local script:

--How you get the local player
local Player = game.Players.LocalPlayer 
--Gets the player under game.Players

--How you get the local camera
local Camera = game.Workspace.CurrentCamera 
--Gets the local players camera, this won't work unless it's in a local script.

Hope this helps. :)

0
thank you joeyortiger 30 — 8y
0
Np xApRix 25 — 8y
Ad

Answer this question