I’ve tired creating a FOV module to help customise the FOV during specific events however, I can’t manage to find out how to make it work. So far no errors have appeared but it doesn’t seem to work. Here is the code within the Module;
local Camera = game.Workspace.CurrentCamera
local TweenService = game:GetService("TweenService")
easingtime = 0.035
local FOV = {}
function FOV.FOVChanger(FOV1,ChangeFOV,Time)
TweenService:Create(Camera,TweenInfo.new(Time,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut,0,false,0),{FieldOfView = ChangeFOV}):Play()
end
return FOV
and here is the code of the local script that is requiring and running it ;
local FOV = require(script:WaitForChild("Modules").FOVHandler)
FOV:FOVChanger(70,80,2)
I’m not quite sure what to do, could anyone help ?