im trying to make that everytime the player stops walking or walks it tweens the FOV
after tween is canceled is simply not playing
local tweenInfo = TweenInfo.new(60, Enum.EasingStyle.Quad, Enum.EasingDirection.Out )
local tweenInfo2 = TweenInfo.new(15, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
-- script
local tween = tweenservice:Create(camera, tweenInfo, {FieldOfView = 20})
local tween2 = tweenservice:Create(camera, tweenInfo2, {FieldOfView = 70})
while wait() do
if humanoid.MoveDirection.Magnitude > 0 then
--we satnding
tween:Cancel()
tween2:Play()
else
-- we are not walking
if tween2.PlaybackState == Enum.PlaybackState.Playing then
tween2.Completed:Wait()
print("termino")
tween:Play()
print(tween.PlaybackState)
else
tween:Play()
end
end
end