Basically. Im trying to make a shotgun with raycasting but I have no idea how to manipulate the angles.
game.ReplicatedStorage.RayCast.OnServerEvent:Connect(function(player,exit,mousehit)
local ray = Ray.new(exit.Position, (mousehit.Position - exit.CFrame.Position).unit * 500)
local part,position = workspace:FindPartOnRay(ray,player,false,false)
local bullet = Instance.new("Part",workspace)
bullet.Material = Enum.Material.Neon
bullet.BrickColor = BrickColor.new("Bright yellow")
bullet.CanCollide = false
bullet.Anchored = true
bullet.Locked = true
local distance = (exit.Position - position).magnitude
bullet.Size = Vector3.new(-8.855, 0.025,distance)
bullet.CFrame = CFrame.new(exit.Position, position) * CFrame.new(0,0,-distance / 2)
game:GetService("Debris"):AddItem(bullet, .1)
end)

2 comments
Please put your code properly in the Code Block
Manipulate how?