ExaLua
(CoolBloxxer93)
#1
Hello! I am trying to tween the FOV of players for a script I am making, but the FOV isn’t changing. The code is
local FovTween = TweenService:Create(game.Workspace.Camera, TweenInfo.new(1.125, Enum.EasingStyle.Bounce, Enum.EasingDirection.InOut, 0, false, 0), {FieldOfView = 120})
FovTween:Play()
The TweenService variable is equal to game:GetService(“TweenService”). I will elaborate if needed.
1 Like
24Lego
(woo)
#2
Try using game.Workspace.CurrentCamera and also make sure it is in a local script. Here is a quick one I wrote:
local plr = game.Players.LocalPlayer
local Camera = game.Workspace.CurrentCamera
local tweenInfo = TweenInfo.new(
1.125, Enum.EasingStyle.Bounce, Enum.EasingDirection.InOut, 0, false, 0
)
local TS = game:GetService("TweenService")
local TweenParams = {
FieldOfView = 120
}
local FOVTween = TS:Create(Camera, tweenInfo, TweenParams)
FOVTween:Play()
1 Like