FOV not Tweening

I don’t know whether this is a bug or I’m missing something, but this script

local bpm = 100
local ts = game:GetService("TweenService")

while wait(60/bpm) do
    print("Beat")
    local g = {}
    g.FieldOfView = 70
    local t = ts:Create(workspace.CurrentCamera,TweenInfo.new(30/bpm,Enum.EasingStyle.Quint,Enum.EasingDirection.Out,0,true), g)
    t:Play()
end

is not tweening the camera.

You’re tweening it to FieldOfView = 70 every beat, but that’s already the default FieldOfView. Change it to something higher or lower to see a difference.

2 Likes

Like other replies have said, 70 is the default FOV. So you will not see a difference unless it is changed somewhere else previously. If you mean it’s changing, just instantly, that could be because you have the tween time set to 30/bpm. In this case “bpm” is 100, this would mean that the entire tween will only last 0.3 seconds. That could be the problem.

I’ve already changed the FOV of the camera to 75

I solved it by resetting the FOV at the beginning of the loop!

1 Like