-- Creating blood part function

local createBlood = function(position)
    
    local randomSize = math.random(2, 20) / 10
    
    local bloodClone = bloodPart:Clone()
    bloodClone.Position = position + Vector3.new(0, 0.05, 0)
    bloodClone.Size = Vector3.new(randomSize, 0.1, randomSize)
    
    bloodClone.Parent = bloodCache
    
    if math.random(2) == 1 then
        bloodClone.BloodSound:Play()
    end
    
    return bloodClone
end
