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

Camera Script only works in studio?

Not working!

The fieldofview is not working.

The script below is a normal script inside of Camera

wait()
script.Parent.CameraSubject = game.Workspace.Lonak
script.Parent.CameraType = Enum.CameraType.Follow
script.Parent.FieldOfView = 15 

1 answer

✓ Accepted answer

You can only modify the camera in a LocalScript. You need to put your code in a LocalScript and put it in somewhere such as in the player, their character, PlayerGui or Backpack.

I would suggest putting it in StarterGui or StarterPack so that the script will be transferred to the player's PlayerGui or Backpack respectively.

I hope my answer helped you. If it did, be sure to accept it.

2 comments

0

I put the script in the starterpack in a local script and It did not change

0

You need to reference game.Workspace.CurrentCamera instead of script.Parent in the LocalScript.

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