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

Need help with a player's Camera, can it be accessed in a server Script?

I put the following code into a LocalScript, which the Parent of the script is StarterGui:

workspace.CurrentCamera.FieldOfView = 90

This does increase the Field of View of the player (FOV) but I wanna know how to access a player's camera with a server Script. Does anyone know how to do this?

6 comments

0

only the player with the script sees the Fov change to 90, not the whole server, since this is a local script. Dont know if that was obvious or not lol

0

Well actually since the camera is a local element it is seen by all players in startergui

0

oh, that makes sense. if i wanted to make a round-based game that would change the player's gui every round and during the intermission, would I give all players a localscript that changes the currentcamera?

0

also answer the question with that so I can accept it

0

ok. thx for the help

0

Camera can only be edited in localscript

1 answer

✓ Accepted answer

You can just place a script in the StarterPack and it will load it into the player or create a script with a local script inside it and place that in workspace and when a player joins, add the local script to the player.

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