Issue with bullets not shooting at crosshair

local Direction = (ScreenRay.Direction) + Vector3.new(0, math.sin(spread), 0)
	local Bolt = VFX.Blast:Clone()
	Bolt.Parent = game.Workspace.Bullets
	Bolt.Pos.Position = GunObject.ShootPart.Position
	Bolt.Beam_1.Color = LazerColor
	Bolt.Beam_2.Color = LazerColor

	local LastPos, CurrentPos = GunObject.ShootPart.Position - Direction, GunObject.ShootPart.Position + Direction
	Bolt.CFrame = CFrame.new(LastPos, CurrentPos)
	game.Debris:AddItem(Bolt, 30)

Fixed with:

	local Direction = CFrame.new(Vector3.new(), (Mouse.Hit.Position - (GunObject.ShootPart.Position + (ScreenRay.Direction * 100).Unit))).LookVector + Vector3.new(0, math.sin(spread), 0)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.