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
Place a local script in the PlayerGui, StarterPack (Backpack), or the players character.
In the local script:
1 | --How you get the local player |
2 | local Player = game.Players.LocalPlayer |
3 | --Gets the player under game.Players |
4 |
5 | --How you get the local camera |
6 | local Camera = game.Workspace.CurrentCamera |
7 | --Gets the local players camera, this won't work unless it's in a local script. |
Hope this helps. :)