-- Visualizes a ray. This will not run if FastCast.VisualizeCasts is false.

function DbgVisualizeSegment(castStartCFrame: CFrame, castLength: number): ConeHandleAdornment?
	--if ClientSettings.Debug.Value == false then return nil end
	if true then
		return
	end
	local adornment = Instance.new("CylinderHandleAdornment")
	adornment.Adornee = workspace.Terrain
	adornment.CFrame = castStartCFrame
	adornment.Height = castLength
	adornment.Color3 = Color3.new(1, 0, 0)
	adornment.Radius = 0.05
	adornment.Transparency = 0.5
	adornment.Parent = GetFastCastVisualizationContainer()
	Debris:AddItem(adornment, 3)
	return adornment
end
