--Raycasting Function

local raycast = function(character, rayOrigin, rayDirection)
	
	local params = RaycastParams.new()
	params.FilterDescendantsInstances = {character, bloodCache}
	params.FilterType = Enum.RaycastFilterType.Blacklist
	params.IgnoreWater = true
	
	local raycastResult = workspace:Raycast(rayOrigin, rayDirection, params)
	
	if raycastResult then
		return raycastResult
	end
end