HELP | First-person raycast is angled wrong verticaly

When I shoot my gun from first person the raycast goes up?
if anybody knows how to fix please lmk, thx.

i was actually having this problem on the Z and X axis, too. also, provide your script, or else we can’t help you

Check what your mouse is hitting. It might be your hats or something when going in FP

the output says its hitting the part

this is my code

local MouseHit = Mouse.Hit.Position
	local Params = RaycastParams.new()
	local Bullet = game.ReplicatedStorage.Assets.Bullet:Clone()
	local Distance = (MouseHit - Character.HumanoidRootPart.RootAttachment.WorldPosition).magnitude
	
	Params.FilterType = Enum.RaycastFilterType.Exclude
	Params.FilterDescendantsInstances = {Character, workspace.CurrentCamera.Speedlines, workspace.Bullets}
	print((MouseHit - Character.HumanoidRootPart.RootAttachment.WorldPosition).Unit)
	local RayResult = workspace:Raycast(Character.HumanoidRootPart.RootAttachment.WorldPosition, (MouseHit - Character.HumanoidRootPart.RootAttachment.WorldPosition).Unit * MaxDistance , Params)
	print((MouseHit - Character.HumanoidRootPart.RootAttachment.WorldPosition).Unit)
	local Beam = Instance.new("Beam")
	local Attachment2 = Instance.new("Attachment")
	Beam.Parent = gun.Handle
	Beam.Attachment0 = Character.HumanoidRootPart.RootAttachment
	Attachment2.Parent = gun.Handle
	
	Beam.Attachment1 = Attachment2