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

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

Asked by 4 years ago
Edited 4 years ago

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?

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 User#28017 0 — 4y
0
Well actually since the camera is a local element it is seen by all players in startergui H_exadecimal 9 — 4y
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? User#28017 0 — 4y
0
also answer the question with that so I can accept it User#28017 0 — 4y
View all comments (2 more)
0
ok. thx for the help User#28017 0 — 4y
0
Camera can only be edited in localscript Sergio4755 21 — 4y

1 answer

Log in to vote
1
Answered by 4 years ago

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.

Ad

Answer this question