I’ve made a simple recoil function that works when the character is standing still. When the player moves, while the recoil function is being called the camera, gets all messed up. I’m not sure how to fix this.
Recoil Function:
local function Recoil()
game:GetService("TweenService"):Create(workspace.CurrentCamera, TweenInfo.new(0.1), {CFrame = workspace.CurrentCamera.CFrame * CFrame.Angles(math.rad(2),0,0)}):Play()
wait(0.1)
game:GetService("TweenService"):Create(workspace.CurrentCamera, TweenInfo.new(0.3), {CFrame = workspace.CurrentCamera.CFrame * CFrame.Angles(math.rad(-2),0,0)}):Play()
end
Example of the camera
Sorry about the music in the background ~ forgot it was on
Thanks so much if you could help 