The idea is to have the screen shake from side to side, which it nicely does. Only issue… whenever you move, the camera’s stuck in place whilst your character goes. Any way to have the camera adapt and stick to the character, even when it’s moving?
local dest = cam.CFrame * CFrame.Angles(0, 0, 0.1)
local camTween = tweenService:Create(
cam,
TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 0, true, 0),
{CFrame = dest}
)
camTween:Play()
camTween.Completed:Wait()