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

Shooting from the barrel code
local v0,c0 = mouse.Hit.Position,tool.Contents.WeldParts.ShootPart.CFrame