Weird offset from not firing at the camera (projectile)

Hello basically i’m trying to script a combat game, and i want the projectile to shoot from the well barrel of the gun, but i get this digusting offset, shooting from the camera doesn’t have the weird offset

Shooting from the barrel
https://medal.tv/games/roblox-studio/clips/j9CE9RPQro_Wf/d1337LIpfDK4?invite=cr-MSxoQkUsMjc4NTE0OTEs

Shooting from the camera (basically what i want but from the barrel)
https://medal.tv/games/roblox-studio/clips/j9Eajy82398VL/d1337O1VWrMe?invite=cr-MSxkV2IsMjc4NTE0OTEs

Shooting from the camera code

local v0,c0 = mouse.Hit.Position,camera.CFrame*CFrame.new(0,0,-(camera.CFrame.Position-char.HumanoidRootPart.Position).Magnitude)

-- mouse.Hit.Position or v0 is where the bullet is gonna head towards
-- camera.CFrame or c0 is where the bullet originates from
![image|344x21](upload://9qfQtKBsvh73pLkpJrvKuYDgLAi.png)

Shooting from the barrel code

local v0,c0 = mouse.Hit.Position,tool.Contents.WeldParts.ShootPart.CFrame

Use an attachment or a seperate part and use that parts position.
Not sure if thisll help or not.

This is because you are shooting at the skybox, which is very far away, so the projectile barely turns towards your cursor. Shooting at a nearby object should work. Try making an invisible border around the map to solve the issue.