Hello, I am making a weapons system and I have been looking at how to make a recoil for the weapons and when I get it it works but with the default camera:
but when I do it with a scriptable camera the string doesn’t work or when I tried it for the first time the string worked but it changed the recoil or it didn’t let it go up from a certain part:
runs.RenderStepped:Connect(function()
camera.CFrame = CFrame.new(root.Position) * CFrame.Angles(0, x, 0) * CFrame.Angles(y, 0, 0) -- rotate around player
if Aiming == false then
camera.CFrame = camera.CFrame * CFrame.new(config.offx, config.offy, config.zoom)
config.Sens = customSens
else
if Aiming == true then
camera.CFrame = camera.CFrame * CFrame.new(config.offx, config.offy, config.zoom)
config.Sens = aimsens
end
end
end)