What i'm trying to do is when the player starts sprinting i want the camera to move back smoothly a little bit, and then move back when they stop while still following the player while also make it zoom back a little smoothly. What i have kinda works but it don't follow the player, any way i can do this better?
local TweenService = game:GetService("TweenService")
local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:wait()
local Mouse = Player:GetMouse()
local Camera = game.Workspace.CurrentCamera
Mouse.Button1Down:Connect(function()
local TweeningInfo = TweenInfo.new(1.25, Enum.EasingStyle.Elastic, Enum.EasingDirection.Out)
local MoveTo = {CFrame = Camera.CFrame - Vector3.new(0,0,1)}
local CameraAnim = TweenService:Create(Camera, TweeningInfo, MoveTo)
CameraAnim:Play()
end)

1 comment
Thanks a lot for this!