I can't change the Field-of-View-Value!

Hello, since I am not a fan of the default Roblox “Field-Of-View” settings, I tried to change the Field of View in my game to 40 to make the entire game look a little bit better. I’ve changed the value of “Field of View” in the camera properties, but when I join my game, they are beeing reseted to 70 again all the time.

Does anyone of you guys know how to fix that problem?

Hey sometimes roblox can reset your FOV to 70 after an action occurs, I recommend just continuously overwriting the FieldOfView property within a render step connection.

It would look like the following

local Camera = workspace.CurrentCamera

local fovLoop = game:GetService("RunService").RenderStepped:Connect(function()
    Camera.FieldOfView = 40
end)

-- and then if you ever wanted to stop the loop you could do the following

fovLoop:Disconnect()
2 Likes

Changing the Field Of View in studio will only change it server-side (before playing).
There are a couple ways to modify it, whether with scripting or by changing values;

1. - You can directly change the Field of View amount by playing in studio, by opening the Explorer and Properties tab and changing the value from there (image).

2. While the post above can fix your problem, it could also interrupt actions where your FOV ideally changes (due to it updating every frame). Another way to do it would be like this:
This only works for a LocalScript, you can place it in ReplicatedFirst

game.Players.LocalPlayer.CharacterAdded:Wait() -- waits for the player's character to load (just for good measure)
workspace.CurrentCamera.FieldOfView = 40

Please note that this method won’t force your camera into a Field of View of 40 all of the time, unlike the post above.

Hope this helped!

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.