How can I adjust the field of view using twin service?

I’m going to use it for running Please help me

1 Like

local TweenService = game:GetService("TweenService")
local part = script.Parent

part.Touched:Connect(function(hit)
    local currentCamera = workspace.CurrentCamera
    if currentCamera then
        local fov = 70 -- Change this value to set the desired field of view
        local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut)
        local tween = TweenService:Create(currentCamera, tweenInfo, { FieldOfView = fov })
        tween:Play()
    end
end)