Hello there, Im scripting gun and I tried to calculate the direction of the ray but it looks really weird I was doing debug and it was shooting this part to random positions, Im using
local RayResults = workspace:Raycast(Muzzle.CFrame.Position,(Muzzle.CFrame.Position - Mouse.Hit.p).Unit * 100)
If anyone can help me I would apreciate that!