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

how can I access a local players camera?

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

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. :)

2 comments

0

thank you

0

Np

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